.kraken-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #7367f0;
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid.compact { gap: .75rem; }
.site-card { margin-bottom: 1rem; }
.site-head { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.check { flex-direction: row !important; align-items: center; gap: .5rem; }
.checks { display: flex; flex-direction: column; gap: .35rem; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { padding: .6rem 0; border-bottom: 1px solid var(--bs-border-color); }
.kv div { margin: .4rem 0; }
.kv span { display: inline-block; width: 88px; color: var(--bs-secondary-color); font-size: .8rem; }
.clients tr.tier-a { background: rgba(255, 76, 81, .06); }
.clients tr.tier-b { background: rgba(255, 159, 67, .08); }
.clients tr.tier-c { background: rgba(0, 207, 232, .08); }
.clients tr.tier-d { background: rgba(40, 199, 111, .08); }
.plus { background: #7367f0; color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; margin-left: 6px; }
.mark { border: 1px solid var(--bs-border-color); background: #fff; border-radius: 999px; padding: 4px 10px; }
.mark.ok { background: #28c76f; color: #fff; border-color: #28c76f; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .35rem .85rem; color: inherit; text-decoration: none; white-space: nowrap; }
.chip.on { background: #7367f0; color: #fff; border-color: #7367f0; }
.layout-navbar {
  height: auto !important;
  min-height: 3.875rem;
  overflow: visible !important;
}
#layout-navbar .navbar-nav-right,
#navbar-collapse {
  overflow: visible !important;
}
.form-control-color { width: 3rem; height: 2.4rem; padding: .2rem; cursor: pointer; }
.row.gap, .row.wrap { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.panel, fieldset {
  background: var(--bs-paper-bg, #fff);
  border: 1px solid var(--bs-border-color, #e6e6e8);
  border-radius: .5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.wide { background: var(--bs-paper-bg, #fff); border-radius: .5rem; overflow: hidden; }
.btn.primary { background: #7367f0; color: #fff; border-color: #7367f0; }
.btn.ghost { background: transparent; }
@media (max-width: 991px) { .form-grid { grid-template-columns: 1fr; } }

/* Версия для слабовидящих */
html.ui-a11y {
  font-size: 125%;
}
html.ui-a11y body {
  background: #fff !important;
  color: #000 !important;
}
html.ui-a11y .bg-menu-theme,
html.ui-a11y .bg-navbar-theme,
html.ui-a11y .bg-footer-theme,
html.ui-a11y .card,
html.ui-a11y .layout-page,
html.ui-a11y .content-wrapper,
html.ui-a11y .authentication-bg {
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}
html.ui-a11y a,
html.ui-a11y .menu-link,
html.ui-a11y .nav-link {
  color: #000 !important;
  text-decoration: underline;
}
html.ui-a11y .btn,
html.ui-a11y .form-control,
html.ui-a11y .form-select {
  font-size: 1.1rem !important;
  border: 2px solid #000 !important;
}
html.ui-a11y .btn-primary {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
html.ui-a11y .table > :not(caption) > * > * {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}
html.ui-a11y .text-body-secondary,
html.ui-a11y .text-muted {
  color: #222 !important;
}

/* Client card tabs: Vuexy badges sit on the label; keep count beside the text. */
.nav.nav-pills .nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.nav.nav-pills .nav-link .badge {
  position: static !important;
  transform: none !important;
  top: auto !important;
  inset: auto !important;
  margin: 0;
}

#kraken-toast-host {
  position: fixed;
  z-index: 1090;
  top: 1rem;
  inset-inline-end: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
#kraken-toast-host .alert {
  pointer-events: auto;
  margin: 0;
  box-shadow: 0 .25rem 1rem rgba(47, 43, 61, .16);
}

.docus-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  background: var(--bs-paper-bg, #fff);
  padding: .85rem 0 .4rem;
  margin-top: 1rem;
  border-top: 1px solid var(--bs-border-color, #e6e6e8);
  box-shadow: 0 -12px 20px rgba(47, 43, 61, .06);
}
.docus-flash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 199, 111, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.docus-flash.is-err {
  background: rgba(255, 76, 81, .58);
}
.docus-flash.is-on {
  opacity: 1;
}
.docus-flash-text {
  font-size: clamp(2rem, 7vw, 4.75rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  max-width: 70vw;
  line-height: 1.15;
  text-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, .22);
}
#global-search-results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + .25rem);
  z-index: 1090;
  max-height: 22rem;
  overflow: auto;
}
html.docus-auth,
html.docus-auth body {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}
html.docus-auth .authentication-wrapper,
html.docus-auth .authentication-wrapper.authentication-cover,
html.docus-auth .authentication-inner,
html.docus-auth .authentication-inner.row {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
}
html.docus-auth .authentication-inner > [class*="col-"] {
  min-height: 100vh;
  min-height: 100dvh;
}

#clients-filter,
#clients-card,
#clients-card .card-header {
  overflow: visible !important;
  position: relative;
  z-index: 4;
}
#clients-filter {
  z-index: 6;
}
.docus-gear-menu {
  z-index: 1080 !important;
}
#clients-filter .chip {
  cursor: pointer;
  border: 0;
  background: #fff;
}
#clients-filter .chip.on {
  background: #7367f0;
  color: #fff;
}
#clients-table thead th {
  white-space: nowrap;
}
#clients-table thead th.clients-th-sort {
  cursor: pointer;
  user-select: none;
}
#clients-table thead th.clients-th-sort .icon-base {
  font-size: .95rem;
  margin-inline-start: .15rem;
  opacity: .45;
  vertical-align: -2px;
}
#clients-table thead th.clients-th-sort.is-sorted,
#clients-table thead th.clients-th-sort.is-sorted .icon-base {
  color: var(--bs-primary);
  opacity: 1;
}
.docus-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1085;
}
.docus-sheet.is-open {
  display: block;
}
.docus-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 43, 61, .28);
}
.docus-sheet-panel {
  position: absolute;
  top: 5.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--bs-paper-bg, #fff);
  border-radius: .75rem;
  box-shadow: 0 .75rem 2.5rem rgba(47, 43, 61, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 1200px) {
  .docus-sheet-panel {
    left: calc(16.25rem + 1.5rem);
  }
  html.layout-menu-collapsed .docus-sheet-panel {
    left: 6rem;
  }
}
.docus-sheet-panel > form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.docus-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.docus-sheet-head h5 {
  margin: 0;
}
.docus-sheet-body {
  overflow: auto;
  padding: 1.25rem;
  flex: 1 1 auto;
}
.docus-sheet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
}
@media (min-width: 768px) {
  .docus-sheet-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.docus-sheet-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--bs-border-color);
}
.accordion-button .badge {
  margin-left: .35rem;
}

