/**
 * ClearPro app-wide control language
 * ----------------------------------
 * Buttons (two looks from your screenshots):
 *   A) Light pill  — white fill, blue text/border  (Sales items / Inventory)
 *   B) Glass pill  — frosted on dark blue banners   (Welcome checklist)
 * Info bubbles:
 *   Same chip language as Employee performance names
 *   (rounded pill, soft border, clickable, no underline)
 *
 * Nav menus are owned by nav-menu-unify.css — left alone here.
 */

/* =========================================================
   Shared: no lift / press / 3D shift (kills flicker + double depth)
   ========================================================= */
button,
.button,
.btn,
a.button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.link-button,
.cp-action,
.dashboard-review-button,
.dashboard-invoice-button,
.dashboard-send-button,
.complete-button,
.map-button,
.cancel-button,
.customer-search-button,
.item-category-tabs a,
.completed-filter a,
.staff-history-filter a,
.quick-actions a,
.page-heading > a,
.page-heading > div > a,
.panel-heading > a,
.welcome > a,
.calendar-heading > div > a,
.staff-bubble-actions a,
.staff-bubble-actions button,
table .actions a,
table .actions button,
td.actions a,
td.actions button,
.actions a,
.actions button,
.quote-toolbar a,
.quote-toolbar button,
.form-actions a,
.form-actions button,
.job-actions a,
.job-actions button,
.action-buttons a,
.action-buttons button,
.dash-welcome-actions a,
.dash-welcome-actions button,
a.ram-bubble,
.roster-accept-chip {
  transform: none !important;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, filter 0.12s ease !important;
  animation: none !important;
  filter: none !important;
  text-shadow: none !important;
  box-sizing: border-box !important;
}

/* =========================================================
   STYLE A — Light pill (Sales items / Inventory items)
   Default for almost every action control on light pages
   ========================================================= */
