/* KineSys — Lightglass Pearl, 2026-09-14.
 * Presentation only. Keep navigation, permissions and clinical data unchanged.
 * Last stylesheet in index.html; no dependency on server HTML rewriting.
 */
html body.ks-design-ready{
  --kds-bg:#f7f9f8;
  --kds-bg-shell:#f7f9f8;
  --kds-text:#143c43;
  --kds-petrol-deep:#143c43;
  --kds-muted:#597279;
  --pearl-surface:rgba(255,255,255,.74);
  --pearl-border:rgba(48,104,108,.16);
  --pearl-shadow:0 8px 28px rgba(26,61,65,.045);
  background:#f7f9f8!important;
  color:#143c43;
}
/* Neutral clear glass: no blue haze or animated refraction. */
html body.ks-design-ready #ks_sidebar#ks_sidebar{
  background:rgba(239,247,244,.78)!important;
  background-image:none!important;
  background-blend-mode:normal!important;
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:28px!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),inset 1px 0 1px rgba(255,255,255,.82),inset -1px -1px 1px rgba(84,142,139,.14),0 12px 34px rgba(31,70,69,.085),0 0 0 1px rgba(95,149,143,.12)!important;
  -webkit-backdrop-filter:blur(18px) saturate(115%)!important;
  backdrop-filter:blur(18px) saturate(115%)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar::before,
