/* Тема 4done — ручные доводки поверх перекрашенного Elastic (DESIGN.md сайта) */

/* Шрифт сайта */
html, body, input, select, textarea, button, .btn, .form-control, .custom-select,
.popover, .ui-dialog, .ui-widget, .toolbar a.button, .tox, .tox * {
  font-family: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.header-title, .boxtitle, h1, h2, h3 { letter-spacing: -0.015em; }

/* Главная кнопка — таблетка цвета «чернил» с мягким зелёным свечением */
.btn-primary, .btn.btn-primary, .ui-dialog .ui-dialog-buttonset .btn.mainaction {
  background-color: #0b0c0d; border-color: #0b0c0d; color: #fff;
  border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(23, 163, 94, .8);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):active {
  background-color: #25292d; border-color: #25292d; color: #fff;
}
.btn-primary:focus { box-shadow: 0 0 0 3px rgba(23, 163, 94, .45); }
html.dark-mode .btn-primary, html.dark-mode .btn.btn-primary,
html.dark-mode .ui-dialog .ui-dialog-buttonset .btn.mainaction {
  background-color: #f3f4f5; border-color: #f3f4f5; color: #060708;
}
html.dark-mode .btn-primary:hover, html.dark-mode .btn-primary:focus,
html.dark-mode .btn-primary:not(:disabled):active {
  background-color: #d9dde0; border-color: #d9dde0; color: #060708;
}
.btn-secondary, .ui-dialog .ui-dialog-buttonset .btn { border-radius: 999px; }

/* Поля: радиус 8, фокус — зелёное кольцо */
.form-control, .custom-select, .input-group > .form-control { border-radius: 8px; }
.form-control:focus, .custom-select:focus {
  border-color: #17a35e; box-shadow: 0 0 0 3px rgba(23, 163, 94, .25);
}

/* Карточки и всплывающие окна — радиус 14 */
.popover, .ui-dialog, .card, .propform fieldset { border-radius: 14px; }
.popover { overflow: hidden; }

/* Страница входа */
body.task-login #logo { width: auto; max-width: 100%; height: 64px; margin: 0 auto 2rem; }
body.task-login #layout-content { background: #f1f2f3; }
html.dark-mode body.task-login #layout-content {
  background: radial-gradient(1200px 600px at 50% -10%, #12161a 0%, #060708 60%);
}
body.task-login #login-form .formcontent { border-radius: 24px; }
body.task-login #login-form input.form-control { height: 48px; }
body.task-login #rcmloginsubmit { height: 48px; font-weight: 560; }
body.task-login #login-footer { color: #80868c; }

/* Знак в боковом меню */
#layout-menu #logo { width: 40px; height: 40px; max-height: none; }
