
/* ==========================================
   HEAVENS ESTATES CRM
   WHITE + NAVY BLUE + GOLD LOGIN DESIGN
   ========================================== */

:root {
  --he-navy: #142b4d;
  --he-deep-navy: #101e36;
  --he-gold: #e5bc72;
  --he-gold-hover: #f0cb88;
  --he-white: #ffffff;
  --he-text: #183456;
}

/* MAIN LOGIN CARD */

#login .auth-card,
#setup .auth-card {
  overflow: hidden;
}

/* LEFT SIDE - WHITE BRAND PANEL */

#login .auth-art,
#setup .auth-art {
  background: #ffffff !important;
  color: var(--he-text) !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  gap: 0;
}

/* BIG CENTERED LOGO - NO EXTRA WHITE CARD */

#login .brand-logo-wrap,
#setup .brand-logo-wrap {
  width: min(100%, 320px);
  height: 245px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 18px;
  padding: 0;

  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* SHOW COMPLETE ORIGINAL LOGO */

#login .brand-logo,
#setup .brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* REMOVE DUPLICATE BRAND NAME */

#login .auth-art .eyebrow,
#setup .auth-art .eyebrow {
  display: none !important;
}

/* MAIN QUOTE */

#login .auth-art h1,
#setup .auth-art h1 {
  color: #17375f !important;

  font-size: clamp(29px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.8px;

  max-width: 430px;
  margin: 0 auto 22px;

  text-align: center;
}

/* TAGLINE */

#login .brand-tagline,
#setup .brand-tagline {
  color: #58718f !important;

  font-size: 15px;
  line-height: 1.65;

  max-width: 410px;
  margin: 0 auto;

  text-align: center;
}

/* RIGHT SIDE - NAVY BLUE */

#login .auth-form,
#setup .auth-form {
  background: linear-gradient(
    155deg,
    #19365c 0%,
    #142b4d 55%,
    #101e36 100%
  ) !important;

  color: #ffffff !important;
}

/* SECURE ACCESS BADGE */

#login .auth-form .pill,
#setup .auth-form .pill {
  display: table;
  margin: 0 auto 22px;

  background: rgba(229, 188, 114, 0.13);
  color: var(--he-gold);

  border: 1px solid rgba(229, 188, 114, 0.25);
  border-radius: 100px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

/* WELCOME BACK - CENTER */

#login .auth-form h2,
#setup .auth-form h2 {
  color: #ffffff !important;

  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 750;

  text-align: center;
  margin-bottom: 12px;
}

/* LOGIN DESCRIPTION */

#login .login-subtitle,
#login .auth-form > p,
#setup .auth-form > p {
  color: #d4deed !important;

  font-size: 15px;
  line-height: 1.6;
  text-align: center;

  margin-bottom: 28px;
}

/* FORM LABELS */

#login .auth-form label {
  color: #f2f5fb !important;
  font-weight: 600;
  font-size: 13px;
}

/* EMAIL & PASSWORD FIELDS */

#login .auth-form input {
  width: 100%;
  min-height: 49px;

  background: #ffffff !important;
  color: #142b4d !important;

  border: 1px solid #dce4ef;
  border-radius: 10px;

  font-size: 14px;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#login .auth-form input::placeholder {
  color: #8a96a8;
}

#login .auth-form input:focus {
  outline: none;
  border-color: var(--he-gold);

  box-shadow:
    0 0 0 3px rgba(229, 188, 114, 0.25);
}

/* GOLD SIGN IN BUTTON */

#login .brand-signin {
  position: relative;

  display: flex !important;
  align-items: center;
  justify-content: center !important;

  width: 100%;
  min-height: 51px;

  background: var(--he-gold) !important;
  color: #142b4d !important;

  border: none;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 750;
  text-align: center;

  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

#login .brand-signin:hover {
  background: var(--he-gold-hover) !important;
  transform: translateY(-1px);
}

/* ARROW ON RIGHT - TEXT STAYS CENTERED */

#login .brand-signin .signin-arrow {
  position: absolute;
  right: 18px;
  top: 50%;

  transform: translateY(-50%);

  font-size: 20px;
  line-height: 1;
}

#login .brand-signin:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* LOGIN ERROR */

#login #loginError:not(:empty) {
  color: #ffb9b9 !important;
  font-size: 13px;
}

/* FOOTER */

#login .brand-login-footer {
  color: #b4c4da !important;
  text-align: center;

  font-size: 12px;
  line-height: 1.6;

  margin-top: 20px;
}

