/* Новый интерфейс ULTRAD: подключается последним (Page.php, Login.php, Password.php) и перекрывает старые стили.
   Фон страницы и текстура карточек — из профиля пользователя (HandableStyle.php), тема их не трогает.
   Цвета элементов — переменные ниже, пользователь их не меняет. */

:root {
  --pb-bg: #f3f5f8;
  --pb-surface: #ffffff;
  --pb-text: #1d2433;
  --pb-muted: #667085;
  --pb-border: #dfe3ea;
  --pb-border-strong: #c5ccd8;
  --pb-accent: #2463c9;
  --pb-accent-hover: #1c50a6;
  --pb-accent-soft: #e8f0fc;
  --pb-danger: #c8372d;
  --pb-radius: 10px;
  --pb-radius-sm: 7px;
  --pb-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --pb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Основа ---------- */
/* Шрифты увеличены на 25% (просьба клиента 19.10.2026); высота полей, кнопок и шапки — прежняя */
html, body { height: auto; min-height: 100%; }
body {
  background-color: var(--pb-bg);
  color: var(--pb-text);
  font-family: var(--pb-font);
  font-size: 17.5px;
  line-height: 1.45;
  padding-top: 64px;
}
h1, h2, h3, h4 { font-family: var(--pb-font); color: var(--pb-text); letter-spacing: -.01em; }
h2 { font-size: 27.5px; font-weight: 650; margin: 4px 0 14px; }
h3 { font-size: 21.25px; font-weight: 650; margin: 18px 0 10px; }
a { color: var(--pb-accent); }

/* ---------- Шапка ---------- */
header.navbar {
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb-border) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  min-height: 56px;
}
#mnav { width: auto !important; max-width: 1180px; padding: 0 16px; white-space: nowrap; }
header.navbar .navbar-nav > li > a {
  color: #344054 !important;
  text-shadow: none !important;
  font-weight: 550;
  padding-top: 15px; padding-bottom: 15px;
  border-radius: 0;
}
header.navbar .navbar-nav > li > a:hover,
header.navbar .navbar-nav > .open > a,
header.navbar .navbar-nav > .open > a:hover,
header.navbar .navbar-nav > .open > a:focus { background: var(--pb-accent-soft) !important; color: var(--pb-accent) !important; }
header.navbar .navbar-nav > li > a .glyphicon { color: var(--pb-muted); margin-right: 3px; }
header.navbar .navbar-nav > li > a:hover .glyphicon { color: var(--pb-accent); }
#HomePage { width: auto !important; height: 56px !important; padding: 15px 18px 15px 4px !important; display: flex !important; align-items: center; gap: 8px; }
#HomePage .glyphicon-home { font-size: 21.25px !important; color: #fff !important; background: var(--pb-accent); border-radius: 8px; padding: 6px; }
#HomePage .pb-brand { font-weight: 700; color: var(--pb-text); font-size: 18.75px; letter-spacing: -.01em; }
header.navbar .dropdown-menu {
  border: 1px solid var(--pb-border); border-radius: var(--pb-radius-sm);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .12); padding: 6px; margin-top: 0;
}
header.navbar .dropdown-menu > li > a { border-radius: 6px; padding: 8px 12px; color: #344054; }
header.navbar .dropdown-menu > li > a:hover { background: var(--pb-accent-soft); color: var(--pb-accent); }
header.navbar .dropdown-menu .glyphicon, header.navbar .dropdown-menu .fa { width: 18px; color: var(--pb-muted); }
/* Выпадающие меню Bootstrap (списки выбора, меню пользователя, меню автотекстов): у Bootstrap свои 14px/12px — тоже ×1.25 */
.dropdown-menu { font-size: 17.5px; }
.dropdown-header { font-size: 15px; }

/* ---------- Страница и карточка ---------- */
main { width: auto !important; max-width: 1180px; margin: 0 auto !important; padding: 24px 16px 48px; white-space: normal !important; }
main > div, main > form > div, div.fo-round-bg {
  background-color: rgba(255, 255, 255, .93) !important; /* текстура карточки (Formu Fons) — из HandableStyle.php */
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--pb-radius) !important;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .14), 0 1px 3px rgba(16, 24, 40, .08);
  margin: 0 0 20px !important;
  padding: 20px 24px 24px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
}
main table { border-collapse: separate; border-spacing: 0; }
main table:not(.table) { max-width: 100%; }
/* Страницы без <!DOCTYPE> (quirks mode): таблицы не наследуют шрифт и берут 16px браузера */
main table { font-size: inherit; }
.mod-tab { font-size: 17.5px !important; }