button:not(.cp-select-trigger):not(.item-search-option):not(.remove-quote-item):not(.mobile-menu-toggle):not(.danger):not(.danger-button):not(.btn-role-delete):not(.dash-cta-broadcast):not(.dash-cta-primary):not(.opt):not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-whatsapp):not(.addr-mode-btn):not(.address-suggest-btn):not(.name-suggest-btn):not(.a-chip):not(.win-type-btn),
.button.secondary:not(.danger):not(.danger-button):not(.btn-role-delete),
.btn:not(.danger):not(.btn-role-delete),
a.button.secondary:not(.danger):not(.btn-role-delete):not(.header-signout),
input[type="submit"]:not(.danger):not(.danger-button):not(.btn-role-delete),
input[type="button"]:not(.danger):not(.danger-button):not(.btn-role-delete),
input[type="reset"],
.link-button:not(.danger),
button.link:not(.danger),
.cp-action,
.dashboard-review-button,
.dashboard-invoice-button,
.dashboard-send-button,
.complete-button,
.map-button,
.cancel-button,
.customer-search-button,
.invoice-export-menu > summary,
.quote-more > summary,
.item-category-tabs a,
.completed-filter a,
.staff-history-filter a,
.quick-actions a,
.page-heading > a,
.page-heading > div > a,
.panel-heading > a:not(.stat),
.welcome > a,
.calendar-heading > div > a,
.staff-bubble-actions a,
.staff-bubble-actions button,
table .actions a,
table .actions button,
td.actions a,
td.actions button,
.actions a,
.actions button,
.quote-toolbar a,
.quote-toolbar button,
.quote-actions a,
.quote-actions button,
.form-actions a,
.form-actions button,
.form-grid button:not(.cp-select-trigger):not(.remove-quote-item):not(.danger):not(.danger-button):not(.opt):not(.btn):not(.addr-mode-btn),
.form-stack > button:not(.cp-select-trigger):not(.danger):not(.danger-button),
.form-stack > div > button:not(.cp-select-trigger):not(.danger):not(.danger-button),
.job-actions a,
.job-actions button,
.action-buttons a,
.action-buttons button,
.completed-job-actions a,
.completed-job-actions button,
.dashboard-review-actions a,
.dashboard-review-actions button,
.prestart-checklist button,
.end-job-checklist button,
.job-live-timer button,
.pay-entry-actions button,
.employee-option-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 40px !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  border: 1.5px solid #9ec0d2 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #075984 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Hover = colour only, no move */
button:not(.cp-select-trigger):not(.item-search-option):not(.remove-quote-item):not(.mobile-menu-toggle):not(.danger):not(.danger-button):not(.btn-role-delete):not(.opt):not(.btn):not(.addr-mode-btn):hover,
.button.secondary:not(.danger):not(.danger-button):not(.btn-role-delete):hover,
a.button.secondary:not(.danger):not(.btn-role-delete):not(.header-signout):hover,
input[type="submit"]:not(.danger):not(.danger-button):hover,
input[type="button"]:not(.danger):not(.danger-button):hover,
.link-button:hover,
.cp-action:hover,
.dashboard-review-button:hover,
.dashboard-invoice-button:hover,
.item-category-tabs a:hover,
.completed-filter a:hover,
.quick-actions a:hover,
.page-heading > a:hover,
.panel-heading > a:hover,
.staff-bubble-actions a:hover,
table .actions a:hover,
.actions a:hover {
  background: #eef8fc !important;
  color: #0a5f93 !important;
  border-color: #0a5f93 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Active / selected chips (Items tabs etc.) — filled blue pill */
.item-category-tabs a.active,
.completed-filter a.active,
.staff-history-filter a.active {
  background: #0a5f93 !important;
  color: #ffffff !important;
  border-color: #0a5f93 !important;
  box-shadow: none !important;
}

/* Explicit primary filled (when we want stronger CTA without lime) */
.button:not(.secondary):not(.danger):not(.ghost):not(.header-signout),
button[type="submit"]:not(.secondary):not(.danger):not(.danger-button):not(.btn-role-delete):not(.cancel-button),
a.button:not(.secondary):not(.danger):not(.ghost):not(.header-signout) {
  background: #0a5f93 !important;
  color: #ffffff !important;
  border: 1.5px solid #0a5f93 !important;
  box-shadow: none !important;
}
.button:not(.secondary):not(.danger):hover,
button[type="submit"]:not(.secondary):not(.danger):hover,
a.button:not(.secondary):not(.danger):hover {
  background: #08496f !important;
  border-color: #08496f !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Secondary always light pill even if both classes present */
.button.secondary,
a.button.secondary,
button.secondary,
.button.ghost,
button.ghost,
a.cancel-button,
.cancel-button {
  background: #ffffff !important;
  color: #075984 !important;
  border: 1.5px solid #9ec0d2 !important;
  box-shadow: none !important;
}
.button.secondary:hover,
a.button.secondary:hover,
button.secondary:hover {
  background: #eef8fc !important;
  color: #0a5f93 !important;
  border-color: #0a5f93 !important;
  transform: none !important;
}

/* Danger stays red, flat pill */
.danger,
.danger-button,
.btn-role-delete,
button.danger,
a.danger,
a.button.danger,
.header-signout {
  background: #c62828 !important;
  color: #ffffff !important;
  border: 1.5px solid #b71c1c !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}
.danger:hover,
.danger-button:hover,
.header-signout:hover {
  background: #b71c1c !important;
  transform: none !important;
}

/* Review queue: keep yellow review as light pill with warm border */
.dashboard-review-button {
  background: #fff8e1 !important;
  color: #6b4e00 !important;
  border: 1.5px solid #e0a800 !important;
}
.dashboard-review-button:hover {
  background: #ffefc2 !important;
  color: #5a4000 !important;
  border-color: #c49200 !important;
}

/* =========================================================
   STYLE B — Glass pill on dark banners (Welcome checklist)
   ========================================================= */
.dash-welcome-actions a.dash-cta-secondary,
.dash-welcome-actions button.dash-cta-broadcast {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 800 !important;
  transform: none !important;
}
.dash-welcome-actions a.dash-cta-secondary:hover,
.dash-welcome-actions button.dash-cta-broadcast:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: none !important;
  box-shadow: none !important;
}
.dash-welcome-actions button.dash-cta-broadcast.is-on {
  background: rgba(182, 223, 60, 0.22) !important;
  border-color: rgba(182, 223, 60, 0.65) !important;
  color: #ffffff !important;
}

/* New job — lime solid pill (banner primary, still flat) */
.dash-welcome-actions a.dash-cta-primary {
  background: #b6df3c !important;
  color: #1a2d31 !important;
  border: 1.5px solid #9bc92a !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}
.dash-welcome-actions a.dash-cta-primary:hover {
  background: #c4e85a !important;
  border-color: #8fb523 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================
   INFO BUBBLES — Employee performance style (pic 3 checkmarks)
   Finance figures, staff chips, any .ram-bubble
   ========================================================= */
a.ram-bubble,
.ram a.ram-bubble,
.ram-bubble,
a.roster-accept-chip,
.roster-accept-chip.ram-bubble,
.roster-accept-chips a.roster-accept-chip,
.roster-accept-chips a.ram-bubble {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  border: 1.5px solid #c5d9e4 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #0a5f93 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  transform: none !important;
}

a.ram-bubble strong,
.ram-bubble strong,
a.roster-accept-chip strong,
.roster-accept-chip strong {
  color: #0a5f93 !important;
  font-weight: 800 !important;
}

a.ram-bubble:hover,
.ram a.ram-bubble:hover,
a.roster-accept-chip:hover,
.roster-accept-chip.ram-bubble:hover {
  background: #eef8fc !important;
  border-color: #0a5f93 !important;
  color: #08496f !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}

a.ram-bubble:focus,
.roster-accept-chip.ram-bubble:focus {
  outline: 2px solid #0a5f93 !important;
  outline-offset: 2px !important;
}

/* Performance / status tints (match employee chips) */
.roster-accept-chip.ok,
a.roster-accept-chip.ok,
.roster-accept-chip.ok.ram-bubble {
  border-color: #b7dfc0 !important;
  background: #eef8f0 !important;
  color: #0a5f93 !important;
}
.roster-accept-chip.ok:hover,
a.roster-accept-chip.ok:hover {
  background: #e0f3e4 !important;
  border-color: #0a5f93 !important;
  color: #08496f !important;
}

.roster-accept-chip.partial,
a.roster-accept-chip.partial {
  border-color: #e0a800 !important;
  background: #fff8e1 !important;
  color: #6b4e00 !important;
}

.roster-accept-chip.wait,
a.roster-accept-chip.wait,
span.roster-accept-chip.wait {
  border-color: #e7b5af !important;
  background: #fff5f5 !important;
  color: #8f1e18 !important;
  cursor: default !important;
}

/* Finance row container: wrap chips cleanly */
.roster-accept-strip .ram,
.ram {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  font-size: 13px !important;
}

.roster-accept-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

/* Kill any leftover underline on info links inside finance strips */
.roster-accept-strip a,
.ram a {
  text-decoration: none !important;
}

/* =========================================================
   Never restyle the top nav as page buttons
   ========================================================= */
header.site-header nav > a,
header.site-header nav .sales-menu > summary,
header.site-header nav .sales-menu-links a {
  /* nav-menu-unify owns these — just ensure we don't force 40px action padding */
  min-height: unset;
}

/* Dashboard roster status strip — same blue info chips as finance bubbles */
.dashboard-roster-done a.ram-bubble,
.dash-roster-actions a.ram-bubble,
.dash-glance-strip a.ram-bubble {
  color: #0a5f93 !important;
  text-decoration: none !important;
}
.dashboard-roster-done a:not(.ram-bubble):not(.button):not(.button.secondary) {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 12px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  border: 1.5px solid #c5d9e4 !important;
  background: #ffffff !important;
  color: #0a5f93 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.dashboard-roster-done a:not(.ram-bubble):hover {
  background: #eef8fc !important;
  border-color: #0a5f93 !important;
}