/* ===== CIR - Endpoint Protection theme ===== */
:root{ --cir:#2DA9DE; --cir-dark:#1B7FAE; }

/* Header */
.q-header, .q-header .q-toolbar, header.q-header { background:var(--cir) !important; color:#fff !important; }
.q-header .q-toolbar__title, .q-header .q-btn, .q-header .q-icon { color:#fff !important; }

/* Blue tab bar (JS adds .cir-blue-bar) - white text */
html body .q-tabs.cir-blue-bar, html body .q-tabs.cir-blue-bar.text-grey,
html body .q-tabs.cir-blue-bar .q-tab, html body .q-tabs.cir-blue-bar .q-tab__label,
html body .q-tabs.cir-blue-bar .q-tab__icon, html body .q-tabs.cir-blue-bar .q-icon { color:#fff !important; opacity:1 !important; }
html body .q-tabs.cir-blue-bar .q-tab--inactive { opacity:.85 !important; }
html body .q-tabs.cir-blue-bar .q-tab__indicator { background:#fff !important; }

/* White-bg tabs (Servers/Workstations/Mixed) */
.q-tabs:not(.cir-blue-bar) .q-tab--active { color:var(--cir) !important; }
.q-tabs:not(.cir-blue-bar) .q-tab__indicator { background:var(--cir) !important; }
.q-btn.bg-primary, .bg-primary { background:var(--cir) !important; color:#fff !important; }

/* ===== Login page (JS adds body.cir-login) ===== */
body.cir-login, body.cir-login .q-layout, body.cir-login .q-page-container, body.cir-login .q-page {
  background: linear-gradient(135deg, #0F3D57 0%, #1B7FAE 55%, #2DA9DE 100%) !important;
}
body.cir-login .q-card {
  background:#fff !important; color:#1d2b36 !important;
  border-top:6px solid var(--cir) !important; border-radius:12px !important;
  box-shadow:0 20px 50px rgba(0,0,0,.35) !important;
  min-width:420px !important; max-width:92vw !important;
}
body.cir-login .q-card [class*="text-h"] {
  white-space:normal !important; overflow:visible !important; text-overflow:clip !important;
  font-size:30px !important; line-height:1.25 !important; font-weight:600 !important;
  color:#0F3D57 !important; text-align:center !important; letter-spacing:.3px !important;
}
body.cir-login .cir-sub { text-align:center; color:#5b6b78; font-size:13px; margin:-6px 0 14px; letter-spacing:.5px; }
body.cir-login .q-field__control { background:#f4f8fb !important; border-radius:8px !important; }
body.cir-login .q-field__control:before { border-color:#cfdde7 !important; }
body.cir-login .q-field--focused .q-field__control:after { border-color:var(--cir) !important; }
body.cir-login .q-field__label { color:#5b6b78 !important; }
body.cir-login .q-field--focused .q-field__label { color:var(--cir) !important; }
body.cir-login .q-field__native, body.cir-login .q-field__input { color:#1d2b36 !important; }
body.cir-login .q-field__append .q-icon { color:#5b6b78 !important; }
/* Chrome autofill fix (light bg par label/text dekhay) */
body.cir-login input:-webkit-autofill, body.cir-login input:-webkit-autofill:hover, body.cir-login input:-webkit-autofill:focus {
  -webkit-box-shadow:0 0 0 1000px #f4f8fb inset !important; -webkit-text-fill-color:#1d2b36 !important; caret-color:#1d2b36;
}
body.cir-login .q-btn { background:var(--cir) !important; color:#fff !important; border-radius:8px !important; font-weight:600 !important; letter-spacing:1px; }
body.cir-login .q-btn:hover { background:var(--cir-dark) !important; }
body.cir-login .cir-foot { text-align:center; color:rgba(255,255,255,.8); font-size:12px; margin-top:18px; }

/* Login: card center + footer niche */
body.cir-login .cir-login-wrap {
  display:flex !important; flex-direction:column !important;
  align-items:center !important; justify-content:center !important;
  width:100% !important; max-width:100% !important; flex:1 1 100% !important;
  min-height:100vh !important; margin:0 !important; padding:0 !important;
}
body.cir-login .cir-login-wrap > .q-card { margin:0 auto !important; }
body.cir-login .cir-sub { margin:8px 0 18px !important; }
body.cir-login .cir-foot { width:100%; margin-top:22px !important; }

/* Hidden menu items (JS adds .cir-hide) */
.cir-hide { display:none !important; }