/* ---------- Поля форм ---------- */
.t-detail { padding: 6px 16px 10px 0 !important; vertical-align: top; }
.t-detail > strong, .t-detail strong:first-child, .block-title strong, .form-group label {
  display: inline-block; font-size: 16.25px; font-weight: 600; color: #000; margin-bottom: 4px;
}
.block-title { margin-top: 6px; }
/* Подписи полей — чёрные везде (профиль, администрирование); данные в таблицах результатов и текст кнопок — как были */
main strong { color: #000; }
main td.t-content strong, main button strong, main .ColorButton strong { color: inherit; }
main input[type=text], main input[type=number], main input[type=date], main input[type=password], main input[type=email],
main select:not(.selectpicker):not([class*=ATextSelect]), main textarea, .fo-rounded-login .form-control {
  font-family: var(--pb-font);
  font-size: 17.5px;
  color: var(--pb-text);
  background: #fff;
  border: 1px solid var(--pb-border-strong) !important;
  border-radius: var(--pb-radius-sm) !important;
  padding: 7px 10px !important;
  min-height: 36px;
  box-shadow: none !important;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
main input:focus, main select:focus, main textarea:focus, .fo-rounded-login .form-control:focus {
  border-color: var(--pb-accent) !important;
  box-shadow: 0 0 0 3px rgba(36, 99, 201, .18) !important;
}
main input::placeholder, main textarea::placeholder { color: #98a2b3; }
main input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--pb-accent); vertical-align: -3px; margin: 0 4px 0 0; }
main .small-box { width: 110px; }
main .large-box { width: 200px; }
main .xl-box { width: 260px; }
main .xxl-box { width: 420px; }
main textarea, main textarea.medium-text { width: 100%; max-width: 760px; min-height: 120px; line-height: 1.5; resize: vertical; display: block; }
main input[type=color] { padding: 2px !important; width: 48px; min-height: 36px; }
/* Шрифт крупнее, а поля прежней высоты: 36px, текст по центру */
main input[type=text], main input[type=number], main input[type=date], main input[type=password], main input[type=email],
main select:not(.selectpicker):not([class*=ATextSelect]), .fo-rounded-login .form-control { height: 36px; padding-top: 0 !important; padding-bottom: 0 !important; }

/* bootstrap-select — как обычное поле */
main .bootstrap-select > .btn, main .bootstrap-select > .dropdown-toggle {
  background: #fff !important; background-image: none !important;
  border: 1px solid var(--pb-border-strong) !important; border-radius: var(--pb-radius-sm) !important;
  box-shadow: none !important; text-shadow: none !important; color: var(--pb-text) !important;
  min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; font-size: 17.5px;
}
main .bootstrap-select.open > .btn, main .bootstrap-select > .btn:focus { border-color: var(--pb-accent) !important; box-shadow: 0 0 0 3px rgba(36, 99, 201, .18) !important; outline: none !important; }
main .bootstrap-select .dropdown-menu { border-radius: var(--pb-radius-sm); border-color: var(--pb-border); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
main .bootstrap-select .dropdown-menu li.selected a, main .bootstrap-select .dropdown-menu li a:hover { background: var(--pb-accent-soft); color: var(--pb-accent); }
main .bootstrap-select .dropdown-header { color: var(--pb-muted); font-weight: 600; text-transform: uppercase; font-size: 13.75px; letter-spacing: .04em; }

/* ---------- Кнопки ---------- */
.justButton.ColorButton, .ColorButton {
  font-family: var(--pb-font);
  background: #fff !important;
  color: var(--pb-accent) !important;
  border: 1px solid var(--pb-border-strong) !important;
  border-radius: var(--pb-radius-sm) !important;
  padding: 0 11px !important; /* при крупном шрифте ширина кнопок почти прежняя */
  min-height: 36px;
  height: 36px !important;
  line-height: 1.2;
  width: auto;
  font-size: 17.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.justButton.ColorButton:hover, .ColorButton:hover { background: var(--pb-accent-soft) !important; border-color: var(--pb-accent) !important; color: var(--pb-accent-hover) !important; }
.justButton.ColorButton:focus-visible { outline: 3px solid rgba(36, 99, 201, .3); outline-offset: 1px; }
/* Главное действие страницы */
#save.ColorButton, #create.ColorButton, #update.ColorButton, button[name=logmein].ColorButton {
  background: var(--pb-accent) !important; color: #fff !important; border-color: var(--pb-accent) !important;
}
#save.ColorButton:hover, #create.ColorButton:hover, #update.ColorButton:hover, button[name=logmein].ColorButton:hover { background: var(--pb-accent-hover) !important; border-color: var(--pb-accent-hover) !important; color: #fff !important; }
.ColorButton .glyphicon { margin-left: 4px; font-size: 15px; }
.btn-default.btn-xs { border-radius: 6px; border-color: var(--pb-border-strong); background: #fff; background-image: none; text-shadow: none; padding: 3px 8px; }
.btn-default.btn-xs:hover { background: var(--pb-accent-soft); border-color: var(--pb-accent); color: var(--pb-accent); }
.medium-space-left { margin-left: 8px !important; }
/* Dzēst protokolu: красная и отдельно от Saglabāt/Drukāt, чтобы не нажать случайно */
#delete.ColorButton { margin-left: 40px; color: var(--pb-danger) !important; border-color: rgba(200, 55, 45, .45) !important; }
#delete.ColorButton:hover { background: var(--pb-danger) !important; border-color: var(--pb-danger) !important; color: #fff !important; }
#delete.ColorButton:focus-visible { outline-color: rgba(200, 55, 45, .3); }
.small-space-left { margin-left: 6px !important; }

/* ---------- Таблицы результатов ---------- */
main table.sortable, main table:has(> tbody > tr > td.t-head), main table:has(> tr > td.t-head) {
  width: 100%; border: 1px solid var(--pb-border); border-radius: var(--pb-radius-sm); overflow: hidden; margin-top: 12px;
}
td.t-head, th.t-head {
  background: #f7f8fa !important; color: var(--pb-muted) !important;
  font-size: 15px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid var(--pb-border) !important; cursor: pointer;
}
td.t-content {
  padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid #eef0f4 !important;
  font-size: 17.5px !important; color: var(--pb-text);
}
tr.record { cursor: pointer; transition: filter .1s; }
tr.record:hover { filter: brightness(.96); }
.table > tbody > tr > th, .table > tbody > tr > td { border-top-color: #eef0f4; vertical-align: middle; }
.table > tbody > tr > th { color: var(--pb-muted); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--pb-border); }

/* ---------- Вкладки ---------- */
.nav-tabs { border-bottom: 1px solid var(--pb-border); margin-bottom: 16px; }
.nav-tabs > li > a { color: var(--pb-muted); border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0; font-weight: 600; padding: 10px 14px; margin-right: 4px; background: none !important; }
.nav-tabs > li > a:hover { color: var(--pb-text); border-bottom-color: var(--pb-border-strong) !important; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: var(--pb-accent); border-bottom-color: var(--pb-accent) !important; background: none !important; }
hr { border-top-color: var(--pb-border) !important; }

/* ---------- Главная ---------- */
.pb-home h2 { margin-bottom: 4px; }
.pb-home .pb-sub { color: var(--pb-muted); margin-bottom: 18px; }
.pb-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pb-action { display: block; border: 1px solid var(--pb-border); border-radius: var(--pb-radius); padding: 11px 16px; color: var(--pb-text) !important; text-decoration: none !important; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pb-action:hover { border-color: var(--pb-accent); box-shadow: 0 4px 14px rgba(36, 99, 201, .12); transform: translateY(-1px); }
.pb-action .glyphicon { color: var(--pb-accent); background: var(--pb-accent-soft); border-radius: 8px; padding: 8px; font-size: 20px; margin-bottom: 6px; }
.pb-action b { display: block; font-size: 18.75px; margin-bottom: 2px; }
.pb-action span.pb-hint { color: var(--pb-muted); font-size: 16.25px; }
.pb-recent table { width: 100%; }
.pb-empty { color: var(--pb-muted); padding: 14px 0; }

/* ---------- Вход ---------- */
.fo-rounded-login {
  background: rgba(255, 255, 255, .94) !important; border: 1px solid rgba(255, 255, 255, .6); border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(16, 24, 40, .22); max-width: 380px !important; width: calc(100% - 32px) !important;
  margin: 12vh auto 0 !important; padding: 28px 28px 18px !important;
}
.fo-rounded-login h1 { font-size: 30px !important; font-weight: 700 !important; margin: 0 0 4px; }
.fo-rounded-login .pb-login-sub { color: var(--pb-muted); text-align: center; margin-bottom: 20px; font-size: 16.25px; }
.fo-rounded-login .form-control { height: 40px; width: 100%; }
.fo-rounded-login button[name=logmein] { min-height: 40px; margin-top: 4px; }
.fo-rounded-login .error, #logmeError { color: var(--pb-danger); font-size: 16.25px; }

/* ---------- Узкие экраны ---------- */
@media (max-width: 760px) {
  body { padding-top: 56px; }
  main { padding: 12px 12px 32px; }
  main > div, main > form > div, div.fo-round-bg { padding: 16px !important; overflow-x: auto; }
  #mnav { padding: 0 8px; overflow-x: auto; }
  #HomePage .pb-brand { display: none; }
  header.navbar .navbar-nav { margin: 0; }
  header.navbar .navbar-nav > li { float: left; }
  header.navbar .navbar-nav > li > a { padding: 18px 10px; }
  #profile-button .pb-user-name { display: none; }
  main .xl-box, main .large-box, main .xxl-box { width: 100%; max-width: 100%; }
  .t-detail { display: block; padding-right: 0 !important; }
  main table:not(.table) tr { display: block; }
  td.t-head, td.t-content { display: table-cell; }
  main table.sortable tr, main table:has(td.t-head) tr { display: table-row; }
  .pb-actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- Правки после просмотра ---------- */
/* Атрибут hidden сильнее правил display выше (скрытые метки автотекстов и т.п.) */
[hidden] { display: none !important; }

/* Заголовок страницы */
main > div > h3:first-child, main > div > h2:first-child, .fo-round-bg > h3:first-child, #search-filter > div > h3:first-child {
  font-size: 27.5px; font-weight: 650; margin: 0 0 16px;
}

/* Поле текста протокола — во всю ширину колонки формы */
main textarea.medium-text, main textarea { width: 760px; max-width: 100%; }
td.t-detail:has(> textarea) { width: 100%; }

/* Блок автоформ над полями протокола */
#auto_form { margin: 6px 0 4px; background: #fafbfc; border: 1px solid var(--pb-border); border-radius: var(--pb-radius-sm); }
#auto_form td { padding: 8px 6px; vertical-align: middle; }
#auto_form td table td { padding: 3px; }
#auto_form .justButton.ColorButton { width: auto !important; height: 36px !important; padding: 0 7px !important; margin: 0 !important; }
#auto_form input[type=text], #auto_form select { width: 220px !important; }

/* Поиск протоколов и пациентов: фильтры + таблица = одна карточка */
main > #search-filter { height: auto !important; margin-bottom: 0 !important; border-bottom: 0; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; padding-bottom: 0 !important; }
#search-filter > div { margin: 0 !important; padding: 0 !important; width: auto !important; background: none !important; }
main > #search-block { margin-top: 0 !important; border-top: 0; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; padding-top: 0 !important; }
#result-title { width: 100% !important; margin-top: 16px; border: 1px solid var(--pb-border) !important; border-bottom: 0 !important; border-radius: var(--pb-radius-sm) var(--pb-radius-sm) 0 0; overflow: hidden; }
#search-result { margin-top: 0 !important; border: 1px solid var(--pb-border) !important; border-top: 0 !important; border-radius: 0 0 var(--pb-radius-sm) var(--pb-radius-sm); overflow: hidden; }
#search-result td.t-content { font-weight: 500; }
#search-result tbody:empty::after { content: 'Nav atrastu ierakstu'; display: block; padding: 14px 12px; color: var(--pb-muted); }

@media (max-width: 760px) {
  /* Формы: колонка во всю ширину */
  main table:not(.table):not(.sortable):not(#result-title):not(#search-result) { width: 100%; }
  main table:not(.table):not(.sortable):not(#result-title):not(#search-result) > tbody > tr { display: block; }
  main td.t-detail { display: block; width: 100% !important; }
  main td.t-detail input[type=text], main td.t-detail input[type=number], main td.t-detail input[type=date], main td.t-detail textarea { width: 100% !important; max-width: 100%; }
  #auto_form, #auto_form table { width: 100%; }
  /* Поиск протоколов: без колонки «Personas kods» (имя и фамилия видны) */
  #result-title td:nth-child(5), #search-result tr > td:nth-child(7) { display: none !important; }
  td.t-head { font-size: 13.75px !important; padding: 8px 6px !important; }
  td.t-content { font-size: 16.25px !important; padding: 8px 6px !important; }
  .pb-actions { grid-template-columns: 1fr; }
  .pb-action { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
  .pb-action .glyphicon { margin: 0; }
}

/* Шапка и строки поиска — две таблицы: одинаковая раскладка колонок по процентам */
#result-title, #search-result { table-layout: fixed; }
#pb-editor { overflow-x: auto; }

/* Профиль: заголовок панели настроек */
#Config h1, #Config h2 { font-size: 22.5px; font-weight: 650; margin: 4px 0 14px; }

@media (max-width: 760px) {
  /* Поиск: шапка и строки — разные таблицы, на узком экране шапку не показываем (тип в строке выделен) */
  #result-title { display: none !important; }
  #search-result { border-top: 1px solid var(--pb-border) !important; border-radius: var(--pb-radius-sm); margin-top: 12px !important; }
  #search-result { table-layout: auto; }
  #search-result td { width: auto !important; overflow-wrap: normal; word-break: normal; }
}

/* Поиск: шапка таблицы прилипает под шапкой сайта при прокрутке результатов */
main > #search-block { overflow: visible !important; }
#search-block > #result-title {
  position: sticky !important; top: 56px; z-index: 5;
  margin-top: 0 !important; background: #f7f8fa;
  box-shadow: 0 1px 0 var(--pb-border), 0 4px 8px -6px rgba(16, 24, 40, .25);
}
main > #search-filter { padding-bottom: 16px !important; }

/* Профиль: заголовки панелей и форма смены пароля */
.tab-pane > h1 { font-size: 22.5px; font-weight: 650; margin: 4px 0 14px; letter-spacing: -.01em; }
.pb-password-form label { font-size: 16.25px; font-weight: 600; color: #000; margin-bottom: 4px; }
.pb-password-form .xl-box { width: 320px; }
#change-pass-btn.ColorButton { background: var(--pb-accent) !important; color: #fff !important; border-color: var(--pb-accent) !important; margin-top: 4px; }
#change-pass-btn.ColorButton:hover { background: var(--pb-accent-hover) !important; }

/* Вкладки: без рамки фокуса после щелчка мышью; с клавиатуры — видимая подсветка */
.nav-tabs > li > a:focus { outline: none !important; box-shadow: none !important; }
.nav-tabs > li > a:focus-visible { outline: 2px solid rgba(36, 99, 201, .4) !important; outline-offset: -2px; border-radius: 6px 6px 0 0; }

/* Профиль → Iestatījumi */
.pb-seg { display: inline-flex; gap: 4px; padding: 4px; background: rgba(240, 242, 246, .9); border: 1px solid var(--pb-border); border-radius: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pb-seg-btn { border: 0; background: transparent; color: #475467; font-weight: 600; font-size: 17.5px; height: 36px; padding: 0 14px; border-radius: 7px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.pb-seg-btn .glyphicon { margin-right: 4px; font-size: 15px; color: var(--pb-muted); }
.pb-seg-btn:hover { color: var(--pb-text); background: rgba(255, 255, 255, .7); }
.pb-seg-btn.active { background: #fff; color: var(--pb-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.pb-seg-btn.active .glyphicon { color: var(--pb-accent); }
.pb-seg-btn:focus { outline: none; }
.pb-seg-btn:focus-visible { box-shadow: 0 0 0 3px rgba(36, 99, 201, .25); }
#style-panel { min-height: 40px; }
.pb-panel-title { font-size: 20px; font-weight: 650; margin: 0 0 4px; }
.pb-hint { color: var(--pb-muted); font-size: 16.25px; margin: 4px 0 12px; }
.pb-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 16px 28px; margin-top: 10px; }
.pb-setting label { display: block; font-size: 16.25px; font-weight: 600; color: #000; margin-bottom: 4px; }
.pb-setting select { width: 100%; }
.pb-bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 820px; }
.pb-bg-tile { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); transition: transform .15s, box-shadow .15s, border-color .15s; text-align: left; }
.pb-bg-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pb-bg-grid-form .pb-bg-tile img { aspect-ratio: 1 / 1; }
.pb-bg-tile span { display: block; padding: 6px 10px; font-size: 15px; color: var(--pb-muted); font-weight: 600; }
.pb-bg-tile:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 24, 40, .16); }
.pb-bg-tile.selected { border-color: var(--pb-accent); }
.pb-bg-tile.selected::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--pb-accent); color: #fff; font-size: 17.5px; line-height: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.pb-bg-tile.selected span { color: var(--pb-accent); }
#aquire-changes.ColorButton { margin-top: 18px; background: var(--pb-accent) !important; color: #fff !important; border-color: var(--pb-accent) !important; }
#aquire-changes.ColorButton:hover { background: var(--pb-accent-hover) !important; }

/* Вкладки: подсветка с клавиатуры — фоном, без рамки */
.nav-tabs > li > a:focus-visible { outline: none !important; background: rgba(36, 99, 201, .08) !important; border-radius: 6px 6px 0 0; }

/* Вход: отступ под заголовком */
.fo-rounded-login h1 { margin-bottom: 22px !important; }

/* Список автотекстов над полем (режим «Pamata») — в стиле остальных полей, компактнее */
main select.ATextSelect {
  font-family: var(--pb-font); font-size: 16.25px; color: var(--pb-text); background: #fff;
  border: 1px solid var(--pb-border-strong) !important; border-radius: var(--pb-radius-sm) !important;
  padding: 4px 8px !important; min-height: 30px; min-width: 220px; margin: 0 0 4px 6px; box-shadow: none !important;
}
main select.ATextSelect:focus { border-color: var(--pb-accent) !important; box-shadow: 0 0 0 3px rgba(36, 99, 201, .18) !important; outline: none; }
.t-detail strong#att { margin-left: 16px; color: var(--pb-muted); font-weight: 600; }
