@charset "UTF-8";
/* ==========================================================================
   Attithya CRM — UI Theme Layer
   --------------------------------------------------------------------------
   A drop-in restyle for the existing Bootstrap 3 admin theme.
   It overrides presentation only: no markup, PHP or permission logic changes.

   USAGE — add ONE line to a view, AFTER every existing <link> tag and
   BEFORE the inline <style> block:

     <link href="<?php echo assets_url; ?>css/athitya-ui.css" rel="stylesheet" type="text/css" />

   To revert: delete that line. Nothing else is affected.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — warm gold reads as hospitality; deep navy keeps it professional */
  --at-gold-50:   #FDF6E9;
  --at-gold-100:  #F8E6C2;
  --at-gold-400:  #E5AE45;
  --at-gold-500:  #D4952A;
  --at-gold-600:  #B37A1C;

  /* Sidebar / ink */
  --at-ink-900:   #0B1C2E;
  --at-ink-800:   #11293F;
  --at-ink-700:   #1B3A55;
  --at-ink-600:   #2A506F;

  /* Neutrals */
  --at-text:      #101828;
  --at-text-mid:  #475467;
  --at-text-soft: #98A2B3;
  --at-line:      #E9EDF3;
  --at-line-soft: #F2F4F7;
  --at-bg:        #F4F6FA;
  --at-surface:   #FFFFFF;

  /* Semantic */
  --at-success:   #0E9F6E;
  --at-success-bg:#E6F6EF;
  --at-danger:    #E02D3C;
  --at-danger-bg: #FDECEE;
  --at-warning:   #DC8B12;
  --at-warning-bg:#FDF3E3;
  --at-info:      #2D7FF9;
  --at-info-bg:   #EAF2FE;
  --at-teal:      #0F9AA6;
  --at-teal-bg:   #E5F5F6;

  /* Elevation */
  --at-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --at-shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --at-shadow-md: 0 4px 10px -2px rgba(16, 24, 40, .08), 0 2px 6px -2px rgba(16, 24, 40, .05);
  --at-shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .06);

  /* Geometry */
  --at-r-sm: 8px;
  --at-r-md: 12px;
  --at-r-lg: 16px;
  --at-sidebar-w: 244px;

  --at-font: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
  background-color: var(--at-bg) !important;
  font-family: var(--at-font) !important;
  color: var(--at-text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--at-font);
  color: var(--at-text);
  letter-spacing: -0.011em;
}

a { color: var(--at-ink-600); }
a:hover, a:focus { color: var(--at-gold-600); text-decoration: none; }

hr { border-top: 1px solid var(--at-line); margin: 14px 0; }

::selection { background: var(--at-gold-100); color: var(--at-ink-900); }

/* Focus ring — keyboard accessibility the old theme lacked entirely */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--at-gold-400);
  outline-offset: 2px;
  border-radius: var(--at-r-sm);
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
div.contentarea { margin-left: 0; padding: 0; min-height: 100vh; }

.wrapper {
  margin-left: var(--at-sidebar-w) !important;
  padding: 22px 24px 40px !important;
  transition: margin-left .22s ease;
}

.wrapper > .container-fluid { padding-left: 0; padding-right: 0; }

/* Slightly tighter gutters so cards breathe without drifting apart */
.wrapper .row { margin-left: -9px; margin-right: -9px; }
.wrapper .row > [class*="col-"] { padding-left: 9px; padding-right: 9px; }

/* --------------------------------------------------------------------------
   4. Sidebar
   -------------------------------------------------------------------------- */
.leftmenu {
  width: var(--at-sidebar-w) !important;
  background: linear-gradient(180deg, var(--at-ink-900) 0%, var(--at-ink-800) 100%) !important;
  border: 0 !important;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .04), 4px 0 24px rgba(11, 28, 46, .10);
  padding-bottom: 24px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--at-ink-600) transparent;
}

.leftmenu::-webkit-scrollbar { width: 6px; }
.leftmenu::-webkit-scrollbar-track { background: transparent; box-shadow: none; }
.leftmenu::-webkit-scrollbar-thumb { background: var(--at-ink-600); border-radius: 99px; }
.leftmenu::-webkit-scrollbar-thumb:hover { background: var(--at-gold-600); }

/* Logo lockup */
.leftmenu .logo {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
  margin: 0 0 10px !important;
  padding: 18px 18px 16px !important;
  text-align: left;
}
.leftmenu .logo img {
  max-width: 150px;
  height: auto;
  /* The source logo is dark-on-white; lift it for the dark rail */
  filter: brightness(0) invert(1) opacity(.95);
}

/* Nav items */
.leftmenu ul { list-style: none; padding: 0 10px; margin: 0; }
.leftmenu li { margin-bottom: 2px !important; position: relative; }

.leftmenu a {
  display: flex !important;
  align-items: center;
  gap: 11px;
  color: rgba(226, 235, 244, .74) !important;
  padding: 9px 12px !important;
  margin: 0 !important;
  border-radius: var(--at-r-sm) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: .005em;
  text-decoration: none;
  position: relative;
  transition: background-color .16s ease, color .16s ease;
}

.leftmenu a > div:first-child {
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leftmenu li a svg {
  width: 17px !important;
  height: 17px;
  margin-right: 0 !important;
  fill: currentColor;
  opacity: .78;
  transition: opacity .16s ease;
}

.leftmenu a:hover:not(.active) {
  background-color: rgba(255, 255, 255, .06) !important;
  color: #FFFFFF !important;
}
.leftmenu a:hover svg { opacity: 1; }

/* Active item — gold wash plus a left marker */
.leftmenu a.active {
  background-color: rgba(229, 174, 69, .14) !important;
  color: #FFFFFF !important;
  border-radius: var(--at-r-sm) !important;
  font-weight: 600 !important;
}
.leftmenu a.active svg { opacity: 1; fill: var(--at-gold-400); }
.leftmenu a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--at-gold-400);
}

/* Collapse caret */
.leftmenu .collapse_arrow {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%);
  margin: 0 !important;
  width: 13px !important;
  height: 13px;
  opacity: .5;
  transition: transform .2s ease, opacity .2s ease;
}
.leftmenu a[aria-expanded="true"] .collapse_arrow {
  transform: translateY(-50%) rotate(90deg);
  opacity: .9;
}
.leftmenu a[aria-expanded="true"] {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, .04) !important;
}

/* Submenu */
.leftmenu .collapse ul.nav,
.leftmenu .collapsing ul.nav {
  padding: 3px 0 5px 14px;
  margin: 2px 0 4px;
  position: relative;
}
.leftmenu .collapse ul.nav::before,
.leftmenu .collapsing ul.nav::before {
  content: "";
  position: absolute;
  left: 13px; top: 4px; bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, .10);
}
.leftmenu .collapse ul.nav > li > a,
.leftmenu .collapsing ul.nav > li > a {
  font-size: 13px !important;
  font-weight: 450 !important;
  padding: 7px 10px 7px 14px !important;
  color: rgba(226, 235, 244, .60) !important;
}
.leftmenu .collapse ul.nav > li > a svg { width: 14px !important; height: 14px; opacity: .6; }
.leftmenu .collapse ul.nav > li > a.active { background-color: rgba(229, 174, 69, .12) !important; }
.leftmenu .collapse ul.nav > li > a.active::before { left: -1px; height: 16px; width: 2px; }

