#login { min-height: 100vh; display: flex; align-items: center; }
.kpi-value { font-size: 1.8rem; font-weight: 600; }
.period-btn.active { background: var(--tblr-primary); color: #fff; }

/* Сайдбар: ровное выравнивание иконки и подписи + чуть больше воздуха */
.navbar-vertical .navbar-nav { gap: 2px; padding-top: 4px; }
.navbar-vertical .nav-item { margin: 2px 10px; }
.navbar-vertical .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  line-height: 1.1;
}
.navbar-vertical .nav-link-icon {
  display: inline-flex !important;   /* всегда показываем иконку и держим её в ряд с текстом */
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 24px;
}
.navbar-vertical .nav-link-icon .icon { width: 22px; height: 22px; }
.navbar-vertical .nav-link-title { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Конструктор главной (телефон-макет) ===== */
.builder-hint { color: var(--tblr-secondary); margin-bottom: 12px; }
.phone-wrap { display: flex; justify-content: center; padding: 8px; }
.phone { width: 390px; max-width: 100%; background: #fff; border: 1px solid #e6e6e6;
  border-radius: 36px; box-shadow: 0 10px 40px rgba(0,0,0,.12); padding: 12px; }
.phone-notch { width: 120px; height: 20px; background: #111; border-radius: 0 0 14px 14px; margin: 0 auto 6px; }
.phone-screen { background: #F7F7F7; border-radius: 24px; padding: 10px 6px 18px; height: 720px; overflow-y: auto; }

.bblock { position: relative; margin: 6px 4px; border-radius: 12px; }
.bblock.hidden { opacity: .4; }
.bblock:hover { outline: 2px dashed rgba(255,193,7,.6); outline-offset: 2px; }
.bblock-tools { position: absolute; top: 4px; right: 6px; z-index: 3; display: flex; gap: 4px; opacity: 0; transition: .15s; }
.bblock:hover .bblock-tools { opacity: 1; }
.bblock-tools button { width: 26px; height: 26px; border: 0; border-radius: 7px; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 26px; padding: 0; }
.bblock-tools button:hover { background: #111; }
.bhandle { cursor: grab; }
.sortable-ghost { opacity: .35; }
.sortable-chosen .bblock-tools { opacity: 0; }

/* Мокапы блоков (внешний вид как в приложении) */
.mk-logo { text-align: center; font-weight: 800; color: #FFA000; letter-spacing: 1px; padding: 6px; font-size: 18px; }
.mk-search { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 9px 12px; color: #999; font-size: 13px; margin: 4px 8px; }
.mk-quick { display: flex; gap: 8px; padding: 2px 8px; }
.mk-quick div { flex: 1; background: #FFC107; color: #1a1a1a; text-align: center; border-radius: 10px; padding: 7px; font-weight: 600; font-size: 12px; }
.mk-welcome { margin: 6px 8px; border-radius: 16px; padding: 14px; color: #1a1a1a; background: linear-gradient(135deg, #FFC107, #FF512F); }
.mk-welcome b { font-size: 15px; }
.mk-welcome .mk-mgr { background: rgba(255,255,255,.95); border-radius: 12px; padding: 8px; margin-top: 10px; font-size: 11px; color: #444; }
.mk-banners { margin: 2px 8px; }
.mk-banner { width: 100%; aspect-ratio: 16/6; border-radius: 14px; object-fit: cover; background: #ddd; display: block; }
.mk-banner-ph { width: 100%; aspect-ratio: 16/6; border-radius: 14px; background: linear-gradient(135deg, #FFC107, #FF512F);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; text-align: center; padding: 8px; }
.mk-dots { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
.mk-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ccc; }
.mk-dots i.on { width: 8px; height: 8px; background: #FFA000; }
.mk-sec-title { font-weight: 700; font-size: 15px; margin: 8px 10px 6px; }
.mk-row { display: flex; gap: 8px; padding: 0 8px; overflow: hidden; }
.mk-pcard { flex: 0 0 88px; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 6px; }
.mk-pcard .img { height: 56px; background: #eee; border-radius: 6px; }
.mk-pcard .l1 { height: 7px; background: #e2e2e2; border-radius: 3px; margin-top: 6px; }
.mk-pcard .l2 { height: 7px; width: 60%; background: #e2e2e2; border-radius: 3px; margin-top: 4px; }
.mk-pcard .price { height: 9px; width: 50%; background: #ffd54f; border-radius: 3px; margin-top: 6px; }
.mk-pcard .btn2 { height: 16px; background: #FFC107; border-radius: 6px; margin-top: 6px; }
.mk-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 8px; }
.mk-cat { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 6px; text-align: center; }
.mk-cat .img { height: 40px; background: #eee; border-radius: 6px; }
.mk-cat .l { height: 6px; background: #e2e2e2; border-radius: 3px; margin-top: 5px; }
.mk-sync { color: #999; font-size: 11px; padding: 8px 12px; }

/* Панель настроек блока */
.bset-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1500; display: flex; align-items: center; justify-content: center; }
.bset-card { background: #fff; border-radius: 14px; padding: 18px; width: 360px; max-width: 92vw; }

/* Реальный контент в мокапах карточек/категорий */
.mk-pcard .pname { font-size: 9px; line-height: 1.2; margin-top: 5px; height: 22px; overflow: hidden; color: #333; }
.mk-pcard .pprice { font-size: 11px; font-weight: 700; margin-top: 3px; color: #111; }
.mk-pcard .btn2 { height: auto; background: #FFC107; border-radius: 6px; margin-top: 5px;
  font-size: 9px; text-align: center; padding: 4px 0; color: #1a1a1a; font-weight: 600; }
.mk-cat .cname { font-size: 9px; line-height: 1.1; margin-top: 5px; height: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