/* SETUP SCREEN BUTTON */

#setup .auth-form .primary {
  background: var(--he-gold);
  color: var(--he-navy);
}

/* KEEP SIDEBAR LOGO NEAT */

#app .brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
}

#app .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* TABLET */

@media (max-width: 900px) {

  #login .auth-art,
  #setup .auth-art {
    padding: 30px 22px;
  }

  #login .brand-logo-wrap,
  #setup .brand-logo-wrap {
    width: min(100%, 260px);
    height: 205px;
  }

  #login .auth-art h1,
  #setup .auth-art h1 {
    font-size: 30px;
  }

}

/* MOBILE - STACKED RESPONSIVE DESIGN */

@media (max-width: 640px) {

  #login.auth-screen,
  #setup.auth-screen {
    height: auto;
    min-height: 100dvh;

    padding: 12px;
    align-items: flex-start;

    overflow-y: auto;
  }

  #login .auth-card,
  #setup .auth-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: auto;
    min-height: 0;

    border-radius: 18px;
    overflow: hidden;
  }

  /* WHITE BRAND SECTION ON TOP */

  #login .auth-art,
  #setup .auth-art {
    width: 100%;
    min-height: 0;

    padding: 18px 20px 24px;
  }

  #login .brand-logo-wrap,
  #setup .brand-logo-wrap {
    width: min(100%, 235px);
    height: 175px;

    margin: 0 auto 8px;
  }

  #login .auth-art h1,
  #setup .auth-art h1 {
    font-size: 24px;
    line-height: 1.2;

    max-width: 340px;
    margin-bottom: 12px;
  }

  #login .brand-tagline,
  #setup .brand-tagline {
    font-size: 12px;
    line-height: 1.5;

    max-width: 310px;
  }

  /* NAVY LOGIN SECTION BELOW */

  #login .auth-form,
  #setup .auth-form {
    width: 100%;
    min-width: 0;

    padding: 27px 22px 30px;
  }

  #login .auth-form h2 {
    font-size: 26px;
  }

  #login .login-subtitle {
    font-size: 13px;
    margin-bottom: 23px;
  }

  #login .auth-form input {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  #login .brand-signin {
    min-height: 51px;
  }

}

/* SMALL PHONES */

@media (max-width: 360px) {

  #login .auth-art,
  #setup .auth-art {
    padding: 16px 14px 20px;
  }

  #login .brand-logo-wrap,
  #setup .brand-logo-wrap {
    width: 200px;
    height: 150px;
  }

  #login .auth-art h1,
  #setup .auth-art h1 {
    font-size: 21px;
  }

  #login .auth-form,
  #setup .auth-form {
    padding: 24px 16px;
  }

}

/* FINAL LOGO LAYOUT - DESKTOP AND MOBILE */
#login .brand-logo-wrap,
#setup .brand-logo-wrap {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  width: min(100%, 400px);
  height: 290px;
  margin: 0 auto 12px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#login .brand-logo,
#setup .brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: heLogoPulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
/* Circular glow behind the logo, not a square box */
#login .brand-logo-wrap::before,
#setup .brand-logo-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,188,114,.32) 0%, rgba(229,188,114,.14) 43%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: heHaloPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heLogoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.035); filter: brightness(1.1) drop-shadow(0 0 14px rgba(229,188,114,.8)); }
}
@keyframes heHaloPulse {
  0%, 100% { opacity: .15; }
  50% { opacity: .95; }
}
#login .brand-heading,
#setup .brand-heading {
  width: 100%;
  max-width: 480px;
  font-size: 31px;
  line-height: 1.22;
  letter-spacing: -.6px;
  text-align: center;
  margin: 0 auto 14px;
}
@media (max-width: 640px) {
  #login .brand-logo-wrap,
  #setup .brand-logo-wrap {
    width: min(100%, 300px);
    height: 225px;
    margin: 0 auto 10px;
  }
  #login .brand-heading,
  #setup .brand-heading {
    font-size: clamp(19px, 5vw, 25px);
    line-height: 1.25;
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #login .brand-logo, #setup .brand-logo,
  #login .brand-logo-wrap::before, #setup .brand-logo-wrap::before {
    animation: none !important;
  }
}

/* HEAVENS ESTATES - LOGO SIZE & HEADING FIX */

#login .brand-logo-wrap,
#setup .brand-logo-wrap {
  width: min(100%, 420px) !important;
  height: 310px !important;
  margin: 0 auto 8px !important;
}