/* Mobile */
@media (max-width: 767px) {
  .leftmenu { width: 100% !important; position: relative; height: auto; }
  .wrapper { margin-left: 0 !important; padding: 14px 14px 30px !important; }
  .leftmenu .logo { text-align: center; }
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
.card_box,
.card-box {
  background-color: var(--at-surface) !important;
  border: 1px solid var(--at-line) !important;
  border-radius: var(--at-r-md) !important;
  box-shadow: var(--at-shadow-sm);
  padding: 18px 18px 16px !important;
  margin-bottom: 18px !important;
  height: auto;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card_box:hover,
.card-box:hover { box-shadow: var(--at-shadow-md); border-color: #DFE5EE !important; }

.card_box p { font-size: 13px; color: var(--at-text-mid); }

/* Section heading inside cards */
.global_heading {
  color: var(--at-text) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -0.006em;
  line-height: 1.4;
  margin: 0 0 14px !important;
  /* NOT flex: these headings contain bare text nodes alongside inline <span>s
     (e.g. "This Month's Metrics (<span id=month_year>)"). Flex would promote
     each text node to its own flex item and fragment the title across lines.
     The accent bar is positioned instead. */
  padding: 0 0 12px 11px !important;
  border-bottom: 1px solid var(--at-line-soft) !important;
  position: relative;
}
.global_heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 14px;
  border-radius: 99px;
  background: var(--at-gold-400);
}

.card_box h5 {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--at-text);
  margin: 0 0 4px;
}

/* --------------------------------------------------------------------------
   6. Stat cards  (higher specificity — beats the inline <style> in the view)
   -------------------------------------------------------------------------- */
body .stat-card {
  background-color: var(--at-surface);
  padding: 18px !important;
  border-radius: var(--at-r-md) !important;
  border: 1px solid var(--at-line) !important;
  box-shadow: var(--at-shadow-xs);
  min-height: 112px !important;
  position: relative;
  overflow: hidden;
  transition: transform .18s cubic-bezier(.2, .7, .3, 1), box-shadow .18s ease;
}
body .stat-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--at-gold-400), var(--at-gold-600));
  opacity: 0;
  transition: opacity .18s ease;
}
body .stat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--at-shadow-lg) !important;
}
body .stat-card:hover::after { opacity: 1; }

body .stat-card .card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--at-gold-50);
  color: var(--at-gold-600);
  font-size: 18px;
  margin-right: 13px;
}

/* Number + label typography */
.stats_value1,
.stat-card .stat-value {
  font-size: 27px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--at-text) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-label {
  font-size: 12px;
  font-weight: 550;
  color: var(--at-text-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
}

/* Tonal variants — add one class in the markup to recolour a tile */
.stat-card.is-success .card-icon { background: var(--at-success-bg); color: var(--at-success); }
.stat-card.is-danger  .card-icon { background: var(--at-danger-bg);  color: var(--at-danger); }
.stat-card.is-info    .card-icon { background: var(--at-info-bg);    color: var(--at-info); }
.stat-card.is-teal    .card-icon { background: var(--at-teal-bg);    color: var(--at-teal); }

/* Delta chip */
.stat-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 650;
  padding: 2px 7px; border-radius: 99px;
  font-variant-numeric: tabular-nums;
}
.stat-delta.up   { color: var(--at-success); background: var(--at-success-bg); }
.stat-delta.down { color: var(--at-danger);  background: var(--at-danger-bg); }
.stat-delta.flat { color: var(--at-text-mid); background: var(--at-line-soft); }

/* --------------------------------------------------------------------------
   7. Tables
   -------------------------------------------------------------------------- */
.table { margin-bottom: 0; color: var(--at-text); }

.table > thead > tr > th {
  border-bottom: 1px solid var(--at-line) !important;
  border-top: 0 !important;
  background: transparent;
  color: var(--at-text-soft);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 9px 12px !important;
  white-space: nowrap;
}

.table > tbody > tr > td {
  border-top: 1px solid var(--at-line-soft) !important;
  padding: 11px 12px !important;
  font-size: 13.5px;
  vertical-align: middle;
  color: var(--at-text-mid);
}
.table > tbody > tr:first-child > td { border-top: 0 !important; }

.table-hover > tbody > tr:hover { background-color: #FAFBFD !important; }

.table .metric-value,
.metric-value {
  text-align: right;
  font-weight: 650;
  color: var(--at-text) !important;
  font-variant-numeric: tabular-nums;
}

.commercial-table > tbody > tr > td:first-child {
  color: var(--at-text-mid);
  font-weight: 500;
}

/* DataTables chrome */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--at-line) !important;
  border-radius: var(--at-r-sm) !important;
  padding: 6px 10px !important;
  box-shadow: none !important;
  outline: none;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--at-r-sm) !important;
  border: 1px solid transparent !important;
  padding: 5px 11px !important;
  margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--at-ink-900) !important;
  border-color: var(--at-ink-900) !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--at-line-soft) !important;
  border-color: var(--at-line) !important;
  color: var(--at-text) !important;
}

/* --------------------------------------------------------------------------
   8. Lists
   -------------------------------------------------------------------------- */
.list-group-item {
  border: 0 !important;
  border-bottom: 1px solid var(--at-line-soft) !important;
  padding: 11px 4px !important;
  background: transparent !important;
  font-size: 13.5px;
  transition: background-color .14s ease;
}
.list-group-item:last-child { border-bottom: 0 !important; }
.list-group-item:hover { background-color: #FAFBFD !important; }

.user-list .list-group-item { display: flex; align-items: flex-start; gap: 10px; }

/* Scrollable panels get a soft inner rail */
.card_box ul[style*="overflow"] { scrollbar-width: thin; scrollbar-color: #D4DBE5 transparent; }
.card_box ul[style*="overflow"]::-webkit-scrollbar { width: 5px; }
.card_box ul[style*="overflow"]::-webkit-scrollbar-thumb { background: #D4DBE5; border-radius: 99px; }
.card_box ul[style*="overflow"]::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  border-radius: var(--at-r-sm) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 15px !important;
  border: 1px solid transparent;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--at-ink-900) !important;
  border-color: var(--at-ink-900) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--at-ink-700) !important;
  border-color: var(--at-ink-700) !important;
  color: #fff !important;
}

/* White on gold tops out around 2.6:1. Keeping the brand fill and going dark
   on the text clears AA comfortably instead of muddying the colour. */
