/* App-specific small utilities */
.page-title{
  font-weight: 700;
  letter-spacing: .02em;
}
.kpi{
  display:flex;
  align-items:flex-end;
  gap: 10px;
}
.kpi .value{
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}
.kpi .label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(31,35,33,.6);
}

/* Компактный блок лояльности на дашборде (правая колонка) */
.dash-loyalty-card .loyalty-status-badge { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
.dash-loyalty-card .loyalty-progress-track { height: 14px; }
.dash-loyalty-card .loyalty-progress-badge { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
.dash-loyalty-card .dash-loyalty-company { margin-bottom: 0.5rem; }
.dash-loyalty-card .dash-loyalty-company .form-select { font-size: 0.8rem; padding: 0.25rem 0.5rem; min-height: auto; }
.dash-loyalty-card #dashLoyaltyContent { font-size: 0.875rem; }

.news-item{
  padding: 14px 16px;
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  background: #fff;
}
.news-item__layout{
  display: flex;
  gap: 12px;
  align-items: center;
}
.news-item__media{
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rh-border);
  background: var(--rh-sand-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-item__media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-item__content{
  min-width: 0;
  flex: 1 1 auto;
}
.news-item + .news-item{margin-top: 12px;}
.news-item .title{font-weight: 700;}
.news-item .meta{font-size: 12px; color: rgba(31,35,33,.55);}
.news-item .excerpt{margin-top: 6px; color: rgba(31,35,33,.8);}

@media (max-width: 767.98px) {
  .news-item__layout {
    flex-direction: column;
    align-items: stretch;
  }
  .news-item__media {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 200px;
    align-self: stretch;
  }
}

.chessboard{
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  border-radius: var(--rh-radius);
  overflow:hidden;
  border:1px solid var(--rh-border);
  box-shadow: var(--rh-shadow-sm);
}
.chessboard .cell{
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  user-select:none;
}
.chessboard .cell.light{background: #fff;}
.chessboard .cell.dark{background: var(--rh-sand-200);}

/* ==== TOASTR FIX ==== */

#toast-container {
  z-index: 999999 !important;
}

#toast-container > div {
  opacity: 1 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
  border-radius: 12px !important;
  padding: 16px 18px 16px 50px !important;
  font-size: 14px;
  font-weight: 500;
}

/* Цвет текста */
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-info,
#toast-container > .toast-warning {
  color: #fff !important;
}

/* Success */
#toast-container > .toast-success {
  background-color: #14503d !important;
}

/* Error */
#toast-container > .toast-error {
  background-color: #b02a37 !important;
}

/* Info */
#toast-container > .toast-info {
  background-color: #0f3b2e !important;
}

/* Warning */
#toast-container > .toast-warning {
  background-color: #d6c2af !important;
  color: #1f2321 !important;
}

.toast {
  background-image: none !important;
}

/* Bootstrap modal z-index fix */
.modal { z-index: 955 !important; }
.modal-backdrop { z-index: 950 !important; }

/* если есть fixed/sticky шапка/сайдбар с большим z-index */
.lk-topbar, .lk-sidebar { z-index: 940; }

/* иногда помогает, если у контейнеров есть transform/filter */
.lk-shell, .lk-content, .lk-main { transform: none; filter: none; }