#login .brand-logo,
#setup .brand-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#login .auth-art h1,
#setup .auth-art h1 {
  width: 100% !important;
  max-width: 470px !important;
  font-size: clamp(25px, 2.4vw, 32px) !important;
  line-height: 1.22 !important;
  margin: 0 auto 14px !important;
}

@media (max-width: 640px) {
  #login .brand-logo-wrap,
  #setup .brand-logo-wrap {
    width: min(100%, 340px) !important;
    height: 245px !important;
    margin-bottom: 6px !important;
  }

  #login .auth-art h1,
  #setup .auth-art h1 {
    font-size: clamp(21px, 5.5vw, 27px) !important;
    line-height: 1.25 !important;
  }
}


/* CRM DASHBOARD - TEXT READABILITY */

#app .side-top strong {
  font-size: 16px;
}

#app #navigation {
  font-size: 15px;
}

#app .crumb {
  font-size: 16px;
}

#app .content h1 {
  font-size: 30px;
  line-height: 1.25;
}

#app .content h2 {
  font-size: 20px;
  line-height: 1.3;
}

#app .content h3 {
  font-size: 18px;
  line-height: 1.35;
}

#app .content p,
#app .content label,
#app .content button,
#app .content a {
  font-size: 14px;
  line-height: 1.5;
}

#app .content small {
  font-size: 12px;
}

@media (max-width: 640px) {
  #app .content h1 {
    font-size: 25px;
  }

  #app .content h2 {
    font-size: 18px;
  }

  #app .content h3 {
    font-size: 17px;
  }

  #app .content p,
  #app .content label,
  #app .content button,
  #app .content a {
    font-size: 14px;
  }
}




/* DASHBOARD FONT SIZE BOOST - DESKTOP + MOBILE */

#app .content {
  font-size: 15px;
}

#app #navigation {
  font-size: 16px;
}

#app .content h1 {
  font-size: 34px;
  line-height: 1.25;
}

#app .content h2 {
  font-size: 22px;
}

#app .content h3 {
  font-size: 19px;
}

#app .content p,
#app .content label,
#app .content button,
#app .content a,
#app .content span {
  font-size: 15px;
}

#app .content small {
  font-size: 13px;
}

/* DASHBOARD CARD NUMBERS */
#app .content [class*="kpi"] strong,
#app .content [class*="stat"] strong,
#app .content [class*="metric"] strong {
  font-size: 32px;
  line-height: 1.2;
}

/* MOBILE */
@media (max-width: 640px) {
  #app .content {
    font-size: 14px;
  }

  #app .content h1 {
    font-size: 27px;
  }

  #app .content h2 {
    font-size: 20px;
  }

  #app .content h3 {
    font-size: 18px;
  }

  #app .content p,
  #app .content label,
  #app .content button,
  #app .content a,
  #app .content span {
    font-size: 14px;
  }

  #app .content [class*="kpi"] strong,
  #app .content [class*="stat"] strong,
  #app .content [class*="metric"] strong {
    font-size: 29px;
  }
}


/* CRM SIDEBAR AND TOPBAR BRANDING */
#app .crm-sidebar-brand {
  display: flex;
  align-items: center;
  padding: 22px 18px;
}

#app .crm-sidebar-title strong {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.1px;
}

#app .crm-topbar-title {
  font-size: 21px;
  font-weight: 700;
}

#app .side-footer .user-meta {
  min-width: 0;
}

#app .side-footer #userName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #app .crm-sidebar-title strong {
    font-size: 18px;
  }

  #app .crm-topbar-title {
    font-size: 18px;
  }
}


/* LARGER SIGN OUT BUTTON */
#app #logout 




/* MOBILE DASHBOARD BUTTONS - LEFT & RIGHT FIX */
@media screen and (max-width: 640px) {

  #app .dash-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  #app .dash-head-buttons {
    display: grid !important;
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    gap: 8px !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #app #dashAttendance {
    justify-self: start !important;
    margin: 0 !important;
    width: auto !important;
  }

  #app #dashAddLead {
    justify-self: end !important;
    margin: 0 !important;
    width: auto !important;
  }

}


/* FINAL MOBILE FIX - DASHBOARD ACTION BUTTONS */
@media screen and (max-width: 850px) {

  #app .dash-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  #app .dash-heading .dash-head-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    align-self: stretch !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    gap: 8px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }

  #app .dash-heading .dash-head-buttons > :first-child {
    margin-left: 0 !important;
    margin-right: auto !important;
    flex-shrink: 0;
  }

  #app .dash-heading .dash-head-buttons > :last-child {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0;
  }
}