.btn-warning,
.btn-warning:focus {
  background-color: var(--at-gold-500) !important;
  border-color: var(--at-gold-500) !important;
  color: #2E1E03 !important;
}
.btn-warning:hover { background-color: var(--at-gold-400) !important; border-color: var(--at-gold-400) !important; color: #2E1E03 !important; }
.btn-warning * { color: inherit !important; }

/* menu.css styles these as pale tinted buttons and sets a matching tinted
   `color: ... !important`. Giving them a solid fill without also setting the
   text colour left e.g. red-on-red — invisible. Every solid variant below
   declares its own foreground. */
.btn-success,
.btn-success:focus { background-color: #0A7A54 !important; border-color: #0A7A54 !important; color: #fff !important; }
.btn-success:hover { background-color: #08603F !important; border-color: #08603F !important; color: #fff !important; }

.btn-danger,
.btn-danger:focus  { background-color: #CC2434 !important; border-color: #CC2434 !important; color: #fff !important; }
.btn-danger:hover  { background-color: #B92430 !important; border-color: #B92430 !important; color: #fff !important; }

.btn-info,
.btn-info:focus    { background-color: #1A5AC4 !important; border-color: #1A5AC4 !important; color: #fff !important; }
.btn-info:hover    { background-color: #14489E !important; border-color: #14489E !important; color: #fff !important; }

.btn-dark,
.btn-dark:focus    { background-color: var(--at-ink-900) !important; border-color: var(--at-ink-900) !important; color: #fff !important; }
.btn-dark:hover    { background-color: var(--at-ink-700) !important; border-color: var(--at-ink-700) !important; color: #fff !important; }

/* Anything inside a solid button inherits the button's colour, so icons and
   nested spans cannot be left behind with a stale tint. */
.btn-primary *, .btn-success *, .btn-danger *, .btn-info *, .btn-warning *, .btn-dark * { color: inherit !important; }

/* Last-resort guard: a solid button must never render its own background
   colour as text. */
.btn-primary, .btn-success, .btn-danger, .btn-info, .btn-warning, .btn-dark { text-shadow: none !important; }

.btn-default {
  background-color: #fff !important;
  border-color: var(--at-line) !important;
  color: var(--at-text-mid) !important;
}
.btn-default:hover { background-color: var(--at-line-soft) !important; color: var(--at-text) !important; }

.btn-xs { padding: 3px 9px !important; font-size: 11.5px !important; }
.btn-sm { padding: 5px 12px !important; font-size: 12.5px !important; }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form-control {
  border: 1px solid var(--at-line) !important;
  border-radius: var(--at-r-sm) !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  height: auto !important;
  padding: 8px 12px !important;
  color: var(--at-text);
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  border-color: var(--at-gold-400) !important;
  box-shadow: 0 0 0 3px rgba(229, 174, 69, .16) !important;
}
.form-control::placeholder { color: var(--at-text-soft); }

label { font-size: 12.5px; font-weight: 600; color: var(--at-text-mid); }

/* --------------------------------------------------------------------------
   11. Badges & labels
   -------------------------------------------------------------------------- */
.badge, .label {
  border-radius: 99px !important;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  padding: 3px 9px !important;
  letter-spacing: .01em;
}
.label-success, .badge-success { background-color: var(--at-success-bg) !important; color: var(--at-success) !important; }
.label-danger,  .badge-danger  { background-color: var(--at-danger-bg)  !important; color: var(--at-danger)  !important; }
.label-warning, .badge-warning { background-color: var(--at-warning-bg) !important; color: var(--at-warning) !important; }
.label-info,    .badge-info    { background-color: var(--at-info-bg)    !important; color: var(--at-info)    !important; }

/* Lead temperature — domain-specific, reads at a glance */
.temp-hot   { background: var(--at-danger-bg);  color: var(--at-danger);  border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 650; }
.temp-warm  { background: var(--at-warning-bg); color: var(--at-warning); border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 650; }
.temp-cold  { background: var(--at-info-bg);    color: var(--at-info);    border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 650; }

/* --------------------------------------------------------------------------
   12. Modals, alerts, misc
   -------------------------------------------------------------------------- */
.modal-content { border: 0; border-radius: var(--at-r-lg); box-shadow: var(--at-shadow-lg); }
.modal-header  { border-bottom: 1px solid var(--at-line); padding: 16px 20px; }
.modal-header .modal-title { font-size: 15px; font-weight: 650; }
.modal-body    { padding: 20px; }
.modal-footer  { border-top: 1px solid var(--at-line); padding: 14px 20px; }

.alert {
  border: 0;
  border-radius: var(--at-r-md);
  border-left: 3px solid transparent;
  font-size: 13.5px;
  padding: 12px 16px;
}
.alert-success { background: var(--at-success-bg); color: #08553A; border-left-color: var(--at-success); }
.alert-danger  { background: var(--at-danger-bg);  color: #8A1620; border-left-color: var(--at-danger); }
.alert-warning { background: var(--at-warning-bg); color: #7A4B06; border-left-color: var(--at-warning); }
.alert-info    { background: var(--at-info-bg);    color: #12447F; border-left-color: var(--at-info); }

.panel {
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-md);
  box-shadow: var(--at-shadow-xs);
}
.panel-heading { background: #fff !important; border-bottom: 1px solid var(--at-line-soft); border-radius: var(--at-r-md) var(--at-r-md) 0 0; }

/* Chart containers keep a consistent height so rows stay aligned */
.chart-shell { min-height: 260px; position: relative; }

/* Empty state */
.at-empty {
  text-align: center;
  padding: 26px 16px;
  color: var(--at-text-soft);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .leftmenu { display: none !important; }
  .wrapper  { margin-left: 0 !important; padding: 0 !important; }
  .card_box, .card-box { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   14. Legacy specificity overrides
   --------------------------------------------------------------------------
   menu.css uses ID selectors (#mobilemenuwrap ...) which outrank the class
   selectors above. These rules exist purely to win that fight — without them
   the sidebar renders white-on-white and the labels disappear.
   -------------------------------------------------------------------------- */

/* menu.css:1118 — `#mobilemenuwrap ul { background-color: white }` */
#mobilemenuwrap ul,
#mobilemenuwrap ul li,
#mobilemenuwrap ul li ul {
  background-color: transparent !important;
}

#mobilemenuwrap { background-color: transparent !important; }

#mobilemenuwrap > ul { padding: 0 10px !important; }

/* menu.css:1143 — `.leftmenu #mobilemenuwrap ul li ul a { color:#000 }` */
.leftmenu #mobilemenuwrap ul li ul a {
  color: rgba(226, 235, 244, .62) !important;
  text-align: left !important;
  font-weight: 450 !important;
  margin: 0 !important;
  padding: 7px 10px 7px 14px !important;
  border-radius: var(--at-r-sm) !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.leftmenu #mobilemenuwrap ul li ul a:hover {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, .06) !important;
}
.leftmenu #mobilemenuwrap ul li ul a.active {
  color: #FFFFFF !important;
  background-color: rgba(229, 174, 69, .13) !important;
}

/* menu.css:1842 — submenu box treatment on small screens */
@media (max-width: 576px) {
  #mobilemenuwrap ul li ul {
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: var(--at-r-sm);
  }
}

/* menu.css:1850 — `.btn-primary { background-color:#188ae24d !important }` is
   already beaten by section 9 (same specificity, declared later). Listed here
   so the next person knows it was deliberate, not luck. */

/* --------------------------------------------------------------------------
   15. Equal-height rows  (OPT-IN — requires adding a class in the view)
   --------------------------------------------------------------------------
   Bootstrap 3 rows are float-based, so a short card beside a tall one leaves a
   visible void. Add `at-equal` to a row to make its cards stretch:

       <div class="row at-equal"> ... </div>

   Deliberately opt-in: switching every .row to flex globally would risk
   breaking float/offset behaviour on the app's other views.
   -------------------------------------------------------------------------- */
/* Same Bootstrap clearfix caveat as the pipeline grid: ::before/::after would
   become flex items and add phantom columns. */
.row.at-equal::before,
.row.at-equal::after { content: none !important; display: none !important; }
.row.at-equal { display: flex; flex-wrap: wrap; }
.row.at-equal > [class*="col-"] { display: flex; flex-direction: column; float: none; }
.row.at-equal > [class*="col-"] > .card_box,
.row.at-equal > [class*="col-"] > .card-box { flex: 1 1 auto; display: flex; flex-direction: column; }
.row.at-equal .chart-shell { flex: 1 1 auto; display: flex; align-items: center; }
.row.at-equal .chart-shell > svg { width: 100%; height: auto; }

@media (max-width: 767px) {
  .row.at-equal { display: block; }
  .row.at-equal > [class*="col-"] { display: block; }
}

/* --------------------------------------------------------------------------
   16. Sidebar collapse toggle (.colexpicon)
   --------------------------------------------------------------------------
   menu.css hides this with `.leftmenu a.colexpicon { display:none }` (no
   !important). Section 4's `.leftmenu a { display:flex !important }` outranked
   it — !important beats specificity — which made the hamburger appear on
   desktop, where it was never meant to be. Restore the intent explicitly.
   -------------------------------------------------------------------------- */
.leftmenu a.colexpicon,
.leftmenu a.icon.colexpicon { display: none !important; }

@media (max-width: 767px) {
  .leftmenu a.colexpicon,
  .leftmenu a.icon.colexpicon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, .06) !important;
    color: #FFFFFF !important;
    margin: 6px 10px !important;
    border-radius: var(--at-r-sm) !important;
  }
  .leftmenu a.colexpicon i { margin: 0; font-size: 18px !important; }
}

/* ==========================================================================
   17. Global chrome — topbar, brand chip, search
   --------------------------------------------------------------------------
   nav-menu.php carries its own inline <style> that loads after this file, so
   these rules use !important to win rather than relying on source order.
   ========================================================================== */
#topnav .topbar-main,
.topbar-main {
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--at-line) !important;
  box-shadow: 0 1px 2px rgba(11, 24, 38, .04);
}
#topnav .topbar-main .container-fluid { padding-left: 18px; padding-right: 18px; }
#topnav .menu-extras.row { display: flex; align-items: center; min-height: 56px; margin: 0; }
#topnav .menu-extras.row::before,
#topnav .menu-extras.row::after { content: none !important; display: none !important; }
/* The bar is a flex row now, so Bootstrap's percentage column widths (which
   are computed against the full viewport, not the sidebar-offset area) make it
   wrap onto two lines. Let the three zones size to their content instead. */
#topnav .menu-extras.row > [class*="col-"] {
  width: auto !important; float: none !important;
  padding-left: 6px; padding-right: 6px; min-width: 0;
}
#topnav .menu-extras.row > .col-sm-4 { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
#topnav .menu-extras.row > .col-sm-5 { flex: 1 1 auto; min-width: 0; }
#topnav .menu-extras.row > .col-sm-3 { flex: 0 0 auto; margin-left: auto; }
#topnav .menu-extras.row > .col-sm-5 form { margin: 0; }
#topnav .user-box .profile,
#topnav .menu-extras .list-inline > li { white-space: nowrap; }

/* Version chip */
.at-brandchip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 10px 0 9px;
  border-radius: 99px;
  background: linear-gradient(140deg, #0B1C2E, #14324C);
  color: #EAF1F8;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  white-space: nowrap; vertical-align: middle;
  box-shadow: 0 5px 14px -7px rgba(11, 28, 46, .9);
}
.at-brandchip .ai { width: 13px; height: 13px; color: var(--at-gold-400); }
.at-brandchip b {
  font-weight: 800; font-size: 10.5px; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 99px;
  background: linear-gradient(140deg, var(--at-gold-300, #F2C879), var(--at-gold-500));
  color: #3B2705;
}
@media (max-width: 767px) { .at-brandchip { display: none; } }

.quotecss { padding-top: 0 !important; vertical-align: middle; }
.quotecss a { font-size: 12px; }

/* Search */
#topnav .search-area { align-items: center; }
#topnav #search-input {
  height: 36px !important; margin-top: 0 !important;
  padding: 0 14px 0 34px !important;
  border-radius: 10px !important;
  border: 1px solid var(--at-line) !important;
  background: #F6F8FB
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='1.9' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20.5 20.5-4.4-4.4'/></svg>")
    no-repeat 10px center / 15px 15px !important;
  font-size: 12.5px !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#topnav #search-input:focus {
  background-color: #fff !important;
  border-color: var(--at-gold-400) !important;
  box-shadow: 0 0 0 3px rgba(229, 174, 69, .16) !important;
  outline: none;
}
#topnav #search-category {
  height: 36px !important; margin-top: 0 !important;
  border-radius: 10px !important; border: 1px solid var(--at-line) !important;
  font-size: 12.5px !important; background: #F6F8FB !important;
}
#results {
  border-radius: 12px !important; border: 1px solid var(--at-line) !important;
  box-shadow: var(--at-shadow-lg); margin-top: 6px !important; overflow: hidden;
}
.result-item { border: 0 !important; border-bottom: 1px solid var(--at-line-soft) !important; padding: 9px 12px !important; }
.result-item:last-child { border-bottom: 0 !important; }
.result-item:hover { background: #F7F9FC !important; }

/* User box */
#topnav .user-box .profile { line-height: 56px !important; margin-top: 0 !important; }
#topnav .nav.navbar-nav.navbar-right { margin: 0; display: flex; align-items: center; }
#topnav .list-inline { display: flex; align-items: center; gap: 4px; margin: 0; }
#topnav .dropdown-menu {
  border: 1px solid var(--at-line); border-radius: 12px;
  box-shadow: var(--at-shadow-lg); padding: 6px; margin-top: 8px;
}
#topnav .dropdown-menu > li > a { border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
#topnav .dropdown-menu > li > a:hover { background: var(--at-line-soft); }

/* --------------------------------------------------------------------------
   18. Topbar must clear the fixed sidebar
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  /* The legacy rule pins this bar with `position:fixed; left:200px` — the old
     sidebar width. The sidebar is now var(--at-sidebar-w), so re-pin it there
     and let it run to the right edge. Adding padding instead would stack on
     top of the 200px and push the user menu off-screen. */
  #topnav .topbar-main,
  .topbar-main {
    box-sizing: border-box;
    left: var(--at-sidebar-w) !important;
    right: 0 !important;
    width: auto !important;
    padding-left: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   19. Module-launcher pages (Dashboard/user_report and friends)
   --------------------------------------------------------------------------
   These views hardcode #4a016a with !important; re-point them at the palette.
   -------------------------------------------------------------------------- */
.dashboard-header { text-align: left !important; margin-bottom: 4px !important; }
.dashboard-header *, .welcome-title, .welcome-subtitle { text-align: left !important; }
.dashboard-header .welcome-title,
.welcome-title {
  font-size: 19px !important; font-weight: 700 !important;
  letter-spacing: -.022em; color: var(--at-text) !important; margin: 0 0 2px !important;
}
.welcome-subtitle { font-size: 12.5px !important; color: var(--at-text-soft) !important; }
.dashboard-header hr {
  border: 0 !important; height: 1px !important; margin: 12px 0 16px !important;
  background: linear-gradient(90deg, var(--at-line), transparent) !important;
}

/* card grid — Bootstrap floats leave ragged rows; grid keeps them even */
.dashboard-header + .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 12px; margin: 0; }
.dashboard-header + .row::before,
.dashboard-header + .row::after { content: none !important; display: none !important; }
.dashboard-header + .row > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; display: flex; }
/* the anchor is the flex item; it must fill the cell or cards end up ragged */
.dashboard-header + .row > [class*="col-"] > a { display: flex; width: 100%; text-decoration: none; }

.dashboard-card {
  background: linear-gradient(180deg, #FFFFFF, #FBFCFE) !important;
  border: 1px solid var(--at-line) !important;
  border-radius: var(--at-r-md) !important;
  box-shadow: var(--at-shadow-xs) !important;
  color: var(--at-text) !important;
  padding: 18px 14px 16px !important;
  width: 100%;
  display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, border-color .18s ease;
}
.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--at-shadow-lg) !important;
  border-color: #D9E1EC !important;
}
/* icon becomes a chip rather than a bare glyph */
.dashboard-card i {
  font-size: 18px !important;
  color: var(--at-gold-600) !important;
  width: 42px; height: 42px; border-radius: 12px;
  display: flex !important; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #FDF4E3, #F7E7C6);
  box-shadow: inset 0 0 0 1px rgba(212, 149, 42, .16);
  margin: 0 0 12px !important;
}
.dashboard-card hr {
  border: 0 !important; height: 1px !important;
  background: var(--at-line-soft) !important;
  width: 34px; margin: 0 auto 10px !important;
}
.dashboard-card p {
  font-size: 13px !important; font-weight: 650 !important;
  color: var(--at-text) !important; margin: 0 !important; line-height: 1.35;
}
.dashboard-card a, a .dashboard-card { color: inherit !important; text-decoration: none !important; }

/* --------------------------------------------------------------------------
   20. Empty tables
   --------------------------------------------------------------------------
   Two distinct cases:
   a) DataTables initialised -> it injects <td class="dataTables_empty">.
   b) DataTables did not run  -> a plain table with an empty <tbody>.
   Both need to read as a deliberate empty state, not a blank strip.
   -------------------------------------------------------------------------- */
td.dataTables_empty,
td.at-empty-cell,
.dataTables_empty {
  text-align: center !important;
  padding: 34px 16px !important;
  color: var(--at-text-soft) !important;
  font-size: 13px !important;
  font-weight: 600;
  background: linear-gradient(180deg, #FCFDFE, #FFFFFF) !important;
}
td.dataTables_empty::before,
td.at-empty-cell::before,
.dataTables_empty::before {
  content: "";
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  /* the url() layer must come FIRST: in a multi-layer background the first
     layer paints on top, so a gradient listed first would hide the icon. */
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B6C6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='4.5' width='17' height='15' rx='2.5'/><path d='M3.5 9.5h17M9 4.5v15'/></svg>")
      no-repeat center / 20px 20px,
    linear-gradient(150deg, #F4F7FB, #E9EFF6);
  box-shadow: inset 0 0 0 1px rgba(11, 24, 38, .05);
}

/* Fallback for a table DataTables never touched */
table:has(> tbody:empty) { position: relative; }
/* A real <td> is injected by the helper in common/nav-menu.php for tables
   DataTables never touched; it shares the styling above. */

/* --------------------------------------------------------------------------
   21. Topbar user: avatar, name, dropdown
   -------------------------------------------------------------------------- */
#topnav .nav.navbar-nav.navbar-right { display: flex; align-items: center; gap: 10px; }
#topnav .nav.navbar-nav.navbar-right > li { float: none; display: flex; align-items: center; }

/* Reading order: avatar, name, then the clock + caret group */
#topnav .nav.navbar-nav.navbar-right > li:nth-child(1) { order: 3; }
#topnav .nav.navbar-nav.navbar-right > li.usernamecss  { order: 2; }
#topnav .nav.navbar-nav.navbar-right > li:nth-child(3) { order: 1; }

#topnav .usernamecss { font-size: 13px; font-weight: 650; color: var(--at-text); white-space: nowrap; }
#topnav .usernamecss span { line-height: 1.2; }

/* Avatar */
#topnav .user-box > a.profile,
#topnav a.profile { padding: 0 !important; display: flex !important; align-items: center; line-height: 1 !important; }
.at-avatarwrap {
  position: relative; display: inline-flex;
  width: 34px; height: 34px; flex: 0 0 34px;
}
.at-userimg,
.at-userinitials {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--at-line), 0 4px 10px -4px rgba(11, 24, 38, .5);
}
.at-userimg { object-fit: cover; background: var(--at-line-soft); }
.at-userinitials {
  background: linear-gradient(145deg, var(--at-ink-700, #22527A), var(--at-ink-900));
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; user-select: none;
}
/* presence dot */
.at-avatarwrap .user-status {
  position: absolute; right: -1px; bottom: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--at-success); box-shadow: 0 0 0 2px #fff;
}
.at-avatarwrap .user-status.away { background: var(--at-gold-500); }
.at-avatarwrap .user-status i { display: none; }

/* Clock + caret group */
#topnav .user-box .list-inline { display: flex; align-items: center; gap: 6px; margin: 0; }
#topnav .user-box .list-inline > li { padding: 0; }
#topnav .user-box .fa-clock-o { margin: 0 !important; font-size: 14px !important; }
#topnav a.dropdown-toggle svg { width: 15px !important; height: 15px; fill: var(--at-text-mid); }
#topnav a.dropdown-toggle { line-height: 1 !important; margin-top: 0 !important; }

/* Dropdown */
#topnav .dropdown-menu {
  min-width: 232px; right: 0; left: auto;
  border: 1px solid var(--at-line); border-radius: 12px;
  box-shadow: var(--at-shadow-lg); padding: 6px; margin-top: 10px;
  background: #fff;
}
#topnav .dropdown-menu > li > a {
  display: flex; align-items: center; gap: 9px;
  border-radius: 8px; padding: 9px 10px;
  font-size: 12.5px; font-weight: 550; color: var(--at-text-mid);
}
#topnav .dropdown-menu > li > a:hover { background: var(--at-line-soft); color: var(--at-text); }
#topnav .dropdown-menu > li > a i { width: 15px; text-align: center; color: var(--at-text-soft); margin: 0 !important; }
#topnav .dropdown-menu > li > a[href*="signout"] { color: var(--at-danger); }
#topnav .dropdown-menu > li > a[href*="signout"]:hover { background: var(--at-danger-bg); color: var(--at-danger); }
#topnav .dropdown-menu > li > a[href*="signout"] i { color: var(--at-danger); }

/* --------------------------------------------------------------------------
   22. Topbar: compact search + aligned clock
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* the search used to stretch across the whole bar; cap it */
  #topnav .menu-extras.row > .col-sm-5 { flex: 0 1 340px; max-width: 340px; }
}
#topnav #search-input { max-width: 100%; }

/* Clock — now sits beside the version chip. The markup carries inline
   `margin-top:4px/6px` on the icon and the <p>, which is what knocked it out of
   vertical alignment; override both and let flex centring do the work. */
#topnav .user-box .list-inline > li { margin-left: 0 !important; padding: 0; }
.at-clock { display: inline-flex; align-items: center; vertical-align: middle; }
.at-clock > div {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 99px;
  background: var(--at-line-soft);
  border: 1px solid var(--at-line);
}
#topnav .fa-clock-o {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--at-gold-600) !important;
  line-height: 1;
}
#topnav #demo {
  margin: 0 !important;
  font-size: 12px;
  font-weight: 650;
  color: var(--at-text) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 991px) {
  .at-clock { display: none !important; }
}

/* --------------------------------------------------------------------------
   23. Topbar search: inline controls + anchored results panel
   --------------------------------------------------------------------------
   The results live in `<span id="res">`, a sibling of .search-area inside the
   form. Left inline it pushed the whole search block out of the bar. Anchor the
   form and float the panel beneath it instead.
   -------------------------------------------------------------------------- */
#topnav .menu-extras form { position: relative; margin: 0; }

#topnav .search-area {
  display: flex !important;
  align-items: center;
  gap: 6px;
  height: 36px;
}
#topnav #search-category {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 104px;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  border: 1px solid var(--at-line) !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--at-text) !important;
}
#topnav #search-input { flex: 1 1 auto; min-width: 0; height: 32px !important; }