html body.ks-design-ready #ks_sidebar#ks_sidebar::after{
  background:none!important;
  box-shadow:none!important;
  border:0!important;
  pointer-events:none!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-brand h1,
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-welcome strong,
html body.ks-design-ready #ks_sidebar#ks_sidebar #lbl_usuario_logado{
  color:#143c43!important;text-shadow:none!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-brand h1 span{color:#248b84!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-brand::before{
  background:#66b5ac!important;box-shadow:none!important;width:2px;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar :is(.header-brand p,.header-welcome small,.ks-user-kicker,.ks-nav-label){
  color:#506e73!important;text-shadow:none!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-welcome{
  color:#385c62!important;background:rgba(255,255,255,.46)!important;
  border:1px solid rgba(73,131,125,.14)!important;border-radius:14px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a{
  color:#21484d!important;background:transparent!important;text-shadow:none!important;
  border:1px solid transparent!important;border-radius:14px!important;
  box-shadow:none!important;font-weight:550;gap:12px;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .ks-nav-icon{
  color:#246d6b!important;opacity:1!important;filter:none!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome :is(strong,span,small){color:#385c62!important;text-shadow:none!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome #lbl_usuario_logado{color:#143c43!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome#header_welcome .ks-user-kicker{color:#506e73!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content li.ks-active a .ks-nav-icon{color:#246d6b!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a:hover{
  background:rgba(255,255,255,.68)!important;
  border-color:rgba(74,141,133,.15)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content li.ks-active a{
  color:#103f43!important;background:rgba(159,219,209,.43)!important;
  border:1px solid rgba(76,159,149,.4)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.83),inset 0 -1px 0 rgba(71,147,139,.08),0 3px 9px rgba(52,120,112,.065)!important;
  font-weight:700;
  -webkit-backdrop-filter:blur(8px) saturate(110%)!important;
  backdrop-filter:blur(8px) saturate(110%)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a:focus-visible{
  outline:2px solid #247e75!important;outline-offset:-2px!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .ks-nav-logout{border-top-color:rgba(68,113,111,.15)!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .ks-nav-logout a{color:#974f47!important}
html body.ks-design-ready #ks_topbar{
  background:rgba(250,252,251,.82)!important;
  background-image:none!important;border-bottom:1px solid rgba(67,114,112,.1)!important;
  box-shadow:0 3px 14px rgba(35,69,69,.025)!important;
  -webkit-backdrop-filter:blur(14px) saturate(110%)!important;
  backdrop-filter:blur(14px) saturate(110%)!important;
}
html body.ks-design-ready #ks_topbar :is(.ks-version,.ks-mobile-menu,#ks_notificacoes_btn){
  background:rgba(255,255,255,.76)!important;color:#375d62!important;
  border:1px solid var(--pearl-border)!important;border-radius:13px!important;
  box-shadow:inset 0 1px 0 white,0 2px 5px rgba(28,65,68,.04)!important;
}
html body.ks-design-ready :is(.btn-primary,.btn-secondary,.btn-nav){
  border-radius:13px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48),0 4px 10px rgba(24,77,74,.085);
}
html body.ks-design-ready .btn-primary{
  color:#fff!important;background:#197a73!important;
  border:1px solid rgba(14,100,95,.58)!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.42),inset 0 -1px 1px rgba(10,76,73,.24),0 5px 13px rgba(24,111,102,.14)!important;
}
html body.ks-design-ready .btn-primary:hover{background:#146b65!important}
html body.ks-design-ready :is(.btn-secondary,.btn-nav){
  background:rgba(255,255,255,.78);border-color:var(--pearl-border);color:#214d50;
}
html body.ks-design-ready :is(.btn-primary,.btn-secondary,.btn-nav):focus-visible{outline:2px solid #247e75;outline-offset:3px}
html body.ks-design-ready .card,
html body.ks-design-ready .ks-home-stats>div,
html body.ks-design-ready :is(.ks-patient-card,.ks-msg-editor,.ks-msg-template-item){
  background:var(--pearl-surface);border-color:var(--pearl-border);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),var(--pearl-shadow);
  border-radius:18px;
}
html body.ks-design-ready #tela_home .ks-home-stats>div{
  background:var(--pearl-surface)!important;border:1px solid var(--pearl-border)!important;
  border-radius:20px!important;box-shadow:inset 0 1px 0 #fff,var(--pearl-shadow)!important;
}
html body.ks-design-ready #tela_home .ks-home-stats{gap:16px!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body.ks-design-ready :is(.modal-box,.ks-toast){
  background:rgba(251,253,252,.95);border-color:var(--pearl-border);
  box-shadow:inset 0 1px 0 #fff,0 18px 48px rgba(25,57,59,.16);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
}
/* Clinical reading surfaces stay opaque and status colors stay semantic. */
html body.ks-design-ready:is([data-tela="tela_avaliacao"],[data-tela="tela_evolucao"],[data-tela="tela_relatorio"]) .card{
  background:#fff;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
}
html body.ks-design-ready :is(table,.tabela-pacientes){-webkit-backdrop-filter:none;backdrop-filter:none}
@media(width > 820px){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{
    inset:14px auto 14px 14px;height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);
    width:var(--kds-sidebar-width);padding-top:24px;
  }
  html body.ks-design-ready:not([data-tela="tela_login"])>.container{margin-left:calc(var(--kds-sidebar-width) + 28px)}
  html body.ks-design-ready #ks_home_hero{padding-top:38px;padding-bottom:26px}
  html body.ks-design-ready #tela_home #ks_home_greeting{font-size:clamp(28px,2.8vw,40px)!important;letter-spacing:-.8px!important;line-height:1.15!important;color:#143c43!important}
}
@media(width > 820px) and (max-width:1180px){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{width:var(--kds-sidebar-notebook-width)}
  html body.ks-design-ready:not([data-tela="tela_login"])>.container{margin-left:calc(var(--kds-sidebar-notebook-width) + 28px)}
}
@media(max-width:820px){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{
    border-radius:0 26px 26px 0!important;
    background:rgba(241,248,246,.93)!important;
    -webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;
  }
  html body.ks-design-ready .ks-nav-backdrop{background:rgba(20,47,48,.22)!important}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{background:#edf4f1!important}
  html body.ks-design-ready #ks_topbar{background:#f7faf8!important}
}
@media(prefers-reduced-transparency:reduce){
  html body.ks-design-ready #ks_sidebar#ks_sidebar,
  html body.ks-design-ready #ks_topbar{background:#f1f6f3!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html body.ks-design-ready .card{background:#fff!important}
}
@media(prefers-reduced-motion:reduce){
  html body.ks-design-ready #ks_sidebar#ks_sidebar,
  html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a,
  html body.ks-design-ready :is(.btn-primary,.btn-secondary,.btn-nav){transition:none!important}
}
@media(forced-colors:active){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{background:Canvas!important;border:1px solid CanvasText!important;box-shadow:none!important}
  html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a{color:LinkText!important}
  html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content li.ks-active a{outline:2px solid Highlight!important}
}

/* Restore KineSys petrol identity while retaining the soft glass material. */
html body.ks-design-ready{
  --kds-bg:#e5efed;--kds-bg-shell:#e5efed;
  background:#e5efed!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar{
  background:rgba(18,79,86,.94)!important;
  border-color:rgba(184,235,224,.42)!important;
  box-shadow:inset 0 1px 1px rgba(224,255,248,.35),inset 1px 0 1px rgba(184,235,224,.18),0 12px 34px rgba(13,57,63,.18)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-brand h1,
html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome #lbl_usuario_logado{
  color:#f0fbf8!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-brand h1 span{color:#82d8c9!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar :is(.header-brand p,.header-welcome small,.ks-user-kicker,.ks-nav-label),
html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome :is(strong,span,small),
html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome#header_welcome .ks-user-kicker{
  color:#cae6e0!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .header-welcome{
  background:rgba(232,255,247,.075)!important;color:#e0f3ee!important;
  border-color:rgba(186,232,221,.22)!important;
  box-shadow:inset 0 1px 0 rgba(223,253,246,.1)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a{color:#e2f3ef!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .ks-nav-icon{color:#9cddd2!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a:hover{
  background:rgba(189,241,229,.13)!important;border-color:rgba(169,223,213,.24)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content li.ks-active a{
  background:rgba(177,230,216,.94)!important;color:#103f43!important;
  border-color:rgba(219,255,245,.65)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 4px 12px rgba(4,40,43,.12)!important;
}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content li.ks-active a .ks-nav-icon{color:#175a5c!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a:focus-visible{outline-color:#bbf3e4!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .ks-nav-logout{border-top-color:rgba(183,227,217,.24)!important}
html body.ks-design-ready #ks_sidebar#ks_sidebar .ks-nav-logout a{color:#ffd5c8!important}
html body.ks-design-ready #ks_topbar{
  background:rgba(218,237,231,.9)!important;border-bottom-color:rgba(39,110,106,.18)!important;
}
html body.ks-design-ready #ks_home_hero{border-bottom:1px solid rgba(40,112,104,.22)}
@media(max-width:820px){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{background:rgba(18,79,86,.98)!important}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{background:#124f56!important}
  html body.ks-design-ready #ks_topbar{background:#daede7!important}
}
@media(prefers-reduced-transparency:reduce){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{background:#124f56!important}
  html body.ks-design-ready #ks_topbar{background:#daede7!important}
}
@media(forced-colors:active){
  html body.ks-design-ready #ks_sidebar#ks_sidebar{background:Canvas!important}
  html body.ks-design-ready #ks_sidebar#ks_sidebar :is(a,span,strong,small,p,h1,.ks-nav-label,.ks-nav-icon),
  html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome #lbl_usuario_logado,
  html body.ks-design-ready #ks_sidebar#ks_sidebar #header_welcome#header_welcome .ks-user-kicker{color:CanvasText!important}
  html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content a{color:LinkText!important}
  html body.ks-design-ready #ks_sidebar#ks_sidebar .dropdown-content li.ks-active a{background:Highlight!important;color:HighlightText!important}
}
html body.ks-design-ready:not([data-tela="tela_login"])>.container{background:#e5efed!important}
