/* FINAL GLOBAL BUTTON COLOR SYSTEM 2026-05-27
   Rule:
   - Blue buttons = white text.
   - Buttons that become blue on hover/focus/active = white text in those states.
   - Light buttons before hover = readable dark text.
   - Disabled light buttons = readable muted text.
   - Red buttons = white text.
   Loaded after all other CSS files.
*/

:root{
  --avto-btn-blue:#1765ff;
  --avto-btn-blue-hover:#0d4db8;
  --avto-btn-red:#dc2626;
  --avto-btn-red-hover:#b91c1c;
  --avto-btn-dark:#111827;
  --avto-btn-muted:#475569;
  --avto-btn-white:#ffffff;
  --avto-btn-disabled-bg:#eef3fb;
  --avto-btn-disabled-border:#dbe5f3;
}

/* Base */
.btn,
a.btn,
button.btn,
input.btn,
.button,
a.button,
button,
input[type="button"],
input[type="submit"]{
  text-decoration:none !important;
}

/* LIGHT / DEFAULT BUTTONS - normal state = dark readable text */
.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
a.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active),
button.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
input.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
.button:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active),
.action-button:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active),
.card .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
.quick-actions .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
.actions .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
.form-actions .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
.form-actions-end .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
.table-wrap .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
td .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active){
  color:var(--avto-btn-dark) !important;
  -webkit-text-fill-color:var(--avto-btn-dark) !important;
}

/* LIGHT / DEFAULT BUTTON CHILDREN - normal state */
.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active) *,
a.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active) *,
button.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active) *,
.quick-actions .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active) *,
.actions .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active) *,
.card .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active) *{
  color:var(--avto-btn-dark) !important;
  -webkit-text-fill-color:var(--avto-btn-dark) !important;
}