/* Results panel */
#topnav #res {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  display: block;
}
#topnav #res:empty { display: none; }
#topnav #res .lead-results {
  background: #fff;
  border: 1px solid var(--at-line);
  border-radius: 12px;
  box-shadow: var(--at-shadow-lg);
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}
.results-title-wrapper {
  padding: 9px 13px;
  border-bottom: 1px solid var(--at-line-soft);
  background: linear-gradient(180deg, #FCFDFE, #FFFFFF);
  position: sticky; top: 0; z-index: 1;
}
.results-title {
  margin: 0 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--at-text-soft) !important;
  text-align: left !important;
}
.results-list { list-style: none; margin: 0 !important; padding: 5px !important; }
.results-list > li { border: 0; padding: 0; }
.results-link {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 9px; border-radius: 8px;
  text-decoration: none; color: var(--at-text);
  font-size: 12.5px;
}
.results-link:hover { background: var(--at-line-soft); color: var(--at-text); }
.results-name { font-weight: 600; }
.results-meta { font-size: 11px; color: var(--at-text-soft); }
.results-list > li.results-none,
.results-list > li:only-child:not(:has(a)) {
  padding: 18px 12px;
  text-align: center;
  color: var(--at-text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

/* nav-menu.php's inline <style> loads after this file, so these need !important:
   it draws decorative rules either side of the title, and the list keeps its
   markers and default link colour. */
.results-title-wrapper { display: block !important; margin-bottom: 0 !important; }
.results-title-wrapper::before,
.results-title-wrapper::after { content: none !important; display: none !important; }

.results-list,
.results-list > li {
  list-style: none !important;
  list-style-type: none !important;
}
.results-list > li::marker { content: none !important; }
.results-list > li::before { content: none !important; display: none !important; }

.results-link,
.results-link:hover,
.results-link:focus { color: var(--at-text) !important; text-decoration: none !important; }
.results-link .results-meta { color: var(--at-text-soft) !important; }

/* ==========================================================================
   24. Lead detail page (leads/view_detail)
   ========================================================================== */

/* --- Page header: name + reference --------------------------------------- */
.wrapper .page-header {
  border: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--at-line) !important;
}
.wrapper .page-header h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -.028em;
  color: var(--at-text) !important;
  margin: 0 !important;
  line-height: 1.2;
}
.wrapper .page-header .unique-id {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--at-gold-50);
  color: var(--at-gold-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* --- Card + section headings --------------------------------------------- */
.wrapper .card-box {
  border-radius: var(--at-r-md) !important;
  border: 1px solid var(--at-line) !important;
  box-shadow: var(--at-shadow-sm);
  padding: 16px 18px 18px !important;
}
.wrapper .header-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--at-text-soft) !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--at-line-soft);
}

