a[href*="authelia.com"]{display:none !important;}

/* --- SimControl: синий акцент под логотип (MUI primary) --- */
.MuiButton-containedPrimary,
.MuiButton-contained.MuiButton-colorPrimary{
  background-color:#2472ce !important;
  box-shadow:0 1px 4px rgba(0,0,0,.3) !important;
}
.MuiButton-containedPrimary:hover,
.MuiButton-contained.MuiButton-colorPrimary:hover{ background-color:#1a568f !important; }

.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline{ border-color:#2472ce !important; }
.MuiInputLabel-root.Mui-focused,
.MuiFormLabel-root.Mui-focused,
label.Mui-focused{ color:#2472ce !important; }

.MuiCheckbox-root.Mui-checked,
.MuiCheckbox-colorPrimary.Mui-checked,
.MuiCheckbox-root.Mui-checked svg{ color:#2472ce !important; }

.MuiInputBase-input{ caret-color:#2472ce !important; }
.MuiButton-textPrimary{ color:#2472ce !important; }
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline{ border-color:#7fb2e8 !important; }

/* ------------------------------------------------------------------ */
/* Переключатель оформления — как в кабинете                          */
/* ------------------------------------------------------------------ */
#pkc-theme-btn{
  position:fixed;top:16px;left:16px;z-index:2000;
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;padding:0;
  border-radius:9px;cursor:pointer;
  background:rgba(127,127,127,.12);border:1px solid rgba(127,127,127,.35);color:#8a8f8a;
}
#pkc-theme-btn:hover{color:#2472ce;border-color:#2472ce}
#pkc-theme-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;display:none}
#pkc-theme-btn[data-mode="system"] .pkc-ic-sys,
#pkc-theme-btn[data-mode="light"] .pkc-ic-sun,
#pkc-theme-btn[data-mode="dark"] .pkc-ic-moon,
#pkc-theme-btn:not([data-mode]) .pkc-ic-sys{display:block}

/* Явный выбор пользователя перекрывает автоматическую тему Authelia.
   Перекрашиваем только поверхности и текст — остальное наследуется. */
html[data-theme="dark"] body,
html[data-theme="dark"] #root,
html[data-theme="dark"] .MuiPaper-root{ background-color:#2b2b2b !important; color:#fff !important; }
html[data-theme="dark"] .MuiTypography-root,
html[data-theme="dark"] .MuiFormControlLabel-label,
html[data-theme="dark"] .MuiInputBase-input,
html[data-theme="dark"] .MuiInputLabel-root:not(.Mui-focused),
html[data-theme="dark"] .MuiCheckbox-root:not(.Mui-checked){ color:#fff !important; }
html[data-theme="dark"] .MuiOutlinedInput-notchedOutline{ border-color:rgba(255,255,255,.28) !important; }
html[data-theme="dark"] .MuiDivider-root{ border-color:rgba(255,255,255,.15) !important; }

html[data-theme="light"] body,
html[data-theme="light"] #root,
html[data-theme="light"] .MuiPaper-root{ background-color:#fff !important; color:rgba(0,0,0,.87) !important; }
html[data-theme="light"] .MuiTypography-root,
html[data-theme="light"] .MuiFormControlLabel-label,
html[data-theme="light"] .MuiInputBase-input,
html[data-theme="light"] .MuiInputLabel-root:not(.Mui-focused),
html[data-theme="light"] .MuiCheckbox-root:not(.Mui-checked){ color:rgba(0,0,0,.87) !important; }
html[data-theme="light"] .MuiOutlinedInput-notchedOutline{ border-color:rgba(0,0,0,.25) !important; }