/* BLUE BUTTONS - class based */
.btn-primary,
.btn-primary *,
.btn.btn-primary,
.btn.btn-primary *,
a.btn-primary,
a.btn-primary *,
a.btn.btn-primary,
a.btn.btn-primary *,
button.btn-primary,
button.btn-primary *,
button.btn.btn-primary,
button.btn.btn-primary *,
input.btn-primary,
input.btn.btn-primary,
.quick-actions .btn-primary,
.quick-actions .btn-primary *,
.actions .btn-primary,
.actions .btn-primary *,
.form-actions .btn-primary,
.form-actions .btn-primary *,
.form-actions-end .btn-primary,
.form-actions-end .btn-primary *,
.card .btn-primary,
.card .btn-primary *,
.page-hero .btn-primary,
.page-hero .btn-primary *{
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* BLUE BUTTONS - inline style / visual blue classes / admin tools */
.btn[style*="background:#1765ff"],
.btn[style*="background: #1765ff"],
.btn[style*="background-color:#1765ff"],
.btn[style*="background-color: #1765ff"],
button[style*="background:#1765ff"],
button[style*="background: #1765ff"],
button[style*="background-color:#1765ff"],
button[style*="background-color: #1765ff"],
a[style*="background:#1765ff"],
a[style*="background: #1765ff"],
a[style*="background-color:#1765ff"],
a[style*="background-color: #1765ff"],
.btn[style*="background:#2563eb"],
.btn[style*="background: #2563eb"],
.btn[style*="background-color:#2563eb"],
.btn[style*="background-color: #2563eb"],
button[style*="background:#2563eb"],
button[style*="background: #2563eb"],
button[style*="background-color:#2563eb"],
button[style*="background-color: #2563eb"],
a[style*="background:#2563eb"],
a[style*="background: #2563eb"],
a[style*="background-color:#2563eb"],
a[style*="background-color: #2563eb"],
.admin-card .btn[style],
.panel-heading .btn[style],
.tools-card .btn[style]{
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* BLUE BUTTONS - hover/focus/active states */
.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover,
a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover,
input.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover,
.button:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
.action-button:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus,
a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):focus,
button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus,
input.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus,
.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):active,
a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):active,
button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):active,
input.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):active{
  background:var(--avto-btn-blue) !important;
  background-color:var(--avto-btn-blue) !important;
  background-image:none !important;
  border-color:var(--avto-btn-blue) !important;
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* BLUE BUTTONS - hover/focus/active children */
.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover *,
button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
.quick-actions .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
.actions .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
.card .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus *,
a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):focus *,
button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus *{
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* DISABLED LIGHT BUTTONS */
.btn:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
.btn[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
button:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
button[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
input:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
input[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
.quick-actions .btn:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
.quick-actions .btn[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
.actions .btn:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
.actions .btn[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device){
  background:var(--avto-btn-disabled-bg) !important;
  background-color:var(--avto-btn-disabled-bg) !important;
  background-image:none !important;
  border-color:var(--avto-btn-disabled-border) !important;
  color:var(--avto-btn-muted) !important;
  -webkit-text-fill-color:var(--avto-btn-muted) !important;
  opacity:1 !important;
  cursor:not-allowed !important;
}

/* DISABLED LIGHT BUTTON CHILDREN */
.btn:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device) *,
.btn[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device) *,
button:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device) *,
button[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device) *,
.quick-actions .btn:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device) *,
.quick-actions .btn[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device) *{
  color:var(--avto-btn-muted) !important;
  -webkit-text-fill-color:var(--avto-btn-muted) !important;
}

/* RED / DANGER / TEST / DISABLE BUTTONS */
.btn-danger,
.btn-danger *,
.btn-red-action,
.btn-red-action *,
button.btn-red-action,
button.btn-red-action *,
a.btn-red-action,
a.btn-red-action *,
button[data-test-server-webpush],
button[data-test-server-webpush] *,
button[data-test-local-notification],
button[data-test-local-notification] *,
button[data-disable-device-notifications],
button[data-disable-device-notifications] *,
.btn-disable-device,
.btn-disable-device *{
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* RED / DANGER hover */
.btn-danger:hover,
.btn-red-action:hover,
button.btn-red-action:hover,
a.btn-red-action:hover,
button[data-test-server-webpush]:hover,
button[data-test-local-notification]:hover,
button[data-disable-device-notifications]:hover,
.btn-disable-device:hover{
  background:var(--avto-btn-red-hover) !important;
  background-color:var(--avto-btn-red-hover) !important;
  border-color:#991b1b !important;
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* ADMIN / TOOLS / MAINTENANCE explicit blue buttons */
body[class*="page-admin"] .btn-primary,
body[class*="page-admin"] .btn-primary *,
body[class*="page-admin"] .quick-actions .btn-primary,
body[class*="page-admin"] .quick-actions .btn-primary *,
body[class*="page-admin"] .actions .btn-primary,
body[class*="page-admin"] .actions .btn-primary *,
.admin-panel .btn-primary,
.admin-panel .btn-primary *,
.admin-card .btn-primary,
.admin-card .btn-primary *,
.tools-card .btn-primary,
.tools-card .btn-primary *{
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* ADMIN hover */
body[class*="page-admin"] .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
.admin-panel .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
.admin-card .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
.tools-card .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover{
  color:var(--avto-btn-white) !important;
  -webkit-text-fill-color:var(--avto-btn-white) !important;
}

/* MOBILE */
@media (max-width: 760px){
  .btn-primary,
  .btn-primary *,
  button.btn-primary,
  button.btn-primary *,
  a.btn-primary,
  a.btn-primary *,
  .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
  .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover *{
    color:var(--avto-btn-white) !important;
    -webkit-text-fill-color:var(--avto-btn-white) !important;
  }

  .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active):not(:disabled):not([disabled]),
  .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active):not(:disabled):not([disabled]) *{
    color:var(--avto-btn-dark) !important;
    -webkit-text-fill-color:var(--avto-btn-dark) !important;
  }
}

/* SIDEBAR + BADGES */
.sidebar-link,
.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link:active,
.sidebar-link.is-active{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
.sidebar-count.event-badge,
.topbar-count.event-badge,
#topbarEventsCount{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* STATUS BADGES */
.badge.success{color:#166534 !important;-webkit-text-fill-color:#166534 !important;}
.badge.warning{color:#92400e !important;-webkit-text-fill-color:#92400e !important;}
.badge.danger,.badge.expired{color:#991b1b !important;-webkit-text-fill-color:#991b1b !important;}
.badge.muted,.badge.default{color:#334155 !important;-webkit-text-fill-color:#334155 !important;}


/* ============================================================
   HARD FIX ALL BUTTON TEXT COLORS 2026-05-27
   Applied in app.css + final_overrides.css + final_button_colors.css.
   ============================================================ */

:root{
  --hard-blue:#1765ff;
  --hard-blue-2:#2563eb;
  --hard-blue-hover:#0d4db8;
  --hard-white:#ffffff;
  --hard-dark:#111827;
  --hard-muted:#475569;
  --hard-disabled-bg:#eef3fb;
  --hard-disabled-border:#dbe5f3;
}

/* Primary/action blue buttons: always white text */
html body .btn-primary,
html body .btn-primary:link,
html body .btn-primary:visited,
html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active,
html body a.btn-primary,
html body a.btn-primary:link,
html body a.btn-primary:visited,
html body a.btn-primary:hover,
html body a.btn-primary:focus,
html body a.btn-primary:active,
html body button.btn-primary,
html body button.btn-primary:hover,
html body button.btn-primary:focus,
html body button.btn-primary:active,
html body input.btn-primary,
html body input.btn-primary:hover,
html body input.btn-primary:focus,
html body input.btn-primary:active,
html body .btn-primary *,
html body a.btn-primary *,
html body button.btn-primary *{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Known blue action buttons in car tables/cards/client/admin pages */
html body .mycars-page .btn,
html body .my-cars-page .btn,
html body .vehicle-card .btn,
html body .vehicles-table .btn,
html body table .btn-primary,
html body table a.btn-primary,
html body table button.btn-primary,
html body .table-wrap .btn-primary,
html body .table-wrap a.btn-primary,
html body .table-wrap button.btn-primary,
html body .quick-actions .btn-primary,
html body .actions .btn-primary,
html body .form-actions .btn-primary,
html body .form-actions-end .btn-primary,
html body .admin-card .btn-primary,
html body .tools-card .btn-primary,
html body .page-hero .btn-primary,
html body .logout-card .btn-primary,
html body .confirmation-card .btn-primary,
html body a.btn[href*="view"],
html body a.btn[href*="edit"],
html body a.btn[href*="car_records"],
html body a.btn[href*="car_records.php"],
html body a.btn[href*="edit_car"],
html body a.btn[href*="view_car"],
html body a.btn[href*="dashboard.php"]{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

html body .mycars-page .btn *,
html body .my-cars-page .btn *,
html body .vehicle-card .btn *,
html body .vehicles-table .btn *,
html body table .btn-primary *,
html body .table-wrap .btn-primary *,
html body .quick-actions .btn-primary *,
html body .actions .btn-primary *,
html body .admin-card .btn-primary *,
html body .tools-card .btn-primary *,
html body .page-hero .btn-primary *,
html body .logout-card .btn-primary *,
html body .confirmation-card .btn-primary *,
html body a.btn[href*="view"] *,
html body a.btn[href*="edit"] *,
html body a.btn[href*="car_records"] *{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Any button with explicit blue inline style: white text */
html body .btn[style*="1765ff"],
html body button[style*="1765ff"],
html body a[style*="1765ff"],
html body input[style*="1765ff"],
html body .btn[style*="2563eb"],
html body button[style*="2563eb"],
html body a[style*="2563eb"],
html body input[style*="2563eb"],
html body .btn[style*="0055"],
html body button[style*="0055"],
html body a[style*="0055"]{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Hover/focus/active: if a button turns blue, text must be white */
html body .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover,
html body a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover,
html body button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover,
html body input.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover,
html body .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus,
html body a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):focus,
html body button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus,
html body .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):active,
html body a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):active,
html body button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):active{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

html body .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
html body a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):hover *,
html body button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):hover *,
html body .btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus *,
html body a.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):focus *,
html body button.btn:not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):focus *{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Light buttons normal: dark readable, except problem blue/action contexts above */
html body .btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active),
html body a.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:hover):not(:focus):not(:active),
html body button.btn:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device):not(:disabled):not([disabled]):not(:hover):not(:focus):not(:active){
  color:var(--hard-dark) !important;
  -webkit-text-fill-color:var(--hard-dark) !important;
}

/* Re-assert white for blue/action contexts after normal rule */
html body .mycars-page .btn,
html body .my-cars-page .btn,
html body .vehicle-card .btn,
html body .vehicles-table .btn,
html body a.btn[href*="view"],
html body a.btn[href*="edit"],
html body a.btn[href*="car_records"],
html body .logout-card .btn-primary,
html body .confirmation-card .btn-primary{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Disabled light buttons */
html body .btn:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
html body .btn[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
html body button:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
html body button[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
html body input:disabled:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device),
html body input[disabled]:not(.btn-primary):not(.btn-danger):not(.btn-red-action):not(.btn-disable-device){
  background:var(--hard-disabled-bg) !important;
  background-color:var(--hard-disabled-bg) !important;
  border-color:var(--hard-disabled-border) !important;
  color:var(--hard-muted) !important;
  -webkit-text-fill-color:var(--hard-muted) !important;
  opacity:1 !important;
}

/* Red/danger/test/disable buttons */
html body .btn-danger,
html body .btn-danger *,
html body .btn-red-action,
html body .btn-red-action *,
html body .btn-disable-device,
html body .btn-disable-device *,
html body button[data-test-server-webpush],
html body button[data-test-server-webpush] *,
html body button[data-test-local-notification],
html body button[data-test-local-notification] *,
html body button[data-disable-device-notifications],
html body button[data-disable-device-notifications] *{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Logout confirmation explicit */
html body .logout-card button,
html body .logout-card a.btn,
html body .confirmation-card button,
html body .confirmation-card a.btn{
  color:var(--hard-white) !important;
  -webkit-text-fill-color:var(--hard-white) !important;
}

/* Sidebar and badges */
html body .sidebar-link,
html body .sidebar-link:hover,
html body .sidebar-link:focus,
html body .sidebar-link:active,
html body .sidebar-link.is-active{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .sidebar-count.event-badge,
html body .topbar-count.event-badge,
html body #topbarEventsCount{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* Mobile same rules */
@media (max-width:760px){
  html body .btn-primary,
  html body .btn-primary *,
  html body .mycars-page .btn,
  html body .mycars-page .btn *,
  html body .vehicle-card .btn,
  html body .vehicle-card .btn *,
  html body .vehicles-table .btn,
  html body .vehicles-table .btn *,
  html body a.btn[href*="view"],
  html body a.btn[href*="edit"],
  html body a.btn[href*="car_records"]{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
  }
}


/* Runtime button text fix backup CSS */
.btn-primary,
.btn-primary *,
a.btn-primary,
a.btn-primary *,
button.btn-primary,
button.btn-primary *,
.btn-danger,
.btn-danger *,
.btn-red-action,
.btn-red-action *,
.btn-disable-device,
.btn-disable-device *,
button[data-test-server-webpush],
button[data-test-server-webpush] *,
button[data-test-local-notification],
button[data-test-local-notification] *,
button[data-disable-device-notifications],
button[data-disable-device-notifications] *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
.mycars-page .btn,
.mycars-page .btn *,
.vehicle-card .btn,
.vehicle-card .btn *,
.vehicles-table .btn,
.vehicles-table .btn *,
a.btn[href*="view"],
a.btn[href*="view"] *,
a.btn[href*="edit"],
a.btn[href*="edit"] *,
a.btn[href*="car_records"],
a.btn[href*="car_records"] *,
.logout-card .btn-primary,
.logout-card .btn-primary *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* FINAL LOGOUT BUTTON FIX 2026-05-27 */
html body .logout-card .logout-cancel-btn,
html body .logout-card .logout-cancel-btn:link,
html body .logout-card .logout-cancel-btn:visited,
html body .logout-card .logout-cancel-btn:hover,
html body .logout-card .logout-cancel-btn:focus,
html body .logout-card .logout-cancel-btn:active,
html body button.logout-cancel-btn,
html body button.logout-cancel-btn:hover,
html body button.logout-cancel-btn:focus,
html body button.logout-cancel-btn:active,
html body a.logout-cancel-btn,
html body a.logout-cancel-btn:hover,
html body a.logout-cancel-btn:focus,
html body a.logout-cancel-btn:active{
  background:#1765ff !important;
  background-color:#1765ff !important;
  border-color:#1765ff !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

html body .logout-card .logout-cancel-btn *,
html body button.logout-cancel-btn *,
html body a.logout-cancel-btn *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* FINAL LOGOUT CONFIRM DISABLED READABLE FIX 2026-05-27 */
html body .logout-card .logout-confirm-btn:disabled,
html body .logout-card .logout-confirm-btn[disabled],
html body button.logout-confirm-btn:disabled,
html body button.logout-confirm-btn[disabled]{
  background:#eef3fb !important;
  background-color:#eef3fb !important;
  border-color:#dbe5f3 !important;
  color:#475569 !important;
  -webkit-text-fill-color:#475569 !important;
  opacity:1 !important;
}

html body .logout-card .logout-confirm-btn:not(:disabled):not([disabled]),
html body button.logout-confirm-btn:not(:disabled):not([disabled]){
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}


/* HARD live search hide */
.avto-search-hidden,
[data-live-search-hidden="true"]{
  display:none !important;
}


/* Readable local brand logos */
.vehicle-brand{
  width:78px !important;
  min-width:78px !important;
  text-align:center !important;
  vertical-align:middle !important;
}
.vehicle-brand .brand-logo-box,
.card-brand-logo-wrap .brand-logo-box{
  width:64px !important;
  height:34px !important;
  min-width:64px !important;
  max-width:64px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:12px !important;
  background:#ffffff !important;
  border:1px solid #dbe4f0 !important;
  box-shadow:0 2px 8px rgba(15,23,42,.08) !important;
  overflow:hidden !important;
}
.brand-logo-img{
  width:60px !important;
  height:30px !important;
  object-fit:contain !important;
  display:block !important;
}
.brand-logo-fallback{
  background:#eef4ff !important;
  color:#1e4fd6 !important;
}
.brand-logo-fallback-text{
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1 !important;
}
.card-brand-logo-wrap{
  display:inline-flex !important;
  flex:0 0 auto !important;
}
.car-card-top{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.car-card-top-text{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
}
@media (max-width:760px){
  .vehicle-brand{
    width:72px !important;
    min-width:72px !important;
  }
  .vehicle-brand .brand-logo-box,
  .card-brand-logo-wrap .brand-logo-box{
    width:60px !important;
    height:32px !important;
    min-width:60px !important;
    max-width:60px !important;
  }
  .brand-logo-img{
    width:56px !important;
    height:28px !important;
  }
}


/* Push repair clear requests button */
html body .push-clear-requests-btn:disabled,
html body .push-clear-requests-btn[disabled]{
  background:#eef3fb !important;
  background-color:#eef3fb !important;
  border-color:#dbe5f3 !important;
  color:#475569 !important;
  -webkit-text-fill-color:#475569 !important;
  opacity:1 !important;
  cursor:not-allowed !important;
}
html body .push-clear-requests-btn:not(:disabled):not([disabled]){
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .push-clear-requests-btn:not(:disabled):not([disabled]):hover{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Push repair cleanup danger button */
html body button.btn-danger,
html body a.btn-danger,
html body .btn-danger{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Push repair visible cleanup broken keys button */
html body .push-cleanup-broken-btn,
html body .push-cleanup-broken-btn:hover,
html body .push-cleanup-broken-btn:focus,
html body .push-cleanup-broken-btn:active{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* FINAL FIX: push repair admin cleanup button + mobile repair page buttons */
html body .push-cleanup-broken-btn,
html body button.push-cleanup-broken-btn,
html body .push-cleanup-broken-btn:link,
html body .push-cleanup-broken-btn:visited,
html body .push-cleanup-broken-btn:hover,
html body .push-cleanup-broken-btn:focus,
html body .push-cleanup-broken-btn:active{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  background-image:none !important;
  border:1px solid #b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  text-decoration:none !important;
  user-select:none !important;
  -webkit-user-select:none !important;
  outline:none !important;
  box-shadow:0 8px 18px rgba(220,38,38,.18) !important;
}
html body .push-cleanup-broken-btn *,
html body button.push-cleanup-broken-btn *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .push-cleanup-broken-btn:hover,
html body .push-cleanup-broken-btn:focus{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  border-color:#991b1b !important;
}

html body.push-repair-page,
html body .push-repair-page{
  overflow-x:hidden !important;
}
html body.push-repair-page .card,
html body.push-repair-page .repair-card,
html body.push-repair-page main,
html body.push-repair-page section{
  max-width:calc(100vw - 28px) !important;
  box-sizing:border-box !important;
}
html body.push-repair-page a,
html body.push-repair-page button,
html body.push-repair-page .btn,
html body.push-repair-page .push-repair-primary-btn,
html body.push-repair-page .push-repair-nav-btn{
  box-sizing:border-box !important;
  max-width:100% !important;
  width:100% !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  text-align:center !important;
  line-height:1.25 !important;
}
html body.push-repair-page .push-repair-primary-btn,
html body.push-repair-page button.push-repair-primary-btn{
  background:#1765ff !important;
  background-color:#1765ff !important;
  border-color:#1765ff !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body.push-repair-page .push-repair-nav-btn,
html body.push-repair-page a.push-repair-nav-btn{
  background:#ffffff !important;
  background-color:#ffffff !important;
  border:1px solid #dbe5f3 !important;
  color:#1455c8 !important;
  -webkit-text-fill-color:#1455c8 !important;
}
@media (max-width:760px){
  html body.push-repair-page{
    padding-left:10px !important;
    padding-right:10px !important;
  }
  html body.push-repair-page .card,
  html body.push-repair-page .repair-card,
  html body.push-repair-page main,
  html body.push-repair-page section{
    width:100% !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }
  html body.push-repair-page a,
  html body.push-repair-page button,
  html body.push-repair-page .btn{
    min-height:54px !important;
    font-size:16px !important;
    padding:14px 16px !important;
  }
}


/* Final push cleanup button */
html body .push-cleanup-broken-btn,
html body .push-cleanup-broken-btn:hover,
html body .push-cleanup-broken-btn:focus,
html body .push-cleanup-broken-btn:active{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  background-image:none !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  user-select:none !important;
  -webkit-user-select:none !important;
}


/* Endpoint hash repair button */
html body a.btn-danger,
html body a.btn-danger:hover,
html body a.btn-danger:focus,
html body a.btn-danger:active{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Endpoint_hash repair button hard color fix */
html body .endpoint-hash-repair-btn,
html body a.endpoint-hash-repair-btn,
html body button.endpoint-hash-repair-btn,
html body .endpoint-hash-repair-btn:link,
html body .endpoint-hash-repair-btn:visited,
html body .endpoint-hash-repair-btn:hover,
html body .endpoint-hash-repair-btn:focus,
html body .endpoint-hash-repair-btn:active{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  background-image:none !important;
  border:1px solid #b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  text-decoration:none !important;
  user-select:none !important;
  -webkit-user-select:none !important;
  box-shadow:0 8px 18px rgba(220,38,38,.16) !important;
}
html body .endpoint-hash-repair-btn:hover,
html body .endpoint-hash-repair-btn:focus{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  border-color:#991b1b !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .endpoint-hash-repair-btn *,
html body a.endpoint-hash-repair-btn *,
html body button.endpoint-hash-repair-btn *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Missing auth_token cleanup button */
html body .cleanup-auth-token-btn,
html body .cleanup-auth-token-btn:hover,
html body .cleanup-auth-token-btn:focus,
html body .cleanup-auth-token-btn:active{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  background-image:none !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  text-decoration:none !important;
}
html body .cleanup-auth-token-btn:hover,
html body .cleanup-auth-token-btn:focus{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Clean missing auth_token standalone button */
html body .cleanup-auth-token-btn,
html body a.cleanup-auth-token-btn,
html body button.cleanup-auth-token-btn,
html body .cleanup-auth-token-btn:hover,
html body .cleanup-auth-token-btn:focus,
html body .cleanup-auth-token-btn:active{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  background-image:none !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  text-decoration:none !important;
}
html body .cleanup-auth-token-btn:hover,
html body .cleanup-auth-token-btn:focus{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Push diagnostics corrected table */
#pushDiagFreshStatsCard .stat-card{
  background:#fff;
  border:1px solid #dbe5f2;
  border-radius:18px;
  padding:18px;
}
#pushDiagFreshStatsCard .stat-title{
  font-weight:800;
  color:#13264b;
}
#pushDiagFreshStatsCard .stat-value{
  font-size:34px;
  font-weight:900;
  color:#1d5bd8;
}
#pushDiagCorrectBreakdown .table-wrap{
  overflow:auto;
}
#pushDiagCorrectBreakdown table{
  width:100%;
  border-collapse:collapse;
}
#pushDiagCorrectBreakdown th,
#pushDiagCorrectBreakdown td{
  padding:12px;
  border-bottom:1px solid #e3ebf5;
  vertical-align:middle;
}


/* Admin push repair: hide misleading old auth_token column via JS and fix VAPID badge client fallback colors */
#pushDiagCorrectBreakdown th,
#pushDiagCorrectBreakdown td{
  display:table-cell;
}
html body .badge.success{
  background-color:#dcfce7 !important;
  color:#166534 !important;
  -webkit-text-fill-color:#166534 !important;
}
html body .badge.danger{
  background-color:#fee2e2 !important;
  color:#991b1b !important;
  -webkit-text-fill-color:#991b1b !important;
}


/* Visual admin tool pages */
.admin-tool-card .grid,
.card .grid.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.admin-tool-card .stat,
.card .stat-card{
  background:#fff;
  border:1px solid #dbe5f2;
  border-radius:18px;
  padding:18px;
}
.admin-tool-card .n,
.card .stat-value{
  font-size:34px;
  font-weight:900;
  color:#1d5bd8;
}
.admin-tool-card pre{
  white-space:pre-wrap;
  background:#0f172a;
  color:#e5e7eb;
  padding:14px;
  border-radius:14px;
  overflow:auto;
}


/* Safe VAPID status elements */
#vapidStatusBadge.success{
  background-color:#dcfce7 !important;
  color:#166534 !important;
  -webkit-text-fill-color:#166534 !important;
}
#vapidStatusBadge.danger{
  background-color:#fee2e2 !important;
  color:#991b1b !important;
  -webkit-text-fill-color:#991b1b !important;
}


/* Push diagnostics JSON refresh note */
.push-json-refresh-note{
  margin-top:12px;
  font-size:13px;
  color:#64748b !important;
}
[data-json-refreshed="1"]{
  outline:1px solid rgba(34,197,94,.18);
}


/* Admin Push Repair - safe action buttons layout, no hiding */
.push-actions-safe-section{
  overflow:visible !important;
}
.push-actions-safe-section form,
.push-actions-safe-section .push-action-inline-form{
  display:inline-flex !important;
  margin:6px 6px 6px 0 !important;
  vertical-align:middle !important;
}
.push-actions-safe-section a.btn,
.push-actions-safe-section button.btn,
.push-actions-safe-section button,
.push-actions-safe-section input[type="submit"],
.push-action-visible-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:11px 16px !important;
  border-radius:13px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  margin:6px 6px 6px 0 !important;
  white-space:normal !important;
  text-align:center !important;
  opacity:1 !important;
  visibility:visible !important;
  text-decoration:none !important;
}
.push-actions-safe-section .push-action-old-hidden{
  display:inline-flex !important;
  visibility:visible !important;
}
html body .push-action-visible-primary{
  background:#2563eb !important;
  background-color:#2563eb !important;
  border-color:#1d4ed8 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .push-action-visible-primary:hover,
html body .push-action-visible-primary:focus{
  background:#1d4ed8 !important;
  background-color:#1d4ed8 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .push-action-visible-danger{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .push-action-visible-danger:hover,
html body .push-action-visible-danger:focus{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .push-action-visible-neutral{
  background:#f8fafc !important;
  background-color:#f8fafc !important;
  border:1px solid #dbe5f2 !important;
  color:#10254a !important;
  -webkit-text-fill-color:#10254a !important;
}
html body .push-action-visible-neutral:hover,
html body .push-action-visible-neutral:focus{
  background:#eaf2ff !important;
  background-color:#eaf2ff !important;
  color:#10254a !important;
  -webkit-text-fill-color:#10254a !important;
}
@media (max-width: 760px){
  .push-actions-safe-section form,
  .push-actions-safe-section a.btn,
  .push-actions-safe-section button.btn,
  .push-actions-safe-section button,
  .push-actions-safe-section input[type="submit"],
  .push-action-visible-btn{
    width:100% !important;
    margin:5px 0 !important;
  }
}


/* GLOBAL FIX: disabled/light buttons must stay readable */
html body button:disabled,
html body button[disabled],
html body .btn:disabled,
html body .btn[disabled],
html body input[type="submit"]:disabled,
html body input[type="button"]:disabled,
html body input[type="reset"]:disabled,
html body .btn.disabled,
html body .disabled.btn,
html body a.btn.disabled,
html body a.btn[aria-disabled="true"]{
  background:#f1f5f9 !important;
  background-color:#f1f5f9 !important;
  background-image:none !important;
  border-color:#dbe5f2 !important;
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
  opacity:1 !important;
  cursor:not-allowed !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

/* Disabled delete/danger buttons: readable red text, not white on pale background */
html body button:disabled.btn-danger,
html body button[disabled].btn-danger,
html body .btn-danger:disabled,
html body .btn-danger[disabled],
html body .btn-danger.disabled,
html body .danger:disabled,
html body .danger[disabled],
html body .btn-delete:disabled,
html body .btn-delete[disabled],
html body .delete-btn:disabled,
html body .delete-btn[disabled],
html body button:disabled[name*="delete"],
html body button[disabled][name*="delete"],
html body button:disabled[class*="delete"],
html body button[disabled][class*="delete"],
html body a.btn.disabled.btn-danger{
  background:#fee2e2 !important;
  background-color:#fee2e2 !important;
  background-image:none !important;
  border-color:#fecaca !important;
  color:#991b1b !important;
  -webkit-text-fill-color:#991b1b !important;
  opacity:1 !important;
}

/* Bulgarian delete text fallback, applied by runtime class */
html body .btn-disabled-delete-readable,
html body .btn-disabled-delete-readable:disabled,
html body .btn-disabled-delete-readable[disabled]{
  background:#fee2e2 !important;
  background-color:#fee2e2 !important;
  border-color:#fecaca !important;
  color:#991b1b !important;
  -webkit-text-fill-color:#991b1b !important;
  opacity:1 !important;
  cursor:not-allowed !important;
}

/* Active blue buttons must stay white */
html body .btn-primary:not(:disabled):not([disabled]),
html body .btn-blue:not(:disabled):not([disabled]),
html body .primary:not(:disabled):not([disabled]),
html body button.btn-primary:not(:disabled):not([disabled]),
html body a.btn-primary:not(.disabled):not([aria-disabled="true"]){
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* car_records.php: delete button is always burgundy/red */
html body.car-records-page button.car-record-delete-btn,
html body.car-records-page a.car-record-delete-btn,
html body.car-records-page input.car-record-delete-btn,
html body button.car-record-delete-btn,
html body a.car-record-delete-btn,
html body input.car-record-delete-btn{
  background:#7f1d1d !important;
  background-color:#7f1d1d !important;
  background-image:none !important;
  border-color:#7f1d1d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

html body.car-records-page button.car-record-delete-btn:hover,
html body.car-records-page a.car-record-delete-btn:hover,
html body.car-records-page input.car-record-delete-btn:hover,
html body button.car-record-delete-btn:hover,
html body a.car-record-delete-btn:hover,
html body input.car-record-delete-btn:hover,
html body.car-records-page button.car-record-delete-btn:focus,
html body.car-records-page a.car-record-delete-btn:focus,
html body.car-records-page input.car-record-delete-btn:focus,
html body button.car-record-delete-btn:focus,
html body a.car-record-delete-btn:focus,
html body input.car-record-delete-btn:focus{
  background:#991b1b !important;
  background-color:#991b1b !important;
  border-color:#7f1d1d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* Even disabled delete buttons in car_records must remain burgundy, not pale */
html body.car-records-page button.car-record-delete-btn:disabled,
html body.car-records-page button.car-record-delete-btn[disabled],
html body.car-records-page a.car-record-delete-btn.disabled,
html body.car-records-page a.car-record-delete-btn[aria-disabled="true"],
html body.car-records-page input.car-record-delete-btn:disabled,
html body.car-records-page input.car-record-delete-btn[disabled],
html body button.car-record-delete-btn:disabled,
html body button.car-record-delete-btn[disabled],
html body a.car-record-delete-btn.disabled,
html body a.car-record-delete-btn[aria-disabled="true"],
html body input.car-record-delete-btn:disabled,
html body input.car-record-delete-btn[disabled]{
  background:#7f1d1d !important;
  background-color:#7f1d1d !important;
  background-image:none !important;
  border-color:#7f1d1d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
  cursor:not-allowed !important;
}


/* ADMIN TOOL PAGES FIX: remove decorative circle/badge overlay from tool stat cards */
html body .admin-tool-card .stat,
html body .admin-tool-card .admin-tool-stat,
html body .admin-tool-page-card .stat,
html body .admin-tool-page-card .admin-tool-stat,
html body .admin-tool-stat{
  position:relative !important;
  overflow:hidden !important;
  display:block !important;
  min-height:112px !important;
  padding:20px 22px !important;
  background:#ffffff !important;
  border:1px solid #dbe5f2 !important;
  border-radius:18px !important;
}

/* Kill global decorative pseudo-elements that overlap numbers/text */
html body .admin-tool-card .stat::before,
html body .admin-tool-card .stat::after,
html body .admin-tool-card .admin-tool-stat::before,
html body .admin-tool-card .admin-tool-stat::after,
html body .admin-tool-page-card .stat::before,
html body .admin-tool-page-card .stat::after,
html body .admin-tool-page-card .admin-tool-stat::before,
html body .admin-tool-page-card .admin-tool-stat::after,
html body .admin-tool-stat::before,
html body .admin-tool-stat::after{
  content:none !important;
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  width:0 !important;
  height:0 !important;
}

/* Hide empty decorative circles/icons only inside admin tool stat cards */
html body .admin-tool-card .stat > .icon,
html body .admin-tool-card .stat > .stat-icon,
html body .admin-tool-card .stat > .circle,
html body .admin-tool-card .stat > .avatar,
html body .admin-tool-card .stat > .badge-icon,
html body .admin-tool-card .admin-tool-stat > .icon,
html body .admin-tool-card .admin-tool-stat > .stat-icon,
html body .admin-tool-card .admin-tool-stat > .circle,
html body .admin-tool-card .admin-tool-stat > .avatar,
html body .admin-tool-card .admin-tool-stat > .badge-icon{
  display:none !important;
}

/* Tool stat text layout */
html body .admin-tool-stat-label,
html body .admin-tool-card .stat .muted,
html body .admin-tool-card .stat .admin-tool-stat-label,
html body .admin-tool-page-card .stat .muted{
  display:block !important;
  position:relative !important;
  z-index:2 !important;
  color:#667899 !important;
  font-size:14px !important;
  line-height:1.35 !important;
  margin:0 0 12px 0 !important;
  padding:0 !important;
  text-align:left !important;
  white-space:normal !important;
}

html body .admin-tool-stat-value,
html body .admin-tool-card .stat .n,
html body .admin-tool-card .stat .admin-tool-stat-value,
html body .admin-tool-page-card .stat .n{
  display:block !important;
  position:relative !important;
  z-index:2 !important;
  color:#1d5bd8 !important;
  -webkit-text-fill-color:#1d5bd8 !important;
  font-size:34px !important;
  font-weight:900 !important;
  line-height:1.05 !important;
  margin:0 0 8px 0 !important;
  padding:0 !important;
  text-align:left !important;
  transform:none !important;
}

html body .admin-tool-stat-pill,
html body .admin-tool-card .stat .pill,
html body .admin-tool-page-card .stat .pill{
  position:relative !important;
  z-index:2 !important;
  display:inline-block !important;
  margin-top:4px !important;
}

/* Prevent old dashboard icon circle if represented as first empty child */
html body .admin-tool-card .stat > *:empty,
html body .admin-tool-page-card .stat > *:empty{
  display:none !important;
}


/* 20260527 Mobile auth/login header softening */
@media (max-width: 760px){
  body.auth-login-mobile-soft,
  body.auth-logout-clean-password{
    background:#f3f7fc !important;
  }

  body.auth-login-mobile-soft .sidebar,
  body.auth-login-mobile-soft aside,
  body.auth-login-mobile-soft .app-sidebar{
    min-height:auto !important;
    height:auto !important;
    max-height:210px !important;
    padding:20px 18px !important;
    border-radius:0 0 26px 26px !important;
    box-shadow:0 10px 26px rgba(15, 45, 95, .18) !important;
    margin-bottom:18px !important;
  }

  body.auth-login-mobile-soft .sidebar nav,
  body.auth-login-mobile-soft aside nav,
  body.auth-login-mobile-soft .sidebar .menu,
  body.auth-login-mobile-soft .app-sidebar .menu{
    display:none !important;
  }

  body.auth-login-mobile-soft .sidebar .logo,
  body.auth-login-mobile-soft aside .logo,
  body.auth-login-mobile-soft .app-logo,
  body.auth-login-mobile-soft .brand{
    transform:scale(.86) !important;
    transform-origin:left center !important;
    margin-bottom:10px !important;
  }

  body.auth-login-mobile-soft .sidebar footer,
  body.auth-login-mobile-soft .sidebar .sidebar-footer,
  body.auth-login-mobile-soft aside footer,
  body.auth-login-mobile-soft .help-link{
    font-size:13px !important;
    opacity:.95 !important;
  }

  body.auth-login-mobile-soft .login-card,
  body.auth-login-mobile-soft .auth-card,
  body.auth-login-mobile-soft form.login-form,
  body.auth-login-mobile-soft main .card{
    margin-top:14px !important;
    border-radius:26px !important;
    box-shadow:0 14px 34px rgba(15,45,95,.10) !important;
  }

  body.auth-login-mobile-soft h1{
    font-size:32px !important;
    line-height:1.15 !important;
  }

  body.auth-login-mobile-soft input,
  body.auth-logout-clean-password input{
    font-size:16px !important;
  }
}

/* 20260527 Device notification toggle buttons */
html body .notification-disable-btn,
html body button.notification-disable-btn,
html body a.notification-disable-btn{
  background:#dc2626 !important;
  background-color:#dc2626 !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}
html body .notification-disable-btn:hover,
html body button.notification-disable-btn:hover,
html body a.notification-disable-btn:hover{
  background:#b91c1c !important;
  background-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
html body .notification-device-toggle-fixed.btn-primary{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* 20260527 HARD MOBILE LOGIN COMPACT OVERRIDE */
@media (max-width: 760px){
  body.login-mobile-compact .sidebar,
  body.login-mobile-compact aside,
  body.login-mobile-compact .app-sidebar,
  body.login-mobile-compact .left-sidebar,
  body.login-mobile-compact .auth-sidebar{
    width:100% !important;
    min-height:86px !important;
    height:86px !important;
    max-height:86px !important;
    padding:14px 18px !important;
    margin:0 0 14px 0 !important;
    border-radius:0 0 22px 22px !important;
    overflow:hidden !important;
  }

  body.login-mobile-compact .sidebar nav,
  body.login-mobile-compact aside nav,
  body.login-mobile-compact .app-sidebar nav,
  body.login-mobile-compact .sidebar-footer,
  body.login-mobile-compact .sidebar footer,
  body.login-mobile-compact aside footer,
  body.login-mobile-compact .help-link,
  body.login-mobile-compact .copyright{
    display:none !important;
  }

  body.login-mobile-compact main,
  body.login-mobile-compact .main,
  body.login-mobile-compact .content,
  body.login-mobile-compact .page-content,
  body.login-mobile-compact .auth-content{
    margin:0 !important;
    padding:10px 14px 24px 14px !important;
  }

  body.login-mobile-compact .login-card,
  body.login-mobile-compact .auth-card,
  body.login-mobile-compact main > .card{
    margin-top:0 !important;
    border-radius:26px !important;
    padding:26px 22px !important;
  }
}


/* 20260527 final login compact + no-password-suggest */
input.no-browser-password-suggest{
  -webkit-text-security: disc;
}
@media (max-width: 760px){
  body.login-mobile-compact .sidebar,
  body.login-mobile-compact aside,
  body.login-mobile-compact .app-sidebar,
  body.login-mobile-compact .left-sidebar,
  body.login-mobile-compact .auth-sidebar{
    min-height:72px !important;
    height:72px !important;
    max-height:72px !important;
    overflow:hidden !important;
    border-radius:0 0 18px 18px !important;
  }
  body.login-mobile-compact .sidebar nav,
  body.login-mobile-compact aside nav,
  body.login-mobile-compact .sidebar-footer,
  body.login-mobile-compact aside footer,
  body.login-mobile-compact .help-link,
  body.login-mobile-compact .copyright,
  body.login-mobile-compact .support-link{
    display:none !important;
  }
}


/* 20260527 masked visible auth fields + mobile login hide bar */
.masked-password-field{
  -webkit-text-security: disc !important;
  text-security: disc !important;
}
@media (max-width: 760px){
  body.login-mobile-compact .sidebar,
  body.login-mobile-compact aside,
  body.login-mobile-compact .app-sidebar,
  body.login-mobile-compact .left-sidebar,
  body.login-mobile-compact .auth-sidebar,
  body.login-mobile-compact .mobile-sidebar{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    visibility:hidden !important;
    overflow:hidden !important;
  }
  body.login-mobile-compact main,
  body.login-mobile-compact .main,
  body.login-mobile-compact .content,
  body.login-mobile-compact .auth-content,
  body.login-mobile-compact .page-content{
    margin:0 !important;
    padding-top:18px !important;
  }
}


/* 20260527 final auth brand panel hidden on mobile login */
@media (max-width: 760px){
  body.login-mobile-compact .auth-brand-panel{
    display:none !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
    visibility:hidden !important;
  }
  body.login-mobile-compact .auth-layout{
    display:block !important;
  }
  body.login-mobile-compact .auth-stage{
    width:100% !important;
    padding:18px 14px 24px 14px !important;
  }
}


/* 20260528 PWA install notice */
.pwa-install-notice{
  position:fixed !important;
  left:14px !important;
  right:14px !important;
  bottom:14px !important;
  z-index:99999 !important;
  background:#ffffff !important;
  border:1px solid #dbe5f2 !important;
  border-radius:18px !important;
  box-shadow:0 16px 42px rgba(15,45,95,.20) !important;
  padding:16px !important;
  color:#10254a !important;
}
.pwa-install-title{
  font-weight:900 !important;
  font-size:15px !important;
  margin-bottom:6px !important;
}
.pwa-install-text{
  font-size:14px !important;
  color:#52647f !important;
  line-height:1.35 !important;
}
.pwa-install-actions{
  display:flex !important;
  gap:8px !important;
  margin-top:12px !important;
}
.pwa-install-actions button{
  flex:1 !important;
  border:0 !important;
  border-radius:12px !important;
  padding:11px 12px !important;
  font-weight:800 !important;
}
#pwaInstallBtn{
  background:#2563eb !important;
  color:#fff !important;
}
#pwaInstallClose{
  background:#eef2f7 !important;
  color:#10254a !important;
}
@media (min-width: 780px){
  .pwa-install-notice{
    max-width:440px !important;
    left:auto !important;
  }
}


/* 20260528 PWA install notice with never-show option */
.pwa-install-notice{
  position:fixed !important;
  left:14px !important;
  right:14px !important;
  bottom:14px !important;
  z-index:99999 !important;
  background:#ffffff !important;
  border:1px solid #dbe5f2 !important;
  border-radius:18px !important;
  box-shadow:0 16px 42px rgba(15,45,95,.20) !important;
  padding:16px !important;
  color:#10254a !important;
}
.pwa-install-title{
  font-weight:900 !important;
  font-size:15px !important;
  margin-bottom:6px !important;
}
.pwa-install-text,
.pwa-install-hint{
  font-size:14px !important;
  color:#52647f !important;
  line-height:1.35 !important;
  margin-top:6px !important;
}
.pwa-install-hint{
  background:#f3f7fc !important;
  border:1px solid #dbe5f2 !important;
  border-radius:12px !important;
  padding:10px !important;
}
.pwa-install-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
  margin-top:12px !important;
}
.pwa-install-actions button{
  border:0 !important;
  border-radius:12px !important;
  padding:11px 12px !important;
  font-weight:800 !important;
}
#pwaInstallBtn{
  grid-column:1 / -1 !important;
  background:#2563eb !important;
  color:#fff !important;
}
#pwaInstallClose{
  background:#eef2f7 !important;
  color:#10254a !important;
}
#pwaInstallNever{
  background:#fee2e2 !important;
  color:#991b1b !important;
}
.pwa-install-settings-card{
  margin-top:18px !important;
}
.pwa-install-settings-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}
.pwa-install-settings-actions .btn{
  min-height:44px !important;
}
@media (min-width: 780px){
  .pwa-install-notice{
    max-width:460px !important;
    left:auto !important;
  }
}
@media (max-width: 760px){
  .pwa-install-settings-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
}


/* 20260528 iPhone push check card */
.iphone-push-check-card{
  margin-top:18px !important;
}
.iphone-push-check-card .pwa-install-settings-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}
@media (max-width: 760px){
  .iphone-push-check-card .pwa-install-settings-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .iphone-push-check-card .btn{
    width:100% !important;
    text-align:center !important;
  }
}


/* 20260601 iPhone push check user-friendly mode */
.iphone-check-page .iphone-help-box{
  margin-top:18px !important;
  background:#f8fafc !important;
  border:1px solid #dbe5f2 !important;
  border-radius:18px !important;
  padding:16px !important;
}
.iphone-check-page .iphone-help-box h2{
  margin-top:0 !important;
}
.iphone-check-page .iphone-help-box ol{
  padding-left:22px !important;
  line-height:1.55 !important;
}
.iphone-check-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:18px !important;
}
.iphone-check-actions .btn{
  min-height:44px !important;
}
.iphone-check-actions .btn.disabled,
.iphone-check-actions button:disabled{
  opacity:.65 !important;
  cursor:not-allowed !important;
  background:#94a3b8 !important;
  color:#fff !important;
}
.iphone-debug-details{
  margin-top:18px !important;
}
.iphone-debug-details summary{
  cursor:pointer !important;
  font-weight:800 !important;
  color:#10254a !important;
}
.iphone-debug-details pre{
  white-space:pre-wrap !important;
  background:#0f172a !important;
  color:#e5e7eb !important;
  padding:14px !important;
  border-radius:12px !important;
  overflow:auto !important;
  max-height:360px !important;
}
@media (max-width: 760px){
  .iphone-check-page{
    padding:18px !important;
  }
  .iphone-check-page h1{
    font-size:28px !important;
    line-height:1.15 !important;
  }
  .iphone-check-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .iphone-check-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .iphone-check-actions .btn{
    width:100% !important;
    text-align:center !important;
  }
}


/* 20260601 admin iOS health robust table */
.table-wrap table td small{
  color:#64748b !important;
}
.stat-card strong{
  font-size:28px;
}


/* 20260601 admin push test center */
.push-test-form{
  max-width:720px !important;
}
.push-test-form select,
.push-test-form input{
  width:100% !important;
}
@media (max-width:760px){
  .push-test-form .btn{
    width:100% !important;
  }
}


/* 20260601 push tests in notifications admin only */
.admin-push-test-menu-card,
.iphone-push-check-card{
  margin-top:18px !important;
}
.admin-push-test-actions,
.iphone-push-check-card .pwa-install-settings-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}
@media (max-width:760px){
  .admin-push-test-actions,
  .iphone-push-check-card .pwa-install-settings-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .admin-push-test-actions .btn,
  .iphone-push-check-card .btn{
    width:100% !important;
    text-align:center !important;
  }
}


/* 20260601 mobile PWA install banner buttons visibility fix */
@media (max-width: 760px){
  .pwa-install-banner,
  .pwa-install-prompt,
  .install-app-banner,
  .add-to-home-banner,
  #pwaInstallBanner,
  #installAppBanner,
  #addToHomeBanner{
    left:12px !important;
    right:12px !important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    box-sizing:border-box !important;
    padding:14px !important;
    border-radius:18px !important;
    overflow:visible !important;
    z-index:9998 !important;
  }

  .pwa-install-banner .banner-actions,
  .pwa-install-banner .pwa-install-actions,
  .pwa-install-banner .actions,
  .pwa-install-prompt .banner-actions,
  .pwa-install-prompt .pwa-install-actions,
  .pwa-install-prompt .actions,
  .install-app-banner .banner-actions,
  .install-app-banner .pwa-install-actions,
  .install-app-banner .actions,
  .add-to-home-banner .banner-actions,
  .add-to-home-banner .pwa-install-actions,
  .add-to-home-banner .actions,
  #pwaInstallBanner .banner-actions,
  #pwaInstallBanner .pwa-install-actions,
  #pwaInstallBanner .actions,
  #installAppBanner .banner-actions,
  #installAppBanner .pwa-install-actions,
  #installAppBanner .actions,
  #addToHomeBanner .banner-actions,
  #addToHomeBanner .pwa-install-actions,
  #addToHomeBanner .actions{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    flex:1 1 100% !important;
  }

  .pwa-install-banner button,
  .pwa-install-banner .btn,
  .pwa-install-banner a,
  .pwa-install-prompt button,
  .pwa-install-prompt .btn,
  .pwa-install-prompt a,
  .install-app-banner button,
  .install-app-banner .btn,
  .install-app-banner a,
  .add-to-home-banner button,
  .add-to-home-banner .btn,
  .add-to-home-banner a,
  #pwaInstallBanner button,
  #pwaInstallBanner .btn,
  #pwaInstallBanner a,
  #installAppBanner button,
  #installAppBanner .btn,
  #installAppBanner a,
  #addToHomeBanner button,
  #addToHomeBanner .btn,
  #addToHomeBanner a{
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    justify-content:center !important;
    text-align:center !important;
    padding-left:12px !important;
    padding-right:12px !important;
    font-size:16px !important;
    line-height:1.15 !important;
    min-height:48px !important;
  }

  .pwa-install-banner .banner-content,
  .pwa-install-banner .content,
  .pwa-install-prompt .banner-content,
  .pwa-install-prompt .content,
  .install-app-banner .banner-content,
  .install-app-banner .content,
  .add-to-home-banner .banner-content,
  .add-to-home-banner .content,
  #pwaInstallBanner .banner-content,
  #pwaInstallBanner .content,
  #installAppBanner .banner-content,
  #installAppBanner .content,
  #addToHomeBanner .banner-content,
  #addToHomeBanner .content{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
  }

  .pwa-install-banner h3,
  .pwa-install-banner strong,
  .pwa-install-prompt h3,
  .pwa-install-prompt strong,
  .install-app-banner h3,
  .install-app-banner strong,
  .add-to-home-banner h3,
  .add-to-home-banner strong,
  #pwaInstallBanner h3,
  #pwaInstallBanner strong,
  #installAppBanner h3,
  #installAppBanner strong,
  #addToHomeBanner h3,
  #addToHomeBanner strong{
    font-size:18px !important;
    line-height:1.15 !important;
  }

  .pwa-install-banner p,
  .pwa-install-prompt p,
  .install-app-banner p,
  .add-to-home-banner p,
  #pwaInstallBanner p,
  #installAppBanner p,
  #addToHomeBanner p{
    font-size:15px !important;
    line-height:1.25 !important;
    margin-bottom:0 !important;
  }

  body.has-pwa-install-banner{
    padding-bottom:150px !important;
  }
}

@media (max-width: 390px){
  .pwa-install-banner .banner-actions,
  .pwa-install-banner .pwa-install-actions,
  .pwa-install-banner .actions,
  .pwa-install-prompt .banner-actions,
  .pwa-install-prompt .pwa-install-actions,
  .pwa-install-prompt .actions,
  .install-app-banner .banner-actions,
  .install-app-banner .pwa-install-actions,
  .install-app-banner .actions,
  .add-to-home-banner .banner-actions,
  .add-to-home-banner .pwa-install-actions,
  .add-to-home-banner .actions,
  #pwaInstallBanner .banner-actions,
  #pwaInstallBanner .pwa-install-actions,
  #pwaInstallBanner .actions,
  #installAppBanner .banner-actions,
  #installAppBanner .pwa-install-actions,
  #installAppBanner .actions,
  #addToHomeBanner .banner-actions,
  #addToHomeBanner .pwa-install-actions,
  #addToHomeBanner .actions{
    grid-template-columns:1fr !important;
  }
}


/* 20260601 admin global logout all devices */
.admin-global-logout-card{
  margin-top:18px !important;
}
.btn-danger,
button.btn-danger,
a.btn-danger{
  background:#b91c1c !important;
  color:#fff !important;
  border-color:#991b1b !important;
}
.btn-danger:hover,
button.btn-danger:hover,
a.btn-danger:hover{
  background:#991b1b !important;
  color:#fff !important;
}
@media (max-width:760px){
  .admin-global-logout-card .admin-push-test-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .admin-global-logout-card .btn{
    width:100% !important;
    text-align:center !important;
  }
}


/* 20260601 PWA banner loop fix safety */
@media (max-width: 760px){
  body.has-pwa-install-banner{
    padding-bottom:150px !important;
  }
}


/* 20260601 AVTO notification guard modal */
.avto-notification-guard-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:10050 !important;
  background:rgba(15,23,42,.42) !important;
  padding:18px !important;
  overflow:auto !important;
}
.avto-notification-guard-box{
  max-width:680px !important;
  margin:70px auto 20px auto !important;
  background:#fff !important;
  border:1px solid #dbe5f2 !important;
  border-radius:24px !important;
  box-shadow:0 24px 70px rgba(15,45,95,.24) !important;
  padding:22px 58px 22px 22px !important;
  display:flex !important;
  gap:16px !important;
  align-items:flex-start !important;
  position:relative !important;
}
.avto-notification-guard-icon{
  width:58px !important;
  min-width:58px !important;
  height:58px !important;
  border-radius:18px !important;
  background:#eff6ff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:34px !important;
}
.avto-notification-guard-content h2{
  margin:0 0 8px 0 !important;
  color:#10254a !important;
  font-size:26px !important;
  line-height:1.15 !important;
}
.avto-notification-guard-content p{
  margin:0 0 14px 0 !important;
  color:#475569 !important;
  line-height:1.45 !important;
}
.avto-notification-guard-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}
.avto-notification-guard-close{
  position:absolute !important;
  right:14px !important;
  top:12px !important;
  width:36px !important;
  height:36px !important;
  border-radius:12px !important;
  border:1px solid #dbe5f2 !important;
  background:#fff !important;
  color:#10254a !important;
  font-size:24px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.avto-notification-guard-close:hover{
  background:#f1f5f9 !important;
}
.avto-notification-guard-status{
  margin-top:12px !important;
  font-weight:800 !important;
  color:#64748b !important;
}
.avto-notification-guard-status.is-ok{
  color:#15803d !important;
}
.avto-notification-guard-status.is-bad{
  color:#b91c1c !important;
}
.avto-notification-guard-actions button:disabled{
  opacity:.6 !important;
  cursor:not-allowed !important;
}
@media (max-width:760px){
  .avto-notification-guard-modal{
    padding:12px !important;
  }
  .avto-notification-guard-box{
    margin:40px auto 20px auto !important;
    display:block !important;
    padding:20px !important;
    border-radius:22px !important;
  }
  .avto-notification-guard-icon{
    margin-bottom:12px !important;
  }
  .avto-notification-guard-content h2{
    font-size:24px !important;
    padding-right:38px !important;
  }
  .avto-notification-guard-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .avto-notification-guard-actions .btn,
  .avto-notification-guard-actions button{
    width:100% !important;
    text-align:center !important;
  }
}


/* 20260601 admin logout all visible and notified */
.admin-logout-all-direct-card{
  border:2px solid #fecaca !important;
  background:#fff7f7 !important;
  margin-bottom:18px !important;
}
.admin-logout-all-direct-card h2,
.admin-logout-all-main-card h1{
  color:#7f1d1d !important;
}
.admin-logout-all-big-btn{
  font-size:16px !important;
  font-weight:900 !important;
  min-height:48px !important;
  padding:14px 18px !important;
}
.btn-danger,
button.btn-danger,
a.btn-danger{
  background:#b91c1c !important;
  color:#fff !important;
  border-color:#991b1b !important;
}
.btn-danger:hover,
button.btn-danger:hover,
a.btn-danger:hover{
  background:#991b1b !important;
  color:#fff !important;
}
@media (max-width:760px){
  .admin-logout-all-direct-card .btn,
  .admin-logout-all-main-card .btn{
    width:100% !important;
    margin-bottom:8px !important;
    text-align:center !important;
  }
}


/* 20260601 maintenance force logout logic */
.admin-maintenance-direct-card,
.admin-maintenance-card{
  border:2px solid #fed7aa !important;
  background:#fff7ed !important;
  margin-bottom:18px !important;
}
.maintenance-card{
  max-width:760px !important;
  margin:40px auto !important;
  text-align:center !important;
}
.maintenance-icon{
  width:78px !important;
  height:78px !important;
  border-radius:24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff7ed !important;
  font-size:42px !important;
  margin:0 auto 18px auto !important;
}
.maintenance-card h1{
  color:#10254a !important;
}
@media (max-width:760px){
  .admin-maintenance-direct-card .btn,
  .admin-maintenance-card .btn,
  .maintenance-card .btn{
    width:100% !important;
    text-align:center !important;
    margin-bottom:8px !important;
  }
}