/* --- Current stage panel -------------------------------------------------- */
.wrapper .card-box > .p-20.text-center {
  background:
    radial-gradient(420px 150px at 50% -40%, rgba(229,174,69,.20), transparent 62%),
    linear-gradient(160deg, var(--at-ink-900), var(--at-ink-700, #22527A)) !important;
  border-radius: var(--at-r-md) !important;
  padding: 22px 16px 20px !important;
  color: #EAF1F8;
  position: relative;
  overflow: hidden;
}
.wrapper .card-box > .p-20.text-center::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--at-gold-400), transparent);
}
.wrapper .card-box > .p-20.text-center > i.fa {
  font-size: 24px !important;
  width: 52px; height: 52px; line-height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  color: var(--at-gold-300) !important;
  margin-bottom: 12px;
}
.wrapper .card-box > .p-20.text-center h3 {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em;
  color: #fff !important;
  margin: 0 0 8px !important;
}
.wrapper .card-box > .p-20.text-center p.text-muted {
  display: inline-block;
  font-size: 11.5px !important;
  color: rgba(214,228,241,.8) !important;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  padding: 4px 11px;
  margin: 0 !important;
}

/* --- Info list ------------------------------------------------------------ */
.info-list { display: block; }
/* the view sets `.info-list .info-item { margin-bottom:18px }`, which outranks
   a bare .info-item selector — match its specificity to close the gap */