/* CRM ACTION POPUPS - append to bottom of brand.css */
.crm-action-overlay{position:fixed;inset:0;z-index:9999;background:rgba(9,24,47,.58);display:flex;align-items:center;justify-content:center;padding:18px;opacity:0;transition:opacity .18s ease}
.crm-action-overlay.crm-overlay-open{opacity:1}
.crm-action-dialog{background:#fff;border-radius:18px;width:min(540px,100%);max-height:min(90dvh,900px);overflow:auto;box-shadow:0 24px 75px #071c3b50;transform:translateY(14px) scale(.985);transition:transform .2s ease;color:#142b4d}
.crm-overlay-open .crm-action-dialog{transform:translateY(0) scale(1)}
.crm-dialog-wide{width:min(760px,100%)}
.crm-dialog-top{position:sticky;top:0;z-index:1;background:white;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e5eaf2}
.crm-dialog-top h2{font-size:22px;margin:0}.crm-dialog-close{background:#f2f5f9;border:0;border-radius:9px;width:36px;height:36px;font-size:26px;color:#142b4d}
.crm-dialog-body{padding:22px 24px}.crm-dialog-hint{color:#71829b;font-size:13px;line-height:1.5;margin:0 0 18px}
.crm-popup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.crm-popup-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#30496c;min-width:0}
.crm-popup-grid input,.crm-popup-grid select,.crm-popup-grid textarea{width:100%;min-width:0;border:1px solid #dce4ef;border-radius:9px;padding:12px;color:#142b4d;background:white;font:inherit;font-weight:400;font-size:14px}
.crm-popup-wide{grid-column:1/-1}.crm-popup-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:5px}
.crm-dialog-note{border:1px solid #e9e3d5;background:#fffcf6;color:#806c49;border-radius:10px;padding:12px;font-size:12px;line-height:1.6}
.crm-attendance-info{display:grid;gap:12px;margin-bottom:18px}.crm-attendance-info>div{padding:12px;border:1px solid #e5eaf2;border-radius:10px}.crm-attendance-info small{display:block;color:#8090a6;margin-bottom:5px}.crm-attendance-info strong{font-size:15px;overflow-wrap:anywhere}
@media(max-width:640px){.crm-action-overlay{padding:10px;align-items:center}.crm-action-dialog{max-height:92dvh}.crm-dialog-top{padding:16px}.crm-dialog-body{padding:16px}.crm-popup-grid{grid-template-columns:1fr}.crm-dialog-top h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.crm-action-overlay,.crm-action-dialog{transition:none!important}}

/* Dashboard V1 isolated styling */
.wl-dashboard{color:#183252}.wl-heading h1{font-size:27px;margin:5px 0}.wl-heading p{color:#728097;margin:0 0 20px}.wl-eyebrow{font-size:11px;letter-spacing:1.4px;color:#68829f;font-weight:700}.wl-tabs,.wl-pills{display:flex;gap:8px;flex-wrap:wrap}.wl-tabs{margin:12px 0 15px;border-bottom:1px solid #dce4ed;padding-bottom:12px}.wl-tabs button,.wl-tabs span,.wl-pills button,.wl-custom button{border:1px solid #dce5f0;border-radius:9px;background:#fff;color:#244366;padding:9px 15px;cursor:pointer;font-weight:650}.wl-tabs .selected,.wl-pills .selected{background:#183a65;color:white;border-color:#183a65}.wl-filter{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.wl-custom{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wl-custom input,.wl-staff select,.wl-report input,.wl-report select{display:block;border:1px solid #d5dfec;border-radius:8px;padding:9px;background:#fff;color:#173452;max-width:100%}.wl-staff{font-size:12px;font-weight:650}.wl-summary{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,3.8fr);gap:14px;align-items:stretch}.wl-total{background:linear-gradient(135deg,#112b50,#28517d);color:white;border-radius:14px;padding:24px;display:flex;flex-direction:column;justify-content:center;min-height:185px}.wl-total span{font-size:12px;font-weight:750;letter-spacing:1px}.wl-total strong{font-size:66px;line-height:1.4}.wl-total small{color:#d0deef}.wl-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.wl-kpi{background:white;border:1px solid #e1e8f0;border-radius:12px;padding:16px 13px;min-height:118px;display:flex;flex-direction:column;gap:5px;box-shadow:0 3px 12px #102c4c09}.wl-kpi-mark{width:24px;height:4px;border-radius:4px;background:var(--wl-accent,#7e98b5)}.wl-kpi strong{font-size:28px;color:#173b67}.wl-kpi>span:not(.wl-kpi-mark){font-size:12px;font-weight:700}.wl-kpi small{font-size:10px;color:#8895a8}.wl-panel{background:#fff;border:1px solid #e1e8f0;border-radius:14px;padding:23px;margin-top:18px}.wl-panel h2{font-size:18px;margin:0 0 20px}.wl-chart-row{display:flex;align-items:center;justify-content:center;gap:48px;flex-wrap:wrap}.wl-donut{height:230px;width:230px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.wl-donut>div{height:145px;width:145px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.wl-donut strong{font-size:33px}.wl-donut small{font-size:12px;color:#77869a}.wl-legend{min-width:260px;max-width:400px;flex:1}.wl-legend>div{display:grid;grid-template-columns:12px 1fr 45px 52px;align-items:center;gap:12px;padding:6px 0;font-size:12px}.wl-legend i{width:10px;height:10px;border-radius:3px}.wl-legend strong,.wl-legend small{text-align:right}.wl-legend small{color:#78889d}.wl-report{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.wl-report label{font-size:12px;font-weight:700}.wl-report button{padding:10px 15px;border-radius:8px;background:#193e6b;color:#fff;border:0;cursor:pointer}.wl-report button[type=reset]{background:#edf2f8;color:#214365}@media(max-width:1050px){.wl-summary{grid-template-columns:1fr}.wl-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.wl-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wl-kpi{padding:12px;min-height:108px}.wl-total{min-height:135px}.wl-total strong{font-size:49px}.wl-panel{padding:14px}.wl-chart-row{gap:20px}.wl-donut{height:190px;width:190px}.wl-donut>div{height:120px;width:120px}.wl-tabs button,.wl-pills button{padding:8px 10px;font-size:12px}}

/* Dashboard V1: accessible interactive SVG doughnut (scoped; no auth changes) */
.wl-interactive-chart{width:250px;height:250px;position:relative;flex-shrink:0;touch-action:manipulation}
.wl-chart-svg{width:100%;height:100%;overflow:visible}
.wl-arc{cursor:pointer;transition:transform .18s ease,filter .18s ease;transform-origin:120px 120px;outline:none}
.wl-arc.wl-chart-active,.wl-arc:focus-visible{transform:var(--wl-push);filter:drop-shadow(0 3px 5px #142b4a50)}
.wl-chart-center{position:absolute;inset:31%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;pointer-events:none;background:white;border-radius:50%}
.wl-chart-center strong{font-size:30px;color:#173b67;line-height:1.2}.wl-chart-center small{font-size:12px;color:#73839b;max-width:110px}
.wl-chart-tooltip{position:absolute;top:-23px;left:50%;transform:translateX(-50%);z-index:3;background:#122d51;color:white;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 8px 22px #0d26472c;pointer-events:none}
.wl-chart-tooltip[hidden]{display:none}.wl-legend-row{cursor:pointer;border-radius:7px;padding-left:8px!important;padding-right:8px!important}.wl-legend-row.wl-chart-active,.wl-legend-row:focus-visible{background:#edf3fc;outline:none}
@media(max-width:650px){.wl-interactive-chart{width:210px;height:210px}.wl-chart-tooltip{font-size:11px}}
@media(prefers-reduced-motion:reduce){.wl-arc{transition:none}}

/* Flicker correction: reveal KPI cards only after saved labels/layout are applied. */
.wl-dashboard #wlDashboardData .wl-summary:not([data-kpi-ready="true"]){visibility:hidden}


/* HE UI stability V1: avoid geometry animations during route/permission/theme hydration.
   Preserve color transitions, interactive hover states and existing module layouts. */
#app .topbar,#app .topbar .crumb,#app #navigation .nav-btn,#app #wlBottomNav [data-wl-nav],
#app .content .lead-heading,#app .content .wl-heading,#app .content .kv-head{
 transition-property:background-color,color,border-color,box-shadow!important;
}
#app .content .wl-total>span{text-transform:none!important;letter-spacing:normal}
#app .content .wl-total>span,#app .content .wl-kpi>span{transition-property:color,background-color,border-color!important}
