*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body { margin: 0; }

:root {
  --sidebar-width: 260px;
  --topbar-height: 64px;

  --bg: #0b1220;
  --panel: #1a1e2e;
  --sidebar: #1a1e2e;
  --sidebar-2: #1a1e2e;

  --border: rgba(255,255,255,.06);
  --muted: rgba(255,255,255,.55);
  --text: rgba(255,255,255,.88);

  --accent: #6d5efc;
  --accent-soft: rgba(109,94,252,.18);
}

/* если хочешь переключать тему через класс на body */
.b-class { --bg: #0b1220; }

body{
  /* background: radial-gradient(1200px 600px at 20% 0%, rgba(109,94,252,.10), transparent 60%),
              radial-gradient(900px 500px at 70% 10%, rgba(59,130,246,.08), transparent 55%),
              var(--bg); */
  color: var(--text);
  background: var(--bg) !important;
}

/* TOPBAR: на десктопе только справа */
.topbar{
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  z-index: 1040;

  background: linear-gradient(180deg, rgba(26,30,46,.95) 0%, rgba(26,30,46,.85) 100%);
  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.topbar-pill{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* DROPDOWN (принудительно тёмный) */
.dropdown-menu-darkish{
  background: rgba(26,30,46,.96) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.45) !important;
  padding: 8px !important;

  --bs-dropdown-bg: rgba(26,30,46,.96);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-link-color: var(--text);
  --bs-dropdown-link-hover-bg: rgba(255,255,255,.06);
  --bs-dropdown-link-hover-color: var(--text);
  --bs-dropdown-divider-bg: var(--border);
}

/* =====================
   Tickets / Requests
   ===================== */
.tkt-page{ padding: 4px 2px 20px; }
.tkt-h1{ margin: 0; font-size: 28px; font-weight: 700; }

.tkt-filters{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.tkt-filter-wide{ grid-column: 1 / -1; }
.tkt-filter-label{ font-size: 12px; opacity: .75; margin-bottom: 6px; }

.tkt-select, .tkt-input, .tkt-textarea, .tkt-file{
  background: rgba(255,255,255,.02) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
}
.tkt-select:focus, .tkt-input:focus, .tkt-textarea:focus, .tkt-file:focus{
  box-shadow: 0 0 0 .2rem rgba(59,130,246,.18) !important;
  border-color: rgba(59,130,246,.55) !important;
}
.tkt-input::placeholder, .tkt-textarea::placeholder{ color: rgba(255,255,255,.35) !important; }

.tkt-list{ display:flex; flex-direction:column; gap:14px; }

.tkt-card{
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
}
.tkt-card-top{ padding: 14px 16px 10px; }
.tkt-title{ font-size: 20px; font-weight: 700; margin-top: 8px; }

.tkt-card-body{ padding: 0 16px 14px; }
.tkt-card-foot{
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display:flex;
  flex-wrap:wrap;
  gap: 10px 18px;
  align-items:center;
  font-size: 12px;
  opacity: .9;
}
.tkt-foot-right{ margin-left:auto; display:flex; gap:14px; flex-wrap:wrap; }

.tkt-badges{ display:flex; gap:8px; flex-wrap:wrap; }
.tkt-badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.tkt-badge-type{ background: rgba(109,94,252,.18); border-color: rgba(109,94,252,.35); }
.tkt-badge-new{ background: rgba(255,255,255,.04); }
.tkt-badge-ok{ background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.35); }
.tkt-badge-bad{ background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.35); }

.tkt-field{ margin-top: 10px; }
.tkt-field-label{ font-size: 12px; opacity: .75; margin-bottom: 6px; }
.tkt-field-value{ white-space: pre-wrap; }

.tkt-muted{ opacity: .65; }
.tkt-empty{
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 18px;
  opacity: .75;
}

.tkt-admin{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tkt-admin-text{ white-space: pre-wrap; }

.tkt-btn{ border-radius: 14px !important; }
.tkt-btn-decline{ border-color: rgba(255,255,255,.22) !important; }

.tkt-modal{ background: rgba(26,30,46,.98) !important; border: 1px solid var(--border) !important; border-radius: 18px !important; }
.tkt-modal-header{ border-bottom: 1px solid var(--border) !important; }
.tkt-modal-footer{ border-top: 1px solid var(--border) !important; }
.tkt-label{ opacity: .85; }

.tkt-info{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.tkt-info-warn{
  background: rgba(255, 193, 7, .10);
  border-color: rgba(255, 193, 7, .25);
  color: rgba(255,255,255,.90);
}

.tkt-link{ color: rgba(59,130,246,.95); text-decoration: none; }
.tkt-link:hover{ text-decoration: underline; }

@media (max-width: 992px){
  .tkt-filters{ grid-template-columns: 1fr; }
  .tkt-filter-wide{ grid-column: auto; }
  .tkt-foot-right{ margin-left: 0; }
}

.dropdown-menu-darkish .dropdown-item{
  color: var(--text) !important;
  border-radius: 10px;
  padding: 10px 12px;
}

.dropdown-menu-darkish .dropdown-item:hover,
.dropdown-menu-darkish .dropdown-item:focus{
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
}

.dropdown-menu-darkish .dropdown-divider{
  border-top-color: var(--border) !important;
  opacity: 1;
}

/* SIDEBAR (desktop) */
.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 1030;

  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  border-right: 1px solid var(--border);

  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}

/* CONTENT */
.content{
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

.content > .container-fluid{ padding-top: 18px; }

/* Загрузка фрагментов */
.app-loading{
  color: var(--muted);
  padding: 20px 4px;
}

/* Brand */
.sidebar-brand{
  width: 100%;
  display: block;
  text-align: center;

  font-size: 26px;
  line-height: 1.1;
  letter-spacing: .5px;

  margin: 0;
  padding: 2px 0 10px;
  text-decoration: none;
}

.sidebar-brand:hover{ opacity: .95; text-decoration: none; }

.sidebar hr{
  width: 100%;
  margin: 10px 0 14px;
  opacity: .25;
}

/* Nav + icons */
.sidebar .nav,
.offcanvas-sidebar .nav{
  width: 100%;
  padding: 0;
  margin: 0;
}

.nav-icon{
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: .9;
  flex: 0 0 auto;
}

.sidebar .nav-link,
.offcanvas-sidebar .nav-link{
  width: 100%;
  display: flex;
  align-items: center;

  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;

  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}

.sidebar .nav-link:hover,
.offcanvas-sidebar .nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.sidebar .nav-link.active,
.offcanvas-sidebar .nav-link.active{
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(109,94,252,.25);
}

/* Footer */
.app-footer{
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  border-top: 1px solid var(--border);
}

/* OFFCANVAS THEME */
.offcanvas-sidebar{
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: var(--text);
  border-right: 1px solid var(--border);
  width: var(--sidebar-width);
}

.offcanvas-sidebar .offcanvas-header{ border-bottom: 1px solid var(--border); }

/* Страница, которую подгружаем */
#app-content h1{
  margin: 0;
}

/* MOBILE: topbar на всю ширину, контент без margin-left */
@media (max-width: 991.98px){
  .topbar{
    left: 0;
    padding: 0 12px;
  }
  .content{ margin-left: 0; }
}

/* Встроенное подменю внутри sidebar/offcanvas */
.nav-submenu{
  margin-top: 6px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.nav-submenu .nav-link{
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.nav-submenu .nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
}

/* стрелочка справа у пункта-родителя */
.nav-caret{
  opacity: .7;
  transform: rotate(90deg);
  transition: transform .15s ease, opacity .15s ease;
}

/* когда раскрыто — поворачиваем стрелку вниз */
[aria-expanded="true"] .nav-caret{
  transform: rotate(270deg); /* "вниз" под твою › */
  opacity: .95;
}

/* ------------- Для страницы собеседований  */
.info-sobes-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(109,94,252,.22), rgba(109,94,252,.10));
  border: 1px solid rgba(109,94,252,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.info-sobes-btn:hover{
  background: linear-gradient(180deg, rgba(109,94,252,.28), rgba(109,94,252,.12));
}

.info-sobes-btn-plus{
  font-size: 18px;
  line-height: 1;
  opacity: .95;
}

/* -------------------- INFO (страница "Информация") -------------------- */
.info-page{
  width: 100%;
}

.info-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.info-head h1{ margin: 0; }

.info-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(109,94,252,.22), rgba(109,94,252,.10));
  border: 1px solid rgba(109,94,252,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.info-btn:hover{
  background: linear-gradient(180deg, rgba(109,94,252,.28), rgba(109,94,252,.12));
}

.info-btn-plus{
  font-size: 18px;
  line-height: 1;
  opacity: .95;
}

.cancel-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(53, 51, 71, 0.22), rgba(109,94,252,.10));
  border: 1px solid rgba(109,94,252,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.cancel-btn:hover{
  background: linear-gradient(180deg, rgba(62, 58, 97,.28), rgba(109,94,252,.12));
}

.cancel-btn-plus{
  font-size: 18px;
  line-height: 1;
  opacity: .95;
}

.info-panel{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

.info-panel-top{
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-panel-title{ font-weight: 700; }
.info-panel-meta{ color: var(--muted); font-size: 12px; }

.info-catbar{
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-catpill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.info-catpill:hover{ background: rgba(255,255,255,.04); }

.info-catpill.active{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.18);
}

.info-catpill-add{
  border-color: rgba(109,94,252,.35);
  background: rgba(109,94,252,.10);
}

.info-cat-actions{ display: inline-flex; align-items: center; }
.info-cat-edit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: rgba(200,200,255,.95);
  margin-left: 2px;
}
.info-catpill:hover .info-cat-edit{ background: rgba(109,94,252,.12); }
.info-cat-del{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: rgba(255,107,107,.95);
  margin-left: 2px;
}
.info-catpill:hover .info-cat-del{ background: rgba(255,107,107,.10); }

/* roles чекбоксы в модалке раздела */
.info-roles-box{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  padding: 10px;
}
.info-roles-hint{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.info-roles-list{
  max-height: 220px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.info-role-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.info-role-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,.18);
}

.info-empty{
  padding: 14px;
  color: var(--muted);
}

.info-thread{
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.info-thread:first-child{ border-top: 1px solid var(--border); }

.info-thread-head{
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-thread-toggle{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.info-thread-caret{ opacity: .7; transition: transform .15s ease; }
.info-thread.open .info-thread-caret{ transform: rotate(90deg); }

.info-thread-title{ font-weight: 700; }

.info-thread-sub{
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.info-thread-cat{ color: var(--muted); font-size: 12px; }
.info-thread-meta{ color: var(--muted); font-size: 12px; }

.info-thread-actions{ display: flex; gap: 8px; }

.info-ic-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-ic-btn:hover{ background: rgba(255,255,255,.04); }

.info-thread-body{
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.info-thread.open .info-thread-body{ display: block; }

.info-modal{
  background: rgb(26, 30, 46);
  border: 1px solid var(--border);
  border-radius: 18px;
  opacity: 100%;
}

.info-label{ color: var(--muted); font-size: 12px; }

.info-input{
  background: rgba(255,255,255,.02) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
}

.info-input:focus{
  box-shadow: 0 0 0 .2rem rgba(109,94,252,.18) !important;
  border-color: rgba(109,94,252,.35) !important;
}

.info-editor-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.iet-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 12px;
  padding: 6px 10px;
}

.iet-btn:hover{ background: rgba(255,255,255,.04); }

.iet-color{
  width: 40px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
}

.iet-select{
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 0 10px;
}

.info-editor{
  min-height: 220px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.12);
  outline: none;
}

.info-toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(26,30,46,.96);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 2000;
}

.info-toast.show{ opacity: 1; }

/* Dropdown в Bootstrap-модалке: поднимаем над слоями модалки */
.modal .dropdown-menu{
  z-index: 2000 !important;
}

/* На всякий: чтобы popper не "тух" по прозрачности/фону */
.modal .dropdown-menu-darkish{
  opacity: 1 !important;
}

/* Цвета пунктов + active (Bootstrap по умолчанию красит в синий) */
.modal .dropdown-menu-darkish .dropdown-item{
  color: var(--text) !important;
}

.modal .dropdown-menu-darkish .dropdown-item.active,
.modal .dropdown-menu-darkish .dropdown-item:active{
  background: rgba(109,94,252,.22) !important;
  color: var(--text) !important;
}

.table{
  --bs-table-bg: rgba(255,255,255,.02);
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: rgba(255,255,255,.04);
  --bs-table-hover-bg: rgba(255,255,255,.06);
}

.modal .dropdown-menu-darkish .dropdown-item{
  display: flex !important;
  align-items: center !important;
  width: 100% !important;

  padding: 10px 12px !important;
  border-radius: 10px !important;

  color: var(--text) !important;
  background: transparent !important;
  line-height: 1.2 !important;
  font-size: 14px !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 2) Hover/Focus аккуратный, и active — в палитре */
.modal .dropdown-menu-darkish .dropdown-item:hover,
.modal .dropdown-menu-darkish .dropdown-item:focus{
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
}

.modal .dropdown-menu-darkish .dropdown-item.active,
.modal .dropdown-menu-darkish .dropdown-item:active{
  background: rgba(109,94,252,.22) !important;
  color: var(--text) !important;
}
.modal .dropdown-menu-darkish{
  margin-top: 6px !important;
  padding: 8px !important;
  border-radius: 14px !important;
}
.modal .dropdown{ width: 100%; }
.modal #infoCategoryBtn{ width: 100%; }
.modal #infoCategoryMenu{ min-width: 100% !important; }

/* === Категория в модалке: размер как input, без подъёма вверх === */
.modal .info-cat-dd { width: 100%; }              /* wrapper */
.modal .info-cat-dd .dropdown-toggle{
  height: 42px !important;                        /* как у твоих input */
  padding: 10px 14px !important;
  border-radius: 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  line-height: 1 !important;
}

/* стрелку Bootstrap оставляем справа, но не даём ей сжимать текст */
.modal .info-cat-dd .dropdown-toggle::after{
  margin-left: 10px !important;
  flex: 0 0 auto !important;
}

/* текст внутри кнопки: одна строка + троеточие */
.modal .info-cat-dd .dropdown-toggle .dd-text{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* меню: ширина ровно как кнопка */
.modal .info-cat-dd .dropdown-menu{
  min-width: 100% !important;
  width: 100% !important;
  margin-top: 6px !important;
}

/* пункты меню: тоже в одну строку + ... */
.modal .info-cat-dd .dropdown-item{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.modal-header, .modal-footer{
  border: 0 !important;
  box-shadow: none !important;
}

.info-input::placeholder{
  color: var(--muted);
  opacity: 1;
}

.iet-btn.active{
  background: rgba(109,94,252,.18);
  border-color: rgba(109,94,252,.35);
}

/* ===================== SHOP ===================== */
.shop-page{padding:18px 10px;}
.shop-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px;}
.shop-title{margin:0;font-size:22px;font-weight:700;color:#fff;}
.shop-header-actions{display:flex;gap:10px;flex-wrap:wrap;}
.shop-btn{border-radius:12px;padding:8px 12px;}

.shop-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.shop-categories-label{font-size:12px;color:var(--muted);margin-bottom:6px;}
.shop-chips{display:flex;gap:8px;flex-wrap:wrap;}
.shop-chip{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#fff;border-radius:10px;padding:6px 10px;font-size:12px;}
.shop-chip.active{background:rgba(109,94,252,.18);border-color:rgba(109,94,252,.35);}

.shop-toolbar-right{display:flex;align-items:flex-end;gap:12px;}
.shop-sort .form-select{border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);color:#fff;}
.shop-sort .form-select option{color:#000;}

.shop-balance{margin:10px 0 16px 0;color:#fff;font-size:14px;}
.shop-balance-val{font-weight:800;font-size:18px;}

.shop-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
@media (max-width:1400px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:992px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:576px){.shop-grid{grid-template-columns:1fr;}}

.shop-card{
  position:relative;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
  overflow:hidden;

  /* было min-height:320px; */
  min-height: 260px;
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}
.shop-card-top{
  position:relative;
  padding:14px;
}
.shop-img-wrap{
  display:flex;
  align-items:center;
  justify-content:center;

  /* было height:140px; */
  height: 170px;
}
.shop-item-img{
  width: 160px;
  height: 205px;
  object-fit: contain;
  width: 100%;
}
.shop-card-body{
  padding: 12px 14px 14px;
  margin-top: auto; /* кнопка/текст уйдут вниз аккуратно */
}
.shop-item-name{color:#fff;font-weight:800;margin-bottom:2px; text-align: center;}
.shop-item-type{color:var(--muted);font-size:12px;margin-bottom:10px; text-align: center;}
.shop-price{color:#fff;font-weight:700; text-align: center;}
.shop-price-final{color:#9fe3ff;font-size:12px;margin-top:4px;margin-bottom:8px;}
.shop-buy{margin-top:12px;width:100%;border-radius:14px;background:rgba(0,160,255,.25);border:1px solid rgba(0,160,255,.35);color:#fff;padding:10px 12px;font-weight:700;}
.shop-buy.disabled{opacity:.55;}

.shop-admin-icons{position:absolute;top:10px;left:10px;display:flex;gap:8px;}
.shop-ic-btn{border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.15);color:#ff915d;border-radius:10px;padding:4px 8px;font-size:12px;line-height:1;}
.shop-ic-btn.danger{color:#ff6b6b;}

.shop-badge{position:absolute;right:14px;top:14px;background:rgba(255,80,80,.18);border:1px solid rgba(255,80,80,.35);color:#ff8f8f;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;}

.shop-modal{background:rgba(20,24,40,.98);border:1px solid rgba(255,255,255,.08);border-radius:18px;color:#fff;}
.shop-modal .form-control,.shop-modal .form-select{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);color:#fff;border-radius:12px;}
.shop-modal .form-control::placeholder{color:var(--muted);}
/* Fix: native <select> options may render with white background, while the select text is white. */
.shop-modal .form-select option{color:#000;}

/* Shop dropdown buttons (Bootstrap dropdown used as a "pretty select") */
.shop-dd-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.shop-dd-btn .dd-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dropdown-menu-darkish{background:rgba(20,24,40,.98);border:1px solid rgba(255,255,255,.08);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.45);}
.dropdown-menu-darkish .dropdown-item{color:#fff;border-radius:10px;}
.dropdown-menu-darkish .dropdown-item:hover{background:rgba(109,94,252,.22);}
.dropdown-menu-darkish .dropdown-item.active{background:rgba(109,94,252,.35);}

.shop-discounts-list{display:flex;flex-direction:column;gap:10px;}
.shop-disc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);}
.shop-disc-title{font-weight:800;}
.shop-disc-sub{color:var(--muted);font-size:12px;}
.shop-discount-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.shop-cat-check{display:flex;align-items:center;gap:8px;padding:10px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);}

/* ===================== AUTH (страница входа) ===================== */
/* ===================== AUTH (страница входа) ===================== */
.auth-body{
  font-family: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 18% 0%, rgba(109,94,252,.14), transparent 60%),
    radial-gradient(900px 520px at 82% 12%, rgba(59,130,246,.10), transparent 55%),
    var(--bg);
}

.auth-shell{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 14px;
}

.auth-card{
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: 0 26px 80px rgba(0,0,0,.55);
}

/* Left illustration */
.auth-ill{
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(255,255,255,.16), transparent 55%),
    radial-gradient(700px 420px at 70% 40%, rgba(109,94,252,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.auth-ill::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 35%),
    radial-gradient(280px 180px at 72% 82%, rgba(255,255,255,.06), transparent 70%);
  pointer-events: none;
}

.auth-ill-bubble,
.auth-ill-orbit,
.auth-ill-line,
.auth-ill-shape{
  will-change: transform;
}

.auth-ill-bubble{
  position: absolute;
  border-radius: 999px;
  filter: blur(.2px);
  opacity: .95;
  animation: authFloat 7.5s ease-in-out infinite;
}
.auth-ill-bubble.b1{
  width: 188px;
  height: 188px;
  left: 42px;
  bottom: 44px;
  background: rgba(255,140,80,.88);
  animation-delay: -1.2s;
}
.auth-ill-bubble.b2{
  width: 228px;
  height: 228px;
  left: 174px;
  top: 68px;
  background: rgba(109,94,252,.92);
  animation-duration: 8.6s;
}
.auth-ill-bubble.b3{
  width: 154px;
  height: 154px;
  right: 56px;
  bottom: 108px;
  background: rgba(255,210,90,.90);
  animation-duration: 7.1s;
  animation-delay: -2.2s;
}

.auth-ill-orbit{
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(2px);
}
.auth-ill-orbit.o1{
  width: 34px;
  height: 34px;
  top: 86px;
  right: 88px;
}
.auth-ill-orbit.o2{
  width: 18px;
  height: 18px;
  top: 142px;
  right: 142px;
}
.auth-ill-orbit.o3{
  width: 26px;
  height: 26px;
  left: 88px;
  top: 228px;
}

.auth-ill-line{
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: rgba(20,24,40,.78);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  transform-origin: center;
}
.auth-ill-line.l1{
  width: 108px;
  right: 118px;
  bottom: 136px;
  transform: rotate(22deg);
}
.auth-ill-line.l2{
  width: 82px;
  left: 94px;
  top: 126px;
  transform: rotate(-18deg);
}

.auth-ill-shape{
  position: absolute;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 24px 60px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.18);
  animation: authWobble 6.5s ease-in-out infinite;
}

.auth-ill-shape.s1{
  width: 130px;
  height: 130px;
  left: 126px;
  top: 186px;
  background: rgba(255,255,255,.88);
  animation-delay: -1s;
}
.auth-ill-shape.s2{
  width: 92px;
  height: 92px;
  left: 258px;
  top: 272px;
  background: rgba(20,24,40,.82);
  border-radius: 20px;
}
.auth-ill-shape.s3{
  width: 114px;
  height: 114px;
  right: 92px;
  top: 292px;
  background: rgba(255,255,255,.82);
  border-radius: 0 0 20px 20px / 0 0 34px 34px;
  animation-duration: 7.3s;
}

.auth-face{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.auth-face--light{
  gap: 10px;
}
.auth-face--tilt{
  transform: rotate(9deg);
}

.auth-eye{
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow:
    0 3px 10px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
}
.auth-face--light .auth-eye{
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.98);
}
.auth-face--dark .auth-eye{
  background: rgba(20,24,40,.98);
  box-shadow:
    0 3px 10px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

.auth-pupil{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(20,24,40,.92);
  transition: transform .08s linear;
}
.auth-face--dark .auth-pupil{
  background: rgba(255,255,255,.96);
}
.auth-face--light .auth-pupil{
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
}

.auth-ill-brand{
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(20,24,40,.32);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}
.auth-ill-logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(109,94,252,.35);
  border: 1px solid rgba(109,94,252,.45);
  font-weight: 900;
}
.auth-ill-text .t1{
  font-weight: 900;
  line-height: 1.05;
}
.auth-ill-text .t2{
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-top: 1px;
}

@keyframes authFloat{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,-10px,0); }
}
@keyframes authWobble{
  0%,100%{ transform: rotate(-1deg) translate3d(0,0,0); }
  50%{ transform: rotate(1.2deg) translate3d(0,-6px,0); }
}

/* Right side form */
.auth-form{
  background: rgba(20,24,40,.74);
  backdrop-filter: blur(10px);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-head{ margin-bottom: 16px; }
.auth-title{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .2px;
}
.auth-sub{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.auth-field{
  display: block;
  margin-top: 12px;
}
.auth-label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: .35px;
}

.auth-input{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.auth-input::placeholder{
  color: rgba(255,255,255,.45);
  font-weight: 700;
}
.auth-input:focus{
  box-shadow: 0 0 0 .22rem rgba(109,94,252,.20);
  border-color: rgba(109,94,252,.35);
}

.auth-pass{
  position: relative;
  display: block;
}
.auth-pass .auth-input{
  padding-right: 44px;
}
.auth-pass-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  cursor: pointer;
}
.auth-pass-toggle:hover{
  background: rgba(255,255,255,.04);
}
.auth-pass-toggle .eye{
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.70);
  position: relative;
}
.auth-pass-toggle .eye:after{
  content:"";
  position:absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.78);
}

.auth-btn{
  margin-top: 16px;
  height: 46px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(109,94,252,.40);
  background: linear-gradient(180deg, rgba(109,94,252,.34), rgba(109,94,252,.18));
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.auth-btn:hover{
  background: linear-gradient(180deg, rgba(109,94,252,.40), rgba(109,94,252,.20));
}
.auth-btn:disabled{
  opacity: .7;
  cursor: not-allowed;
}

.auth-btn-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.90);
  display: none;
  animation: authSpin .8s linear infinite;
}
.auth-btn.is-loading .auth-btn-spinner{
  display: inline-block;
}

@keyframes authSpin{
  to{ transform: rotate(360deg); }
}

.auth-error{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,107,107,.35);
  background: rgba(255,107,107,.10);
  color: rgba(255,170,170,.95);
  font-weight: 800;
  font-size: 13px;
}

.auth-help{
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px){
  .auth-card{
    grid-template-columns: 1fr;
  }
  .auth-ill{
    min-height: 340px;
  }
  .auth-ill-shape.s1{
    left: 78px;
    top: 156px;
    width: 108px;
    height: 108px;
  }
  .auth-ill-shape.s2{
    left: 176px;
    top: 214px;
    width: 78px;
    height: 78px;
  }
  .auth-ill-shape.s3{
    right: 46px;
    top: 204px;
    width: 96px;
    height: 96px;
  }
  .auth-form{
    padding: 22px 18px 18px;
  }
}

/* ===================== BONUSES ===================== */
.bonuses-page{ width:100%; }
.bonuses-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.bonuses-top .page-title{ margin:0; font-size:28px; font-weight:700; }
.bonuses-actions{ display:flex; gap:12px; flex-wrap:wrap; width:100%; justify-content:space-between; }
.bonuses-btn{ border-radius:14px; padding:12px 16px; min-width:240px; }
.bonuses-card{ background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:18px; padding:18px; }
.bonuses-card-title{ font-size:18px; font-weight:700; margin-bottom:12px; }
.bonuses-table-wrap{ overflow:auto; }
.bonuses-table{ margin:0; color:#fff; }
.bonuses-table thead th{ color:rgba(255,255,255,.55); font-weight:600; border-bottom:1px solid rgba(255,255,255,.08) !important; }
.bonuses-table tbody td{ border-color:rgba(255,255,255,.06) !important; }

/* ===== Discipline (Выговоры) ===== */
.ui-table-wrap{ overflow:auto; }
.ui-table{ margin:0; color:#fff; }
.ui-table thead th{ color:rgba(255,255,255,.55); font-weight:600; border-bottom:1px solid rgba(255,255,255,.08) !important; }
.ui-table tbody td{ border-color:rgba(255,255,255,.06) !important; }

.discipline-page{ width:100%; }
.discipline-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 1200px){ .discipline-grid{ grid-template-columns: 1fr; } }

.discipline-filters{ display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
@media (max-width: 992px){ .discipline-filters{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .discipline-filters{ grid-template-columns: 1fr; } }

.discipline-filter .form-label{ margin-bottom:6px; color:rgba(255,255,255,.6); }

.rep-action-btn{ display:inline-flex; align-items:center; gap:8px; }
.bonuses-muted{ color:rgba(255,255,255,.55); text-align:center; padding:18px !important; }
.bonuses-subtitle{ margin-top:6px; font-weight:700; color:rgba(255,255,255,.85); }
.bonuses-hint{ margin-top:6px; font-size:12px; color:rgba(255,255,255,.45); }
.bonuses-total{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:22px;
  text-align:center;
}
.bonuses-total .t1{ color:rgba(255,255,255,.5); }
.bonuses-total .t2{ font-size:44px; font-weight:800; margin:6px 0; }
.bonuses-total .t3{ color:rgba(255,255,255,.5); }

.online-summary-card{ padding:14px 16px; }
.online-summary-card .bonuses-card-title{ margin-bottom:10px; font-size:17px; }
.online-summary-card .form-label{ margin-bottom:6px; font-size:13px; }
.online-summary-card .form-control{ min-height:36px; height:36px; padding-top:7px; padding-bottom:7px; }
.online-summary-card .online-total{ min-height:74px; padding:10px 14px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.online-summary-card .bonuses-total-label{ font-size:13px; line-height:1.2; }
.online-summary-card .bonuses-total-val{ font-size:15px; font-weight:800; line-height:1.25; }
.online-summary-card .bonuses-muted{ padding:0 !important; line-height:1.2; }

@media (max-width: 900px){
  .bonuses-top{ flex-direction:column; align-items:flex-start; }
  .bonuses-btn{ min-width:unset; width:100%; }
}

/* ===================== VACATIONS ===================== */
.vac-page{ padding: 4px 2px 20px; }
.vac-limits{ margin-top: 6px; color: var(--muted); font-size: 13px; }

.vac-filters{
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.vac-filter-wide{ grid-column: 1 / -1; }
.vac-filter-label{ font-size: 12px; opacity: .75; margin-bottom: 6px; }

.vac-list{ display:flex; flex-direction:column; gap:14px; margin-top: 14px; }

.vac-card{
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.vac-card-top{ padding: 14px 16px 10px; }
.vac-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 8px; }
.vac-title{ font-weight: 800; font-size: 18px; }

.vac-card-body{ padding: 0 16px 14px; display:flex; flex-direction:column; gap:10px; }
.vac-field{ display:flex; gap:10px; }
.vac-field-label{ color: rgba(255,255,255,.55); }
.vac-field-value{ color: var(--text); }
.vac-admin-comment{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.vac-card-foot{
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}
.vac-muted{ color: var(--muted); }
.vac-foot-left{ display:flex; flex-wrap:wrap; gap:10px 16px; }
.vac-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

@media (max-width: 991.98px){
  .vac-filters{ grid-template-columns: 1fr; }
  .vac-field{ flex-direction:column; }
  .vac-field-label{ min-width: unset; }
  .vac-card-foot{ align-items: flex-start; }
}

/* ZNI compact cards */
.zni-card{ border-radius: 16px; }
.zni-card-top{ padding-bottom: 8px; }
.zni-card-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content:space-between;
}
.zni-title{
  font-size: 28px;
  line-height: 1.2;
  margin-top: 6px;
}
.zni-card-body{ padding-top: 0; }
.zni-meta-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}
.zni-main-grid{
  display:grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 10px;
}
.zni-field{
  margin-top: 0;
  min-width: 0;
}
.zni-field .tkt-field-label{ margin-bottom: 4px; }
.zni-field .tkt-field-value{ word-break: break-word; }
.zni-field-link .tkt-field-value a{ word-break: break-all; }
.zni-card .tkt-admin{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.zni-card .tkt-admin-actions .tkt-btn{ white-space: nowrap; }

@media (max-width: 991.98px){
  .zni-meta-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zni-main-grid{ grid-template-columns: 1fr; }
  .zni-title{ font-size: 24px; }
}
@media (max-width: 767.98px){
  .zni-card-head{ flex-direction: column; }
  .zni-card .tkt-admin-actions{ width: 100%; }
  .zni-card .tkt-admin-actions > div{ justify-content: flex-start !important; }
  .zni-meta-grid{ grid-template-columns: 1fr; }
  .zni-title{ font-size: 22px; }
}

/* -------------------- NEWS (страница "Новости") -------------------- */
.news-page .news-subtitle{
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.news-panel{ overflow: hidden; }
.news-list{ display: flex; flex-direction: column; gap: 18px; }
.news-card{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,28,47,.92), rgba(10,18,32,.92));
  box-shadow: 0 18px 45px rgba(0,0,0,.23);
  overflow: hidden;
}
.news-card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.news-title{
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}
.news-actions{ display:flex; gap:8px; flex-shrink:0; }
.news-content{
  padding: 20px 22px;
  color: rgba(255,255,255,.88);
  line-height: 1.68;
  font-size: 15.5px;
}
.news-content h1,.news-content h2,.news-content h3,.news-content h4{
  color:#fff;
  margin: 14px 0 10px;
  font-weight: 800;
}
.news-content h2{ font-size: 21px; }
.news-content h3{ font-size: 18px; }
.news-content p{ margin: 0 0 12px; }
.news-content ul,.news-content ol{ margin: 8px 0 14px 22px; }
.news-content a{ color: #69a7ff; font-weight: 700; text-decoration: none; }
.news-content a:hover{ text-decoration: underline; }
.news-footer{
  padding: 0 22px 18px;
  display:flex;
  justify-content: space-between;
  gap:12px;
  color: var(--muted);
  font-size: 13px;
}
.news-meta{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.news-meta-dot{ opacity:.55; }
.news-editor{ min-height: 240px; }
.news-editor-toolbar .iet-btn[data-format]{ font-weight:800; min-width:38px; }
@media (max-width: 575.98px){
  .news-card-top{ padding: 16px; }
  .news-content{ padding: 16px; }
  .news-footer{ padding: 0 16px 16px; }
  .news-title{ font-size: 19px; }
}

/* -------------------- NEWS -------------------- */
.news-page{
  margin: 0 auto;
  max-width: 1500px;
}
.news-page .news-head,
.news-page .news-panel{
  margin-left: auto;
  margin-right: auto;
}
.news-panel{
  border-radius: 18px;
}
.news-card{
  margin: 0 auto;
}
.news-cover{
  display: block;
  width: 100%;
  /* max-height: 480px; */
  object-fit: cover;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.news-image-help{
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}
.news-image-preview{
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.16);
}
.news-image-preview img{
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}
@media (max-width: 991.98px){
  .news-page{ max-width: none; }
  .news-page .news-head,
  .news-page .news-panel{ max-width: none; }
}

.sidebar-brand {
    min-height: 60px;
}

.sidebar-brand-title {
    white-space: nowrap;
}

.sidebar-brand-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 9px;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    color: #ffffff;
    background: linear-gradient(135deg, #3049d9, #6b2bd9);
    border: 1px solid rgba(140, 160, 255, 0.35);
    box-shadow: 0 0 14px rgba(91, 80, 255, 0.45);

    transform: translateY(1px);
}
.tkt-select{appearance:auto;background-color:#101827;color:#fff;position:relative;z-index:5;}
.tkt-select option{background:#101827;color:#fff;}
.tkt-filters{overflow:visible;position:relative;z-index:10;}
.salary-modal-dialog{ max-width:920px; }
.salary-modal-content{ border-radius:22px; }
.salary-modal-header{ padding:16px 18px 10px; }
.salary-modal-body{ padding:12px 18px 14px; max-height:72vh; overflow:auto; }
.salary-modal-footer{ padding:12px 18px 16px; }
.salary-compact-grid{ display:flex; flex-direction:column; gap:10px; }
.salary-section{ border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.018); border-radius:16px; padding:12px; }
.salary-section-title{ font-weight:800; font-size:14px; color:rgba(255,255,255,.84); margin-bottom:9px; }
.salary-modal-body .form-label{ font-size:13px; margin-bottom:5px; color:rgba(255,255,255,.78); }
.salary-modal-body .form-control,
.salary-modal-body .dropdown-toggle{ min-height:38px; height:38px; border-radius:13px; font-size:14px; }
.salary-modal-body .dropdown-menu{ max-height:260px; overflow:auto; }
.salary-total-box{ padding:14px 18px; margin:0; border-radius:16px; }
.salary-total-box .bonuses-total-val{ font-size:18px; font-weight:800; }
@media (max-width: 768px){ .salary-modal-dialog{ max-width:calc(100% - 16px); margin-left:auto; margin-right:auto; } .salary-modal-body{ max-height:76vh; } }

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

body.b-class .content,
body.b-class #app-content,
.content,
#app-content,
.container-fluid{
  min-width:0;
  max-width:100%;
}

img,
video,
canvas,
svg{
  max-width:100%;
}

.topbar{
  min-width:0;
}

.topbar > .ms-auto,
.topbar .dropdown{
  min-width:0;
}

.topbar > .ms-auto{
  max-width:100%;
}

.topbar .dropdown:first-child{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.topbar-pill{
  max-width:min(260px, 38vw);
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#serverDropdownBtn{
  max-width:min(260px, 36vw);
}

#accountDropdownBtn{
  max-width:min(220px, 34vw);
}

.dropdown-menu,
.dropdown-menu-darkish,
.sp-dd-menu{
  max-width:calc(100vw - 16px) !important;
  overflow-x:hidden;
}

.table-wrap,
.logs-table-wrap,
.bonuses-table-wrap,
.ui-table-wrap,
.info-table-wrap,
.perm-wrap,
.card:has(table){
  max-width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.table-wrap table,
.logs-table-wrap table,
.bonuses-table-wrap table,
.ui-table-wrap table,
.info-table,
.perm-table{
  width:100%;
}

.table-wrap table,
.info-table,
.perm-table,
.admin-users-page table,
.bonuses-table,
.ui-table{
  min-width:760px;
}

.info-head,
.ui-head,
.info-top,
.perm-top,
.shop-header,
.shop-toolbar,
.bonuses-top,
.crm-top,
.events-head,
.logs-card-head,
.card-head{
  flex-wrap:wrap;
  min-width:0;
}

.info-head > *,
.ui-head > *,
.info-top > *,
.perm-top > *,
.shop-header > *,
.shop-toolbar > *,
.bonuses-top > *,
.crm-top > *,
.events-head > *,
.logs-card-head > *,
.card-head > *{
  min-width:0;
}

.info-head-actions,
.ui-head-actions,
.shop-header-actions,
.bonuses-actions,
.crm-actions,
.logs-actions,
.perm-tools{
  flex-wrap:wrap;
  min-width:0;
}

.info-panel,
.ui-panel,
.tkt-card,
.tkt-filters,
.vac-card,
.bonuses-card,
.crm-card,
.crm-filters,
.shop-card,
.logs-card,
.card{
  max-width:100%;
}

.tkt-title,
.info-panel-title,
.ui-panel-title,
.crm-card-title,
.shop-title,
.page-title,
.info-title,
.logs-title,
.news-content,
.tkt-field-value,
.log-details,
.log-meta{
  overflow-wrap:anywhere;
  word-break:normal;
}

.modal-dialog{
  max-width:min(var(--bs-modal-width, 900px), calc(100vw - 24px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.modal-dialog-scrollable .modal-content{
  max-height:calc(100vh - 24px);
}

.modal-body{
  max-height:calc(100vh - 150px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.modal-footer,
.modal-header{
  gap:10px;
}

.modal-footer{
  flex-wrap:wrap;
}

.form-control,
.form-select,
.sp-dd-btn,
textarea,
input,
select{
  max-width:100%;
  min-width:0;
}

.tkt-filters,
.vac-filters,
.discipline-filters,
.logs-filter-grid,
.bl-filters{
  grid-template-columns:repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.admin-users-page .card,
.logs-table-card,
.perm-wrap,
.table-wrap{
  -webkit-overflow-scrolling:touch;
}

.admin-users-page table{
  table-layout:auto;
}

.admin-users-page .user-top,
.shop-disc-row,
.tkt-card-foot{
  flex-wrap:wrap;
}

.admin-users-page .col-user,
.admin-users-page .col-roles,
.admin-users-page .col-balance{
  width:auto;
}

.offcanvas-sidebar{
  width:min(var(--sidebar-width), calc(100vw - 28px)) !important;
}

@media (max-width:1199.98px){
  body.b-class .content > .container-fluid,
  .content > .container-fluid{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .table-wrap table,
  .info-table,
  .perm-table,
  .admin-users-page table,
  .bonuses-table,
  .ui-table{
    min-width:680px;
  }
}

@media (max-width:767.98px){
  body.b-class .content > .container-fluid,
  .content > .container-fluid{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .topbar{
    gap:8px;
  }

  .topbar > .ms-auto{
    gap:6px !important;
  }

  .topbar-pill{
    min-height:38px;
    padding:8px 10px !important;
    font-size:13px;
    border-radius:13px !important;
  }

  #reportbug{
    max-width:132px;
  }

  #serverDropdownBtn{
    max-width:34vw;
  }

  #accountDropdownBtn{
    max-width:42px;
    padding-left:8px !important;
    padding-right:8px !important;
  }

  #accountDropdownBtn .text-truncate{
    display:none;
  }

  #accountDropdownBtn::after{
    display:none;
  }

  #accountDropdownBtn + .dropdown-menu{
    min-width:min(320px, calc(100vw - 16px)) !important;
  }

  .info-head,
  .ui-head,
  .info-top,
  .shop-header,
  .shop-toolbar,
  .bonuses-top,
  .crm-top,
  .events-head{
    align-items:stretch !important;
  }

  .info-head-actions,
  .ui-head-actions,
  .shop-header-actions,
  .bonuses-actions,
  .crm-actions,
  .logs-actions,
  .perm-tools{
    width:100%;
    justify-content:flex-start !important;
  }

  .info-head-actions > *,
  .ui-head-actions > *,
  .shop-header-actions > *,
  .bonuses-actions > *,
  .crm-actions > *,
  .logs-actions > *,
  .perm-tools > *,
  .tkt-page > .d-flex.mb-3 > .d-flex > *,
  .zni-page > .d-flex.mb-3 > .d-flex > *{
    flex:1 1 auto;
  }

  .bonuses-btn,
  .info-btn,
  .ui-btn,
  .crm-btn,
  .shop-btn,
  .tkt-btn,
  .cancel-btn{
    min-width:0 !important;
  }

  .modal-dialog{
    max-width:calc(100vw - 16px) !important;
  }

  .modal-body{
    max-height:calc(100vh - 132px);
    padding-left:14px;
    padding-right:14px;
  }

  .modal-footer .btn,
  .modal-footer .info-btn,
  .modal-footer .ui-btn,
  .modal-footer .tkt-btn{
    flex:1 1 140px;
  }

  .table-wrap table,
  .info-table,
  .perm-table,
  .admin-users-page table,
  .bonuses-table,
  .ui-table{
    min-width:620px;
  }
}

@media (max-width:575.98px){
  body.b-class .topbar{
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
  }

  body.b-class .content{
    padding-top:60px !important;
  }

  body.b-class .content > .container-fluid,
  .content > .container-fluid{
    padding:14px 10px 22px !important;
  }

  #reportbug{
    display:none !important;
  }

  #serverDropdownBtn{
    max-width:calc(100vw - 126px);
  }

  .tkt-h1,
  #app-content h1,
  .page-title,
  .crm-title,
  .shop-title,
  .info-title{
    font-size:23px !important;
    line-height:1.15;
  }

  .info-panel-top,
  .ui-panel-top,
  .logs-card-head,
  .card-head,
  .shop-header,
  .bonuses-card,
  .crm-filters,
  .tkt-filters,
  .vac-filters{
    padding:12px !important;
  }

  .table-wrap table,
  .info-table,
  .perm-table,
  .admin-users-page table,
  .bonuses-table,
  .ui-table{
    min-width:560px;
  }

  .sp-dd-menu{
    min-width:100% !important;
    width:100% !important;
  }
}

@media (max-width:575.98px){
  body.b-class .content > .container-fluid{
    min-height:auto !important;
    padding-top:12px !important;
  }

  body.b-class #app-content{
    min-height:0 !important;
  }
}

@media (max-width:991.98px){
  html,
  body{
    width:100% !important;
    overflow-x:hidden !important;
  }

  body.b-class .content,
  .content{
    margin-left:0 !important;
    padding-top:var(--topbar-height) !important;
    min-height:0 !important;
    width:100% !important;
    overflow-x:hidden !important;
  }

  body.b-class .content > .container-fluid,
  .content > .container-fluid{
    min-height:0 !important;
    padding-top:14px !important;
    padding-left:12px !important;
    padding-right:12px !important;
    overflow-x:hidden !important;
    animation:none !important;
    transform:none !important;
  }

  body.b-class #app-content,
  #app-content{
    min-height:0 !important;
    height:auto !important;
    margin-top:0 !important;
    padding-top:0 !important;
    display:block !important;
    overflow-x:hidden !important;
    transform:none !important;
  }

  body.b-class #crmRoot,
  #crmRoot,
  .crm-page{
    min-height:0 !important;
    height:auto !important;
    margin-top:0 !important;
    padding-top:0 !important;
    display:block !important;
    transform:none !important;
  }

  .tkt-page,
  .info-page,
  .ui-page,
  .bonuses-page,
  .shop-page,
  .vac-page,
  .zni-page,
  .admin-users-page{
    min-width:0 !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .tkt-filters,
  .crm-filters,
  .vac-filters,
  .discipline-filters,
  .logs-filter-grid,
  .bl-filters{
    grid-template-columns:1fr !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .tkt-filters > *,
  .crm-filters > *,
  .vac-filters > *,
  .discipline-filters > *,
  .logs-filter-grid > *,
  .bl-filters > *{
    min-width:0 !important;
    max-width:100% !important;
  }

  .tkt-select,
  .tkt-input,
  .tkt-textarea,
  .form-select,
  .form-control,
  .sp-dd-btn{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  .tkt-card,
  .crm-card,
  .vac-card,
  .info-panel,
  .ui-panel,
  .bonuses-card,
  .shop-card,
  .logs-card,
  .card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .tkt-card-foot,
  .crm-card-footer,
  .info-head,
  .ui-head,
  .shop-header,
  .bonuses-top,
  .crm-top{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .tkt-foot-right,
  .crm-actions,
  .info-head-actions,
  .ui-head-actions,
  .shop-header-actions,
  .bonuses-actions{
    width:100% !important;
    margin-left:0 !important;
    justify-content:flex-start !important;
  }
}

@media (max-width:575.98px){
  body.b-class .topbar,
  .topbar{
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
  }

  body.b-class .content,
  .content{
    padding-top:60px !important;
  }

  body.b-class .content > .container-fluid,
  .content > .container-fluid{
    padding:10px 10px 20px !important;
  }

  .tkt-h1,
  #app-content h1,
  .page-title,
  .crm-title,
  .shop-title,
  .info-title{
    font-size:22px !important;
    line-height:1.15 !important;
  }

  .crm-btn,
  .tkt-btn,
  .info-btn,
  .ui-btn,
  .shop-btn,
  .bonuses-btn,
  .cancel-btn{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
  }
}