.info-list .info-item,
.info-item {
  display: grid;
  grid-template-columns: 30px 170px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 0 !important;
  padding: 9px 4px;
  border-bottom: 1px solid var(--at-line-soft);
  border-radius: 8px;
}
.info-list .info-item:last-child,
.info-item:last-child { border-bottom: 0; }
.info-list .info-item:hover { background: linear-gradient(90deg, #F7F9FC, transparent); }
.info-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--at-line-soft);
  box-shadow: inset 0 0 0 1px rgba(11,24,38,.05);
}
.info-icon i {
  font-size: 13px !important;
  color: var(--at-gold-600) !important;
}
.info-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--at-text-soft);
}
.info-value {
  font-size: 13.5px; font-weight: 600; color: var(--at-text);
  word-break: break-word;
}
@media (max-width: 767px) {
  .info-item { grid-template-columns: 30px 1fr; }
  .info-label { grid-column: 2; }
  .info-value { grid-column: 2; }
}

/* --- Tabs ----------------------------------------------------------------- */
.wrapper .nav-tabs {
  border-bottom: 1px solid var(--at-line) !important;
  display: flex; gap: 2px; flex-wrap: wrap;
  padding: 0 4px;
}
.wrapper .nav-tabs > li { float: none; margin: 0; }
.wrapper .nav-tabs > li > a {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--at-text-soft) !important;
  position: relative;
  display: flex; align-items: center; gap: 7px;
}
.wrapper .nav-tabs > li > a:hover { color: var(--at-text) !important; background: transparent !important; }
.wrapper .nav-tabs > li > a i { color: inherit !important; font-size: 13px !important; }
.wrapper .nav-tabs > li.active > a,
.wrapper .nav-tabs > li.active > a:hover,
.wrapper .nav-tabs > li.active > a:focus {
  border: 0 !important;
  background: transparent !important;
  color: var(--at-text) !important;
  font-weight: 700 !important;
}
.wrapper .nav-tabs > li.active > a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--at-gold-400), var(--at-gold-600));
}
.wrapper .tab-content { padding-top: 16px; }

/* --------------------------------------------------------------------------
   25. Stacking order: topbar dropdowns must sit above the notification rail
   --------------------------------------------------------------------------
   #topnav is a fixed stacking context (z-index:1030 in menu.css) and the rail
   is fixed at 940, so ordering should have been correct. In practice the
   backdrop-filter on .topbar-main promoted it to its own composited layer and
   the dropdown was painting under the rail. Make the order explicit and drop
   the filter from the bar, which was decorative.
   -------------------------------------------------------------------------- */
#topnav { z-index: 1200 !important; }
#topnav .topbar-main,
.topbar-main {
  z-index: 1200 !important;
  /* was: backdrop-filter: saturate(180%) blur(14px) — removed, see above */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, .97) !important;
}
#topnav .dropdown-menu { z-index: 1250 !important; }
#topnav #res { z-index: 1250 !important; }

/* Rail sits below the topbar and its menus */
.at-rail { z-index: 900 !important; }

/* Modals still need to clear everything */
.modal { z-index: 1400 !important; }
.modal-backdrop { z-index: 1390 !important; }

/* ==========================================================================
   26. Page headers, buttons and notes (chat panel, widget setup)
   ========================================================================== */

/* --- Page header ---------------------------------------------------------- */
.at-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--at-line);
}
.at-page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--at-text);
}
.at-page-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--at-text-soft);
}
.at-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Buttons -------------------------------------------------------------- */
/* menu.css tints button text by class, so colour is always set explicitly
   here — a fill without one is how the buttons went red-on-red before. */
.at-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--at-line);
  border-radius: 9px;
  background: #fff;
  color: var(--at-text) !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.at-btn:hover {
  background: #F7F9FC;
  border-color: var(--at-gold-300);
  color: var(--at-text) !important;
}
.at-btn:active { transform: translateY(1px); }
.at-btn svg { flex: 0 0 auto; }

.at-btn-primary {
  border-color: transparent;
  background: linear-gradient(140deg, var(--at-ink-700), var(--at-ink-900));
  color: #fff !important;
}
.at-btn-primary:hover {
  background: linear-gradient(140deg, var(--at-ink-600), var(--at-ink-800));
  border-color: transparent;
  color: #fff !important;
}

/* --- Inline notes --------------------------------------------------------- */
.at-note {
  padding: 12px 14px;
  border: 1px solid var(--at-line);
  border-left: 4px solid var(--at-gold-500);
  border-radius: 11px;
  background: var(--at-surface);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--at-text-mid);
}
.at-note b { color: var(--at-text); }
.at-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--at-gold-50);
  color: var(--at-gold-600);
  font-size: 11.5px;
}
.at-note-ok   { border-left-color: var(--at-success); background: var(--at-success-bg); }
.at-note-warn { border-left-color: var(--at-danger);  background: var(--at-danger-bg); }

/* ==========================================================================
   27. New-lead alert (the popup Master/User_management/checkleadseen fires)
   ==========================================================================
   This markup is injected by nav-menu.php and had no styling at all, so the
   "fullscreen popup" was an ordinary div in the flow and its heading was
   white on white — the alert could not be read. */

#fullscreen-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;                 /* above the topbar (1200) and modals (1400) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 26, .72);
  backdrop-filter: blur(2px);
  animation: atLeadIn .22s cubic-bezier(.2, .7, .3, 1);
}

#fullscreen-popup .popup-content {
  max-width: 460px;
  width: 100%;
  padding: 30px 28px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(8, 16, 26, .6);
  text-align: center;
  border-top: 5px solid var(--at-danger);
}

/* The injected markup sets color:white inline, so this has to outrank it. */
#fullscreen-popup .popup-content h2 {
  margin: 0 0 20px;
  font-size: 19px !important;
  line-height: 1.45;
  color: var(--at-text) !important;
  font-weight: 700 !important;
}

#fullscreen-popup .popup-content button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px !important;
  font-weight: 650;
  background: linear-gradient(140deg, var(--at-ink-700), var(--at-ink-900)) !important;
  color: #fff !important;
}
#fullscreen-popup .popup-content button:hover { filter: brightness(1.15); }

/* A ringing bell above the message, so the reason is obvious at a glance. */
#fullscreen-popup .popup-content::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--at-danger-bg) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E02D3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
  animation: atLeadRing 1s ease-in-out 3;
}

@keyframes atLeadIn   { from { opacity: 0 } to { opacity: 1 } }
@keyframes atLeadRing {
  0%, 100% { transform: rotate(0) }
  20%      { transform: rotate(-12deg) }
  40%      { transform: rotate(10deg) }
  60%      { transform: rotate(-6deg) }
  80%      { transform: rotate(4deg) }
}

@media (prefers-reduced-motion: reduce) {
  #fullscreen-popup, #fullscreen-popup .popup-content::before { animation: none }
}

/* --- New-lead alert card (self-contained: fixed colours, so no theme can turn it dark) ---- */
#fullscreen-popup { background: rgba(7, 14, 24, .78) !important; backdrop-filter: blur(4px); }
#fullscreen-popup .at-lp, #fullscreen-popup .at-lp * { box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: normal; text-transform: none; }
#fullscreen-popup .at-lp { width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; background: #ffffff !important; color: #101828 !important; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .65); animation: atLpIn .28s cubic-bezier(.2, .7, .3, 1); }
@keyframes atLpIn { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }

#fullscreen-popup .at-lp-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: linear-gradient(135deg, #0b1c2e 0%, #1b3a55 100%) !important; color: #fff !important; flex-wrap: wrap; overflow: hidden; }
#fullscreen-popup .at-lp-head::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 174, 69, .38), transparent 70%); pointer-events: none; }
#fullscreen-popup .at-lp-bell { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e5ae45 !important; color: #0b1c2e !important; box-shadow: 0 0 0 7px rgba(229, 174, 69, .25); animation: atLpRing 1.1s ease-in-out 4; position: relative; z-index: 1; }
#fullscreen-popup .at-lp-ht { flex: 1 1 260px; position: relative; z-index: 1; min-width: 0; }
#fullscreen-popup .at-lp-title { font-size: 21px; font-weight: 700; line-height: 1.25; color: #ffffff !important; }
#fullscreen-popup .at-lp-sub { margin-top: 3px; font-size: 13.5px; color: rgba(255, 255, 255, .78) !important; }
#fullscreen-popup .at-lp-oldest { position: relative; z-index: 1; font-size: 12px; font-weight: 700; color: #ffd9de !important; background: rgba(224, 45, 60, .35) !important; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
@keyframes atLpRing { 0%, 100% { transform: rotate(0) } 20% { transform: rotate(-14deg) } 40% { transform: rotate(12deg) } 60% { transform: rotate(-8deg) } 80% { transform: rotate(5deg) } }

#fullscreen-popup .at-lp-list { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; background: #f4f6fa !important; display: flex; flex-direction: column; gap: 10px; }
#fullscreen-popup .at-lp-item { display: flex; gap: 14px; background: #ffffff !important; border: 1px solid #e4e8ef; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
#fullscreen-popup .at-lp-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-weight: 700; font-size: 15px; }
#fullscreen-popup .at-lp-main { flex: 1 1 auto; min-width: 0; }
#fullscreen-popup .at-lp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#fullscreen-popup .at-lp-name { font-size: 16px; font-weight: 700; color: #101828 !important; }
#fullscreen-popup .at-lp-uid { font-size: 11.5px; font-weight: 600; color: #667085 !important; background: #f2f4f7 !important; border-radius: 6px; padding: 1px 7px; }
#fullscreen-popup .at-lp-wait { margin-left: auto; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: #475467 !important; background: #f2f4f7 !important; border-radius: 999px; padding: 3px 10px; }
#fullscreen-popup .at-lp-wait.late { color: #b42318 !important; background: #fdecee !important; }
#fullscreen-popup .at-lp-ic { display: inline-flex; align-items: center; gap: 0; }
#fullscreen-popup .at-lp-ic svg { flex: 0 0 auto; margin-right: 5px; }
#fullscreen-popup .at-lp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#fullscreen-popup .at-lp-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: #344054 !important; background: #f2f4f7 !important; border-radius: 7px; padding: 3px 9px; }
#fullscreen-popup .at-lp-tag.camp { color: #1d4ed8 !important; background: #e8f0fe !important; }
#fullscreen-popup .at-lp-info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: #475467 !important; }
#fullscreen-popup .at-lp-phone { font-weight: 700; color: #101828 !important; font-variant-numeric: tabular-nums; }
#fullscreen-popup .at-lp-assignee { display: inline-flex; align-items: center; }
#fullscreen-popup .at-lp-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#fullscreen-popup .at-lp-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 650; text-decoration: none !important; border: 0; cursor: pointer; transition: transform .12s, filter .12s; }
#fullscreen-popup .at-lp-btn svg { margin-right: 6px; }
#fullscreen-popup .at-lp-btn.call { background: #0e9f6e !important; color: #fff !important; }
#fullscreen-popup .at-lp-btn.wa { background: #25d366 !important; color: #fff !important; }
#fullscreen-popup .at-lp-btn.open { background: #fff !important; color: #0b1c2e !important; box-shadow: inset 0 0 0 1.5px #0b1c2e; }
#fullscreen-popup .at-lp-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }

#fullscreen-popup .at-lp-foot { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 14px 22px; background: #fff !important; border-top: 1px solid #e4e8ef; }
#fullscreen-popup .at-lp-hint { font-size: 12.5px; color: #667085 !important; flex: 1 1 220px; }
#fullscreen-popup .at-lp-ok { height: 44px; padding: 0 24px; border: 0; border-radius: 11px; cursor: pointer; font-size: 14px; font-weight: 700; background: linear-gradient(140deg, #1b3a55, #0b1c2e) !important; color: #fff !important; }
#fullscreen-popup .at-lp-ok:hover { filter: brightness(1.2); }

@media (max-width: 560px) {
  #fullscreen-popup { padding: 10px !important; align-items: flex-end !important; }
  #fullscreen-popup .at-lp { max-height: 94vh; border-radius: 18px; }
  #fullscreen-popup .at-lp-head { padding: 16px; } #fullscreen-popup .at-lp-title { font-size: 18px; }
  #fullscreen-popup .at-lp-item { padding: 12px; gap: 10px; } #fullscreen-popup .at-lp-av { display: none; }
  #fullscreen-popup .at-lp-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { #fullscreen-popup .at-lp, #fullscreen-popup .at-lp-bell { animation: none !important; } }

/* ==========================================================================
   28. Navigation — collapsible sidebar, topbar actions, sidebar footer
   ==========================================================================
   Everything that depends on the sidebar width (content margin, topbar offset)
   already reads var(--at-sidebar-w), so collapsing is a matter of changing it. */
html.at-nav-collapsed { --at-sidebar-w: 76px; }

.leftmenu { transition: width .22s ease; display: flex; flex-direction: column; }
.leftmenu #mobilemenuwrap { flex: 1 0 auto; }
#topnav .topbar-main, .topbar-main { transition: left .22s ease; }

/* Section label */
.leftmenu .at-nav-label { margin: 6px 0 4px !important; padding: 0 12px; }
.leftmenu .at-nav-label span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(226, 235, 244, .38); }

/* Sidebar footer: who is signed in, and the collapse control */
.at-nav-foot { position: sticky; bottom: 0; margin-top: 14px; padding: 12px 10px 10px; background: linear-gradient(180deg, rgba(11, 28, 46, 0), var(--at-ink-900) 28%); }
.at-nav-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.at-nav-av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #0b1c2e; background: linear-gradient(140deg, #f2c35c, #d4952a); }
.at-nav-ut { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.at-nav-ut b { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-nav-ut em { font-style: normal; font-size: 11.5px; color: rgba(226, 235, 244, .55); }
.leftmenu .at-nav-out { flex: 0 0 auto; display: inline-flex !important; width: 30px; height: 30px; padding: 0 !important; align-items: center; justify-content: center; border-radius: 8px !important; color: rgba(226, 235, 244, .6) !important; }
.leftmenu .at-nav-out:hover { background: rgba(224, 45, 60, .18) !important; color: #ff8a93 !important; }
.at-nav-collapse { margin-top: 8px; width: 100%; height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: transparent; color: rgba(226, 235, 244, .65); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background-color .15s, color .15s; }
.at-nav-collapse:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.at-nav-collapse svg { transition: transform .22s ease; }

/* Topbar controls */
.at-navtoggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 10px; vertical-align: middle; border: 1px solid var(--at-line); border-radius: 10px; background: #fff; color: var(--at-text-mid); cursor: pointer; transition: background-color .15s, color .15s; }
.at-navtoggle:hover { background: var(--at-line-soft); color: var(--at-text); }
#topnav .at-brandchip, #topnav .at-clock { vertical-align: middle; }
#topnav .navbar-nav > li.at-tb-actions { display: flex; align-items: center; gap: 10px; height: 56px; margin: 0 10px 0 0; float: none; order: -5 !important; }
#topnav .navbar-nav > li.at-tb-actions > a { float: none; }
#topnav .navbar-nav > li.at-tb-actions > a.at-bell { position: relative; display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0 !important; margin: 0 !important; border: 1px solid var(--at-line) !important; border-radius: 10px; background: #fff !important; color: var(--at-text-mid) !important; line-height: 1 !important; }
#topnav .navbar-nav > li.at-tb-actions > a.at-bell:hover { background: var(--at-line-soft) !important; color: var(--at-text) !important; }
#topnav .navbar-nav > li.at-tb-actions > a.at-bell svg { color: inherit; }
.at-bell-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--at-danger, #e02d3c); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.at-bell-badge[hidden] { display: none; }
#topnav .navbar-nav > li.at-tb-actions > a.at-newlead { display: inline-flex !important; align-items: center; gap: 6px; height: 36px; padding: 0 14px !important; margin: 0 !important; border-radius: 10px; background: linear-gradient(140deg, #f2c35c, #d4952a) !important; color: #0b1c2e !important; font-size: 13px; font-weight: 700; line-height: 1 !important; box-shadow: 0 2px 6px rgba(212, 149, 42, .35); transition: filter .15s, transform .15s; }
#topnav .navbar-nav > li.at-tb-actions > a.at-newlead:hover { filter: brightness(1.06); transform: translateY(-1px); }
#topnav .navbar-nav > li.at-tb-actions > a.at-newlead span { color: #0b1c2e !important; }

/* Collapsed rail (desktop only) */
@media (min-width: 768px) {
  html.at-nav-collapsed .leftmenu .logo { padding: 16px 0 14px !important; text-align: center; }
  html.at-nav-collapsed .leftmenu .logo img { display: none; }
  html.at-nav-collapsed .leftmenu .logo a { display: flex !important; justify-content: center; padding: 0 !important; background: none !important; }
  html.at-nav-collapsed .leftmenu .logo a::before { content: "A"; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 21px; color: #0b1c2e; background: linear-gradient(140deg, #f2c35c, #d4952a); }
  html.at-nav-collapsed .leftmenu #mobilemenuwrap > ul { padding: 0 12px; }
  html.at-nav-collapsed .leftmenu .at-nav-label { height: 1px; margin: 8px 8px 12px !important; padding: 0; background: rgba(255, 255, 255, .1); }
  html.at-nav-collapsed .leftmenu .at-nav-label span { display: none; }
  html.at-nav-collapsed .leftmenu #mobilemenuwrap > ul > li > a { justify-content: center; gap: 0; padding: 12px 0 !important; }
  html.at-nav-collapsed .leftmenu #mobilemenuwrap > ul > li > a > div:nth-child(2) { position: absolute; inset: 0; font-size: 0 !important; line-height: 0; overflow: visible; pointer-events: none; }
  html.at-nav-collapsed .leftmenu #mobilemenuwrap > ul > li > a > div:first-child { flex: 0 0 auto; }
  html.at-nav-collapsed .leftmenu #mobilemenuwrap > ul > li > a svg { width: 19px !important; height: 19px; }
  html.at-nav-collapsed .leftmenu .collapse_arrow { display: none !important; }
  html.at-nav-collapsed .leftmenu #mobilemenuwrap .collapse,
  html.at-nav-collapsed .leftmenu #mobilemenuwrap .collapsing { display: none !important; }
  html.at-nav-collapsed .leftmenu a.active::before { left: -12px; }
  html.at-nav-collapsed .leftmenu .at-chat-badge { position: absolute; top: 4px; right: 13px; font-size: 10px !important; line-height: 1; margin: 0; }
  html.at-nav-collapsed .at-nav-foot { padding: 10px 12px 12px; }
  html.at-nav-collapsed .at-nav-user { justify-content: center; padding: 8px 0; background: none; border-color: transparent; }
  html.at-nav-collapsed .at-nav-ut, html.at-nav-collapsed .at-nav-out { display: none !important; }
  html.at-nav-collapsed .at-nav-collapse span { display: none; }
  html.at-nav-collapsed .at-nav-collapse svg { transform: rotate(180deg); }
}
@media (max-width: 767px) { .at-nav-foot, .at-navtoggle { display: none !important; } #topnav .navbar-nav > li.at-tb-actions > a.at-newlead span { display: none; } #topnav .navbar-nav > li.at-tb-actions > a.at-newlead { padding: 0 11px !important; } }

/* Flyout shown beside a collapsed rail item: its label, or its sub-menu */
.at-fly { position: fixed; z-index: 1300; min-width: 150px; max-width: 280px; padding: 6px; border-radius: 12px; background: var(--at-ink-900, #0b1c2e); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); animation: atFlyIn .14s ease-out; }
.at-fly-h { padding: 7px 12px; font-size: 13px; font-weight: 650; color: #fff; white-space: nowrap; }
.at-fly.has-sub .at-fly-h { padding-bottom: 6px; margin-bottom: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(226, 235, 244, .5); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.at-fly .at-fly-i { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: rgba(226, 235, 244, .85) !important; text-decoration: none !important; white-space: nowrap; }
.at-fly .at-fly-i:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.at-fly .at-fly-i.active { background: rgba(229, 174, 69, .16); color: #fff !important; }
@keyframes atFlyIn { from { opacity: 0; transform: translateX(-4px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .leftmenu, .wrapper, .topbar-main, .at-fly { transition: none !important; animation: none !important; } }
