

/* Start:/bitrix/templates/market/styles.css?177414697824671*/
/* ===== CRM THEME (NovaleDash-ish) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --crm-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --crm-bg0: #f6f7ff;
  --crm-bg1: #f7f3ff;
  --crm-bg2: #f2fbff;

  --crm-card: rgba(255,255,255,.86);
  --crm-card-solid: #ffffff;

  --crm-text: #101828;
  --crm-muted: #667085;

  --crm-line: rgba(16,24,40,.10);
  --crm-line2: rgba(16,24,40,.06);

  --crm-primary: #6b7cff;        /* мягкий синий */
  --crm-primary-2: #8a6bff;      /* фиолетовый акцент */
  --crm-success: #22c55e;
  --crm-danger: #ef4444;

  --crm-shadow: 0 18px 40px rgba(16,24,40,.08);
  --crm-shadow-sm: 0 10px 24px rgba(16,24,40,.08);

  --crm-radius-xl: 22px;
  --crm-radius-lg: 18px;
  --crm-radius-md: 14px;

  --crm-sidebar-w: 260px;
}
/*
html,body{ height:100%; }
 */
body{
  font-family: var(--crm-font);
  color: var(--crm-text);
margin:0;
  background:
    radial-gradient(900px 500px at 10% 20%, rgba(107,124,255,.14), transparent 60%),
    radial-gradient(900px 500px at 90% 80%, rgba(138,107,255,.12), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(90,200,250,.10), transparent 60%),
    linear-gradient(180deg, var(--crm-bg0), var(--crm-bg1));
}

/* layout */
.crm-layout{ display:flex; min-height:100vh; }
.crm-sidebar{ width:var(--crm-sidebar-w); flex: 0 0 var(--crm-sidebar-w); padding:16px; }
.crm-main{ flex:1 1 auto; min-width:0; padding:16px; }

.crm-card{
  background: var(--crm-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--crm-line2);
  border-radius: var(--crm-radius-xl);
  box-shadow: var(--crm-shadow);
}

/* sidebar */
.crm-sidebar__card{
  height: calc(100vh - 32px);
  position: sticky;
  top: 16px;
  overflow:auto;
  padding: 14px;

  transition: box-shadow .18s ease;
}

.crm-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid var(--crm-line2);
}
.crm-brand__title{ font-weight:800; letter-spacing:.2px; font-size:20px; }
.crm-brand__sub{ font-size:12px; color:var(--crm-muted); margin-top:2px; }

/* hamburger */
.crm-burger{
  display:none;
  border:0;
  background: transparent;
  cursor:pointer;
  width:42px; height:42px;
  border-radius: 14px;
}
.crm-burger:hover{ background: rgba(107,124,255,.10); }
.crm-burger span{
  display:block;
  height:2px;
  background: var(--crm-text);
  margin:6px 12px;
  border-radius: 2px;
}

/* nav */
.crm-nav{ padding: 10px 6px; }
.crm-nav__section-title{
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--crm-muted);
  margin: 12px 10px 8px;
}

.crm-nav__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  text-decoration:none;
  color: var(--crm-text);
  border: 1px solid transparent;
  transition: .15s ease;
}
.crm-nav__item:hover{
  background: rgba(107,124,255,.08);
  border-color: rgba(107,124,255,.18);
}
.crm-nav__item.is-active{
  background: rgba(107,124,255,.14);
  border-color: rgba(107,124,255,.22);
}
.crm-nav__item-left{ display:flex; gap:10px; align-items:center; min-width:0; }
.crm-nav__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--crm-primary);
  box-shadow: 0 0 0 4px rgba(107,124,255,.16);
  flex:0 0 auto;
}
.crm-nav__label{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.crm-nav__chev{ color: var(--crm-muted); font-weight:900; }

.crm-nav__children{
  margin: 6px 0 10px 22px;
  padding-left: 12px;
  border-left: 1px dashed rgba(16,24,40,.14);
  display:none;
}
.crm-nav__children.is-open{ display:block; }

/* main header area */
.crm-topbar{
  padding: 16px 18px;
  border-radius: var(--crm-radius-xl);
  background: var(--crm-card);
  border: 1px solid var(--crm-line2);
  box-shadow: var(--crm-shadow-sm);
  margin-bottom: 12px;
}
.crm-h1{
  margin:0;
  font-size: 20px;
  font-weight: 800;
}
.crm-content{
  padding: 18px;
  border-radius: var(--crm-radius-xl);
  background: var(--crm-card);
  border: 1px solid var(--crm-line2);
  box-shadow: var(--crm-shadow);
  min-height: 70vh;
}

/* overlay + responsive */
.crm-overlay{
  display:none;
  position:fixed; inset:0;
  background: rgba(2,6,23,.40);
  z-index: 999;
}
@media (max-width: 1024px){
  .crm-sidebar{
    position: fixed;
    left: -340px;
    top:0;
    z-index: 1000;
    width: 320px;
    height: 100vh;
    transition: left .18s ease;
  }
  .crm-sidebar.is-open{ left: 0; }
  .crm-overlay.is-open{ display:block; }
  .crm-burger{ display:inline-block; }
}


/* ===== TASK THEME (soft dashboard) ===== */
:root{
  --task-card: rgba(255,255,255,.86);
  --task-line: rgba(16,24,40,.10);
  --task-line2: rgba(16,24,40,.06);
  --task-shadow: 0 18px 40px rgba(16,24,40,.08);

  --task-primary: #6b7cff;
  --task-primary-weak: rgba(107,124,255,.14);

  --task-radius-xl: 22px;
  --task-radius-lg: 18px;
  --task-radius-md: 14px;
}

/* контейнер задачника */
.abv_task_wrap{
  background: var(--task-card);
  border: 1px solid var(--task-line2);
  border-radius: var(--task-radius-xl);
  box-shadow: var(--task-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* кнопки */
.abv_task_btn{
  border:0;
  cursor:pointer;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  background: var(--task-primary);
  color:#fff;
  transition:.15s ease;
}
.abv_task_btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 22px rgba(107,124,255,.22); }
.abv_task_btn:active{ transform: translateY(0); }

.abv_task_btn_light{
  background: rgba(107,124,255,.10);
  color: #223;
}
.abv_task_btn_light:hover{ box-shadow:none; background: rgba(107,124,255,.14); }

.abv_task_btn_danger{
  background: rgba(239,68,68,.10);
  color: #b42318;
}
.abv_task_btn_danger:hover{ background: rgba(239,68,68,.14); box-shadow:none; }

/* табличная оболочка */
.abv_task_table_wrap{
  overflow:auto;
  border-radius: var(--task-radius-xl);
  border: 1px solid var(--task-line2);
}

/* таблица */
.abv_task_table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}
.abv_task_table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--task-line2);
  padding: 12px 12px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #667085;
  text-align:left;
}
.abv_task_table tbody td{
  border-bottom: 1px solid var(--task-line2);
  padding: 10px 12px;
  vertical-align: top;
  background: rgba(255,255,255,.60);
}
.abv_task_table tbody tr:hover td{
  background: rgba(107,124,255,.05);
}

/* инпуты всегда видимые */
.abv_task_tbl_input{
  width:100%;
  box-sizing:border-box;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 10px 12px;
  outline:none;
  transition: .12s ease;
}
.abv_task_tbl_input:focus{
  border-color: rgba(107,124,255,.35);
  box-shadow: 0 0 0 4px rgba(107,124,255,.12);
  background:#fff;
}
.abv_task_tbl_select{ padding-right: 32px; }
.abv_task_tbl_textarea{ min-height: 44px; resize: vertical; }

/* чипы/бейджи */
.abv_task_chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(107,124,255,.12);
  border: 1px solid rgba(107,124,255,.18);
  color:#2b3a8f;
  font-weight:700;
  font-size:12px;
}
.abv_task_chip--danger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.16);
  color:#b42318;
}
.abv_task_chip--success{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.18);
  color:#18794e;
}

/* кнопка удаления (когда имя пустое) */
.abv_task_del_btn{
  border:0;
  background: rgba(239,68,68,.10);
  color:#b42318;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  cursor:pointer;
}
.abv_task_del_btn:hover{ background: rgba(239,68,68,.14); }

/* канбан */
.abv_task_kanban{
  display:grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  overflow:auto;
  padding-bottom: 8px;
}
@media (max-width: 1200px){
  .abv_task_kanban{ grid-template-columns: repeat(3, minmax(260px, 1fr)); }
}
@media (max-width: 980px){
  .abv_task_kanban{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 640px){
  .abv_task_kanban{ grid-template-columns: 1fr; }
}

.abv_task_col{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--task-line2);
  border-radius: var(--task-radius-xl);
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
  padding: 12px;
  min-height: 240px;
}
.abv_task_col_head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 4px 12px;
}
.abv_task_col_title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
}
.abv_task_status_dot{
  width:10px; height:10px; border-radius:999px;
  box-shadow: 0 0 0 4px rgba(107,124,255,.12);
}

.abv_task_task{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(16,24,40,.06);
  margin-bottom: 10px;
}
.abv_task_task_hdr{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.abv_task_drag_handle{
  cursor:grab;
  user-select:none;
  font-weight: 900;
  color:#667085;
  padding: 4px 8px;
  border-radius: 12px;
}
.abv_task_drag_handle:hover{ background: rgba(107,124,255,.08); }
.abv_task_drag_handle:active{ cursor:grabbing; }

.abv_task_task_meta{
  display:grid;
  gap:10px;
  margin-top: 10px;
}
.abv_task_drop_hover{
  outline: 3px solid rgba(107,124,255,.18);
  outline-offset: 2px;
}

/* мелочи */
.abv_task_muted{ color:#667085; }
.abv_task_hr{ height:1px; background: rgba(16,24,40,.08); margin: 12px 0; border:0; }
.abv_task_plus{ display:inline-block; font-weight:900; margin-right:6px; }


/* ===== Collapsible sidebar ===== */
:root{
  --crm-sidebar-w: 270px;
  --crm-sidebar-collapsed: 82px;
}

/* layout */
.crm-layout{ display:flex; min-height:100vh; }
.crm-sidebar{
  width: var(--crm-sidebar-w);
  flex: 0 0 var(--crm-sidebar-w);
  padding:16px 0;
  transition: width .18s ease, flex-basis .18s ease;
}
.crm-sidebar__card{
  height: calc(100vh - 32px);
  position: sticky;
  top: 16px;
  overflow:auto;
}

/* collapsed state (desktop) */
.crm-sidebar.is-collapsed{
  width: var(--crm-sidebar-collapsed);
  flex: 0 0 var(--crm-sidebar-collapsed);
}
.crm-sidebar.is-collapsed .crm-brand__left,
.crm-sidebar.is-collapsed .crm-nav__section-title,
.crm-sidebar.is-collapsed .crm-nav__chev,
.crm-sidebar.is-collapsed .crm-nav__children{
  display:none !important;
}
.crm-sidebar.is-collapsed .crm-nav__item{
  justify-content:center;
}
.crm-sidebar.is-collapsed .crm-nav__label{
  display:none;
}

.crm-sidebar.is-collapsed.is-hover-open .crm-brand__left,
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__section-title,
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__chev{
    display:block !important;
  }
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__children{
    display:block;
  }
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__item{
    justify-content:space-between;
  }
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__label{
    display:inline;
  }


/* nav icon */
.crm-nav__icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--crm-muted);
}
.crm-nav__item.is-active .crm-nav__icon{ color: var(--crm-text); }
.crm-nav__icon svg{ width:18px; height:18px; }

/* header controls */
.crm-brand__actions{ display:flex; gap:8px; align-items:center; }
.crm-collapse-btn{
  border:0;
  background: rgba(107,124,255,.10);
  cursor:pointer;
  width:42px; height:42px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.crm-collapse-btn:hover{ background: rgba(107,124,255,.14); }

/* mobile sidebar (hamburger) */
.crm-overlay{
  display:none;
  position:fixed; inset:0;
  background: rgba(2,6,23,.40);
  z-index: 999;
}

@media (max-width: 1024px){
  .crm-sidebar{
    position: fixed;
    left: -360px;
    top:0;
    z-index: 1000;
    width: 320px;
    flex: unset;
    height: 100vh;
    transition: left .18s ease;
  }
  .crm-sidebar.is-open{ left: 0; }
  .crm-overlay.is-open{ display:block; }

  /* на мобиле collapsed не используем */
  .crm-sidebar.is-collapsed{
    width: 320px;
    flex: unset;
  }
}

/* ===== hover expand OVER content (no layout jump) ===== */
@media (min-width: 1025px){
  .crm-sidebar.is-collapsed.is-hover-open{ z-index: 1200; }

  .crm-sidebar.is-collapsed.is-hover-open .crm-sidebar__card{
    position: fixed;
    left: 16px;
    top: 16px;
    width: calc(var(--crm-sidebar-w) - 32px);
    height: calc(100vh - 32px);
    box-shadow: 0 24px 60px rgba(16,24,40,.18);
  }

  .crm-sidebar.is-collapsed.is-hover-open .crm-brand__left,
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__section-title,
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__chev{
    display:block !important;
  }

  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__children{ display:block; }
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__label{ display:inline; }
  .crm-sidebar.is-collapsed.is-hover-open .crm-nav__item{ justify-content:space-between; }
}

@media (max-width: 1024px){ .crm-collapse-btn{ display:none; } }

.crm-collapse-btn svg{ transition: transform .18s ease; }
.crm-collapse-btn.is-collapsed svg{ transform: rotate(180deg); }


.crm-sidebar.is-collapsed.is-hover-open>div {
    background: #fffffff2;
    border-radius: 10px;
}
.crm-sidebar.is-collapsed .crm-nav__children.is-open {
    display: block!important;
}



.abv_task_table tbody td {
    padding: 10px 5px!important;
}

.abv_task_pill {
    font-size: 14px!important;
}


/* ===== Mobile bottom toolbar ===== */
.crm-mtab{
  display:none; /* по умолчанию скрыто (ПК) */
}

.crm-sidebar.is-collapsed .crm-nav__section-title {
  opacity: 0;
  display: block!important;
}

/* =========================
   GLASSMORPHISM THEME (CRM)
   ========================= */

/* 1) Базовые переменные */
:root{
  --glass-bg: rgba(255,255,255,.10);
  --glass-bg-strong: rgba(255,255,255,.16);
  --glass-border: rgba(255,255,255,.22);
  --glass-border-soft: rgba(255,255,255,.14);

  --glass-shadow: 0 20px 60px rgba(0,0,0,.25);
  --glass-shadow-soft: 0 10px 30px rgba(0,0,0,.18);

  --text: rgba(255,255,255,.92);
  --text-muted: rgba(255,255,255,.68);
  --text-faint: rgba(255,255,255,.52);

  --accent: #7c3aed;   /* фиолетовый */
  --accent2: #06b6d4;  /* циан */
  --accent3: #ec4899;  /* розовый */

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --blur: 18px;
}

/* 2) Фон: градиент + световые пятна */
.glass-page{
  min-height: 100%;
  color: var(--text);
  background:
          radial-gradient(900px 600px at 15% 10%, rgba(6,182,212,.65), transparent 60%),
          radial-gradient(900px 700px at 85% 15%, rgba(124,58,237,.62), transparent 62%),
          radial-gradient(900px 700px at 55% 90%, rgba(236,72,153,.55), transparent 60%),
          linear-gradient(180deg, #0b1220 0%, #060913 100%);
  position: relative;
  overflow: hidden;
}

/* опционально: “пыль/боке” */
.glass-page::after{
  content:"";
  position:absolute; inset:-40px;
  background:
          radial-gradient(10px 10px at 12% 22%, rgba(255,255,255,.26), transparent 60%),
          radial-gradient(14px 14px at 72% 18%, rgba(255,255,255,.18), transparent 60%),
          radial-gradient(9px 9px at 88% 62%, rgba(255,255,255,.14), transparent 60%),
          radial-gradient(12px 12px at 35% 70%, rgba(255,255,255,.16), transparent 60%),
          radial-gradient(7px 7px at 55% 40%, rgba(255,255,255,.12), transparent 60%);
  pointer-events:none;
  filter: blur(.2px);
  opacity: .9;
}

/* 3) Универсальный “стеклянный” контейнер */
.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
}

/* вариант чуть плотнее */
.glass.strong{
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-soft);
  box-shadow: var(--glass-shadow-soft);
}

/* лёгкая внутренняя подсветка */
.glass::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(
          135deg,
          rgba(255,255,255,.24),
          rgba(255,255,255,.04) 40%,
          rgba(255,255,255,.02)
  );
  mask: linear-gradient(#000, #000);
  opacity: .55;
}

/* чтобы ::before работал корректно */
.glass, .glass-card{ position: relative; }

/* 4) Карточки/блоки */
.glass-card{
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.glass-card:hover{
  transform: translateY(-1px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

/* 5) Текст */
.glass-title{
  font-weight: 750;
  letter-spacing: .2px;
  color: var(--text);
}
.glass-subtitle{
  color: var(--text-muted);
  font-size: 13px;
}
.glass-meta{
  color: var(--text-faint);
  font-size: 12px;
}

/* 6) Кнопки */
.glass-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.glass-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.13);
}
.glass-btn:active{
  transform: translateY(0px);
}

.glass-btn.primary{
  border-color: rgba(124,58,237,.55);
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(6,182,212,.25));
}
.glass-btn.primary:hover{
  border-color: rgba(124,58,237,.72);
}

.glass-btn.icon{
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* 7) Инпуты/селекты */
.glass-input, .glass-select, .glass-textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.glass-input::placeholder, .glass-textarea::placeholder{
  color: rgba(255,255,255,.48);
}
.glass-input:focus, .glass-select:focus, .glass-textarea:focus{
  border-color: rgba(6,182,212,.55);
  box-shadow: 0 0 0 3px rgba(6,182,212,.18);
}

/* 8) Таблица (если надо “стекло” для задач) */
.glass-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px; /* строки как карточки */
}
.glass-table thead th{
  color: rgba(255,255,255,.72);
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 10px;
}
.glass-table tbody tr{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.glass-table tbody td{
  padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.glass-table tbody tr td:first-child{
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.glass-table tbody tr td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* 9) Чипы/бейджи (статусы) */
.glass-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  font-size: 12px;
}
.glass-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(6,182,212,.9);
  box-shadow: 0 0 0 3px rgba(6,182,212,.18);
}

/* 10) Лёгкая анимация появления */
.glass-fade-in{
  animation: glassFade .22s ease-out both;
}
@keyframes glassFade{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

@media (max-width: 900px){
  /* чтобы контент не залезал под тулбар */
  body{ padding-bottom: 78px; }

  .crm-mtab{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;

    padding: 10px 10px;
    border-radius: 22px;

    background: rgba(255,255,255,.86);
    border: 1px solid rgba(16,24,40,.10);
    box-shadow: 0 16px 40px rgba(16,24,40,.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .crm-mtab__item{
    height: 46px;
    border-radius: 16px;
    display:flex;
    align-items:center;
    justify-content:center;

    color: rgba(17,24,39,.50);
    text-decoration:none;

    transition: .12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .crm-mtab__item:active{
    transform: scale(.98);
  }

  .crm-mtab__item.is-active{
    color: #ff6a3d; /* акцент как на примере */
    background: rgba(255,106,61,.10);
  }

  .crm-ico{
    width: 22px;
    height: 22px;
    display:inline-flex;
  }
  .crm-ico svg{ width:22px;height:22px; }
}


/* ===== Mobile top header ===== */
.crm-mobile-header{
  display: none;
}

@media (max-width: 1024px){
  body{
    padding-top: 74px;
  }

  .crm-mobile-header{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1101;
    padding: 10px 12px;
    background: rgba(246,247,255,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16,24,40,.08);
  }

  .crm-mobile-header__inner{
    display: grid;
    grid-template-columns: 46px 1fr 140px;
    gap: 10px;
    align-items: center;

    max-width: 100%;
    min-height: 52px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(16,24,40,.08);
    box-shadow: 0 12px 30px rgba(16,24,40,.08);
  }

  .crm-mobile-header__burger{
    border: 0;
    background: rgba(107,124,255,.10);
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    padding: 0;
  }

  .crm-mobile-header__burger span{
    display: block;
    height: 2px;
    margin: 5px 12px;
    border-radius: 2px;
    background: #101828;
  }

  .crm-mobile-header__title{
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
    color: #101828;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .crm-mobile-header__nav{
    min-width: 0;
  }

  .crm-mobile-header__select{
    width: 100%;
    height: 46px;
    border: 1px solid rgba(16,24,40,.10);
    border-radius: 14px;
    background: #fff;
    color: #101828;
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
    outline: none;
  }

  .crm-mobile-header__select:focus{
    border-color: rgba(107,124,255,.35);
    box-shadow: 0 0 0 4px rgba(107,124,255,.12);
  }

  .crm-main{
    padding: 0 12px !important;
  }
  @media (max-width: 1024px) {
    .crm-sidebar.is-open {
      left: 0;
      z-index: 1111111;
      background: white;
    }
  }

}
@media (max-width: 1024px) {
  .crm-mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 4px 5px;
    background: rgb(246 247 255 / 0%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 0;
  }
}
@media (max-width: 640px){
  .crm-mobile-header__inner{
    grid-template-columns: 46px 0.5fr 0.5fr;
  }

}
/* End */


/* Start:/bitrix/templates/market/template_styles.css?178799631430710*/
/* ==========================================================================
   ABV CRM UI KIT — COMMON STYLES / v2
   --------------------------------------------------------------------------
   Назначение файла
   ----------------
   Общий визуальный слой личного кабинета. Новые страницы и модули желательно
   собирать из этих классов, а локальный CSS использовать только для уникальной
   логики конкретного экрана. Это уменьшает визуальные расхождения между
   «Платёжным календарём», «Документами», задачами и будущими разделами.

   Базовый принцип
   ----------------
   1. Сначала токены (:root): цвета, радиусы, отступы, размеры, тени.
   2. Затем примитивы: container, card, button, field, tabs, table/list.
   3. Затем составные компоненты: filters, modal, dropdown, kanban.
   4. На мобильном не уменьшаем desktop-таблицу до нечитаемого состояния:
      сложные строки перестраиваем в карточки либо горизонтальные snap-ленты.

   ВАЖНО ПРИ ПОДКЛЮЧЕНИИ
   ----------------------
   После изменения этого файла необходимо изменить версию в <link>, например:
   <link rel="stylesheet" href="/local/.../template_styles.css?v=2.0.0">
   ========================================================================== */

/* =========================================================
   ABV CRM UI KIT (Light)
   Prefix: abv_crm_
   ========================================================= */

/* ---------- Design tokens ---------- */
:root{
  /* Фон приложения: спокойный холодный оттенок, чтобы белые поверхности читались слоями. */
  --abv-crm-bg: #f6f8fc;
  /* Основная поверхность карточек, форм, таблиц и модальных окон. */
  --abv-crm-surface: #ffffff;
  --abv-crm-surface-2: #f3f6ff;

  --abv-crm-text: #162033;
  --abv-crm-muted: #6b7a90;
  --abv-crm-border: #e4e9f3;

  /* Главный action-цвет. Использовать для одного приоритетного действия в зоне. */
  --abv-crm-primary: #4b82ff;
  --abv-crm-primary-600: #356cff;
  --abv-crm-primary-100: #eaf1ff;

  --abv-crm-success: #22c55e;
  --abv-crm-warning: #f59e0b;
  --abv-crm-danger:  #ef4444;

  /* Радиусы унифицированы: sm — поля/малые кнопки, md — карточки, lg — крупные панели. */
  --abv-crm-radius-sm: 10px;
  --abv-crm-radius-md: 14px;
  --abv-crm-radius-lg: 18px;

  /* Тени намеренно мягкие. Не применять тень к каждой строке списка. */
  --abv-crm-shadow-sm: 0 4px 14px rgba(15, 23, 42, .045);
  --abv-crm-shadow-md: 0 14px 36px rgba(15, 23, 42, .09);

  --abv-crm-focus: 0 0 0 3px rgba(75, 130, 255, .22);

  --abv-crm-space-1: 6px;
  --abv-crm-space-2: 10px;
  --abv-crm-space-3: 14px;
  --abv-crm-space-4: 18px;
  --abv-crm-space-5: 24px;
  --abv-crm-space-6: 32px;

  /* Размеры интерактивных элементов: 44px — комфортная цель на телефоне. */
  --abv-crm-control-h: 44px;
  --abv-crm-control-h-sm: 36px;
  --abv-crm-content-max: 1680px;
  --abv-crm-mobile-pad: 16px;

  /* Семантические слабые фоны для статусов и финансовых показателей. */
  --abv-crm-success-soft: rgba(34,197,94,.10);
  --abv-crm-warning-soft: rgba(245,158,11,.10);
  --abv-crm-danger-soft: rgba(239,68,68,.09);

  --abv-crm-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* ---------- Base / background ---------- */
.abv_crm_app{
  font-family: var(--abv-crm-font);
  color: var(--abv-crm-text);
  background: var(--abv-crm-bg);
  min-height: 100vh;
}

/* light gradient “spots” */
.abv_crm_bg{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.abv_crm_bg:before,
.abv_crm_bg:after{
  content:"";
  position:absolute;
  inset:-120px;
  z-index:-1;
  background:
    radial-gradient(420px 320px at 18% 15%, rgba(75,130,255,.16) 0%, rgba(75,130,255,0) 65%),
    radial-gradient(520px 380px at 85% 20%, rgba(34,197,94,.10) 0%, rgba(34,197,94,0) 62%),
    radial-gradient(560px 420px at 70% 85%, rgba(245,158,11,.10) 0%, rgba(245,158,11,0) 60%);
  filter: blur(2px);
  pointer-events:none;
}
.abv_crm_bg:after{
  inset:-160px;
  opacity:.65;
}

/* ---------- Layout helpers ---------- */
.abv_crm_container{
  width: min(var(--abv-crm-content-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
}
.abv_crm_grid{
  display: grid;
  gap: var(--abv-crm-space-4);
}
.abv_crm_grid_2{
  grid-template-columns: 1fr 1fr;
}
.abv_crm_grid_3{
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 980px){
  .abv_crm_grid_2,
  .abv_crm_grid_3{ grid-template-columns: 1fr; }
}

/* ---------- Cards / surfaces ---------- */
.abv_crm_card{
  background: var(--abv-crm-surface);
  border: 1px solid var(--abv-crm-border);
  border-radius: var(--abv-crm-radius-md);
  box-shadow: var(--abv-crm-shadow-sm);
}
.abv_crm_card_pad{
  padding: var(--abv-crm-space-5);
}
.abv_crm_card_head{
  padding: var(--abv-crm-space-4) var(--abv-crm-space-5);
  border-bottom: 1px solid var(--abv-crm-border);
}
.abv_crm_card_body{
  padding: var(--abv-crm-space-5);
}

/* ---------- Typography ---------- */
.abv_crm_h1{ font-size: 24px; line-height: 1.2; margin: 0; }
.abv_crm_h2{ font-size: 18px; line-height: 1.3; margin: 0; }
.abv_crm_text{ font-size: 14px; line-height: 1.55; }
.abv_crm_muted{ color: var(--abv-crm-muted); }

/* ---------- Buttons ---------- */
.abv_crm_btn{
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.abv_crm_btn:active{ transform: translateY(1px); }
.abv_crm_btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.abv_crm_btn_primary{
  background: var(--abv-crm-primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(75,130,255,.20);
}
.abv_crm_btn_primary:hover{ background: var(--abv-crm-primary-600); }

.abv_crm_btn_secondary{
  background: var(--abv-crm-surface);
  color: var(--abv-crm-text);
  border-color: var(--abv-crm-border);
}
.abv_crm_btn_secondary:hover{
  border-color: rgba(75,130,255,.35);
  box-shadow: var(--abv-crm-shadow-sm);
}

.abv_crm_btn_ghost{
  background: transparent;
  color: var(--abv-crm-text);
  border-color: transparent;
}
.abv_crm_btn_ghost:hover{ background: rgba(75,130,255,.08); }

.abv_crm_btn_danger{
  background: rgba(239,68,68,.10);
  color: #b91c1c;
  border-color: rgba(239,68,68,.20);
}
.abv_crm_btn_danger:hover{ background: rgba(239,68,68,.14); }

.abv_crm_btn_sm{ padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.abv_crm_btn_lg{ padding: 12px 16px; border-radius: 14px; font-size: 15px; }

/* ---------- Forms ---------- */
.abv_crm_form{
  display: grid;
  gap: var(--abv-crm-space-4);
}
.abv_crm_field{
  display: grid;
  gap: 8px;
}
.abv_crm_label{
  font-size: 13px;
  color: var(--abv-crm-muted);
}
.abv_crm_input,
.abv_crm_select,
.abv_crm_textarea{
  width: 100%;
  box-sizing: border-box;
  background: var(--abv-crm-surface);
  border: 1px solid var(--abv-crm-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--abv-crm-text);
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.abv_crm_textarea{ min-height: 96px; resize: vertical; }
.abv_crm_input:focus,
.abv_crm_select:focus,
.abv_crm_textarea:focus{
  border-color: rgba(75,130,255,.55);
  box-shadow: var(--abv-crm-focus);
}
.abv_crm_input::placeholder,
.abv_crm_textarea::placeholder{ color: rgba(107,122,144,.75); }

.abv_crm_help{
  font-size: 12px;
  color: var(--abv-crm-muted);
}
.abv_crm_error{
  font-size: 12px;
  color: var(--abv-crm-danger);
}

/* input group */
.abv_crm_input_group{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
@media (max-width: 560px){
  .abv_crm_input_group{ grid-template-columns: 1fr; }
}

/* switches / checkbox base */
.abv_crm_check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.abv_crm_check input{
  width: 18px;
  height: 18px;
  accent-color: var(--abv-crm-primary);
}

/* ---------- Menu / navbar ---------- */
.abv_crm_nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,252,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--abv-crm-border);
}
.abv_crm_nav_inner{
  width: min(var(--abv-crm-content-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.abv_crm_nav_left,
.abv_crm_nav_right{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.abv_crm_brand{
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--abv-crm-text);
}
.abv_crm_menu{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.abv_crm_menu_item{
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--abv-crm-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.abv_crm_menu_item:hover{
  background: rgba(75,130,255,.08);
  color: var(--abv-crm-text);
}
.abv_crm_menu_item_active{
  background: var(--abv-crm-primary-100);
  color: var(--abv-crm-primary-600);
  border-color: rgba(75,130,255,.18);
}

/* ---------- Table ---------- */
.abv_crm_table_wrap{
  overflow: auto;
  border-radius: var(--abv-crm-radius-md);
  border: 1px solid var(--abv-crm-border);
  background: var(--abv-crm-surface);
  box-shadow: var(--abv-crm-shadow-sm);
}
.abv_crm_table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.abv_crm_table th,
.abv_crm_table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--abv-crm-border);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.abv_crm_table th{
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  color: var(--abv-crm-muted);
  font-weight: 700;
  z-index: 1;
}
.abv_crm_table tr:hover td{
  background: rgba(75,130,255,.05);
}
.abv_crm_table td .abv_crm_muted{ font-size: 13px; }

/* ---------- Filters ---------- */
.abv_crm_filters{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 980px){
  .abv_crm_filters{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .abv_crm_filters{ grid-template-columns: 1fr; }
}

/* chips / tags */
.abv_crm_chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(75,130,255,.10);
  color: var(--abv-crm-primary-600);
  border: 1px solid rgba(75,130,255,.16);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Modal / popup ---------- */
.abv_crm_modal_overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.38);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}
.abv_crm_modal_overlay.abv_crm_is_open{ display: flex; }

.abv_crm_modal{
  width: min(720px, 100%);
  background: var(--abv-crm-surface);
  border: 1px solid var(--abv-crm-border);
  border-radius: var(--abv-crm-radius-lg);
  box-shadow: var(--abv-crm-shadow-md);
  overflow: hidden;
}
.abv_crm_modal_head{
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--abv-crm-border);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}
.abv_crm_modal_title{
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.abv_crm_modal_body{ padding: 18px; }
.abv_crm_modal_foot{
  padding: 14px 18px;
  border-top: 1px solid var(--abv-crm-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Dropdown ---------- */
.abv_crm_dropdown{
  position: relative;
  display: inline-flex;
}
.abv_crm_dropdown_panel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  background: var(--abv-crm-surface);
  border: 1px solid var(--abv-crm-border);
  border-radius: var(--abv-crm-radius-md);
  box-shadow: var(--abv-crm-shadow-md);
  padding: 8px;
  display: none;
  z-index: 60;
}
.abv_crm_dropdown.abv_crm_is_open .abv_crm_dropdown_panel{ display: block; }

.abv_crm_dropdown_item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--abv-crm-text);
  border: 1px solid transparent;
}
.abv_crm_dropdown_item:hover{
  background: rgba(75,130,255,.08);
  border-color: rgba(75,130,255,.12);
}

/* ---------- Kanban ---------- */
.abv_crm_kanban{
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 6px;
}
@media (max-width: 1100px){
  .abv_crm_kanban{ grid-template-columns: repeat(3, minmax(240px, 1fr)); }
}
@media (max-width: 860px){
  .abv_crm_kanban{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 560px){
  .abv_crm_kanban{ grid-template-columns: 1fr; }
}

.abv_crm_kanban_col{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--abv-crm-border);
  border-radius: var(--abv-crm-radius-md);
  box-shadow: var(--abv-crm-shadow-sm);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 320px;
}
.abv_crm_kanban_col_head{
  padding: 12px 12px;
  border-bottom: 1px solid var(--abv-crm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.abv_crm_kanban_col_title{
  font-weight: 900;
  font-size: 13px;
  color: var(--abv-crm-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.abv_crm_kanban_badge{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(75,130,255,.10);
  color: var(--abv-crm-primary-600);
  border: 1px solid rgba(75,130,255,.14);
  font-weight: 800;
}
.abv_crm_kanban_col_body{
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.abv_crm_task_card{
  background: var(--abv-crm-surface);
  border: 1px solid var(--abv-crm-border);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  padding: 12px;
  display: grid;
  gap: 8px;
}
.abv_crm_task_title{
  font-weight: 900;
  font-size: 14px;
  margin: 0;
}
.abv_crm_task_meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--abv-crm-muted);
  font-size: 12px;
}
.abv_crm_task_actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

/* priority dots */
.abv_crm_dot{
  width: 10px; height: 10px; border-radius: 999px;
  display: inline-block;
  background: rgba(107,122,144,.5);
}
.abv_crm_dot_high{ background: rgba(239,68,68,.65); }
.abv_crm_dot_med{ background: rgba(245,158,11,.70); }
.abv_crm_dot_low{ background: rgba(34,197,94,.65); }

/* ---------- Toast / notice ---------- */
.abv_crm_notice{
  border: 1px solid var(--abv-crm-border);
  background: var(--abv-crm-surface);
  border-radius: var(--abv-crm-radius-md);
  box-shadow: var(--abv-crm-shadow-sm);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.abv_crm_notice_success{ border-color: rgba(34,197,94,.25); }
.abv_crm_notice_warning{ border-color: rgba(245,158,11,.25); }
.abv_crm_notice_danger{  border-color: rgba(239,68,68,.25); }

/* ---------- Utility ---------- */
.abv_crm_row{
  display: flex;
  gap: var(--abv-crm-space-3);
  align-items: center;
  flex-wrap: wrap;
}
.abv_crm_divider{
  height: 1px;
  background: var(--abv-crm-border);
  border: 0;
  margin: 14px 0;
}
.abv_crm_hidden{ display:none !important; }



/* Tabs */
.abv_crm_task_tabs{display:flex;gap:10px;flex-wrap:wrap;}
.abv_crm_task_tab_active{background: var(--abv-crm-primary-100); border-color: rgba(75,130,255,.18); color: var(--abv-crm-primary-600);}

/* Table inline editable */
.abv_crm_table_edit{padding:6px 8px;border-radius:10px;min-height:18px;position:relative;}
.abv_crm_table_edit:empty:before{content: attr(data-placeholder); color: rgba(107,122,144,.65);}
.abv_crm_table_edit[contenteditable="true"]:focus{outline:none;box-shadow:var(--abv-crm-focus);background:#fff;border:1px solid rgba(75,130,255,.25)}

/* Add new row */
.abv_crm_new_row td{background: rgba(75,130,255,.04);}
.abv_crm_new_row .abv_crm_input, .abv_crm_new_row .abv_crm_select{background:#fff;}

/* Header filter button */
.abv_crm_th_btn{
  border:1px solid transparent;background:transparent;cursor:pointer;
  border-radius:10px;padding:4px 8px;margin-left:6px;color: rgba(107,122,144,.85);
}
.abv_crm_th_btn:hover{background: rgba(75,130,255,.08); border-color: rgba(75,130,255,.14);}

/* Filter dropdown */
.abv_crm_filter_dd{
  position:absolute; z-index:2000;
  width: 320px;
  background: var(--abv-crm-surface);
  border:1px solid var(--abv-crm-border);
  border-radius: var(--abv-crm-radius-md);
  box-shadow: var(--abv-crm-shadow-md);
  overflow:hidden;
}
.abv_crm_filter_dd_head{
  padding:10px 12px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--abv-crm-border);
  background: linear-gradient(180deg,#fff,#fbfcff);
}
.abv_crm_filter_dd_body{padding:12px; display:grid; gap:10px;}
.abv_crm_filter_dd_list{max-height:240px; overflow:auto; border:1px solid var(--abv-crm-border); border-radius:12px; padding:8px; background:#fff;}
.abv_crm_filter_dd_item{display:flex; gap:10px; align-items:center; padding:8px; border-radius:10px; cursor:pointer;}
.abv_crm_filter_dd_item:hover{background: rgba(75,130,255,.06);}
.abv_crm_filter_dd_foot{
  padding:10px 12px; border-top:1px solid var(--abv-crm-border);
  display:flex; justify-content:flex-end; gap:10px; background:#fff;
}

/* Status builder palette */
.abv_crm_status_row{
  border:1px solid var(--abv-crm-border);
  border-radius: var(--abv-crm-radius-md);
  padding:12px;
  background: #fff;
  display:grid;
  gap:10px;
  margin-bottom:10px;
}
.abv_crm_status_row_left{display:grid; grid-template-columns: 16px 1fr auto; gap:10px; align-items:center;}
.abv_crm_status_color{width:16px;height:16px;border-radius:6px; box-shadow: 0 2px 8px rgba(15,23,42,.12);}
.abv_crm_status_palette{display:flex; flex-wrap:wrap; gap:8px;}
.abv_crm_status_swatch{
  width:18px; height:18px; border-radius:6px;
  border:1px solid rgba(15,23,42,.10);
  cursor:pointer;
}
.abv_crm_status_swatch:hover{transform: translateY(-1px);}

/* Drag hints */
.abv_crm_task_card_dragging{opacity:.65; transform: rotate(-0.4deg); }
.abv_crm_drop_hint{outline:2px dashed rgba(75,130,255,.35); outline-offset:6px; border-radius:14px;}

/* ==========================================================================\n   v2 — COMMON PRODUCT PATTERNS\n   Эти классы добавлены поверх старого набора без ломки существующей разметки.\n   ========================================================================== */

/* Page header: заголовок раздела + главное действие справа. */
.abv_crm_page_head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom:16px;
}
.abv_crm_page_title{font-size:clamp(24px,2vw,32px);line-height:1.12;font-weight:800;letter-spacing:-.025em;margin:0;}
.abv_crm_page_subtitle{margin:4px 0 0;color:var(--abv-crm-muted);font-size:14px;}

/* Surface panel: для крупных функциональных областей. В отличие от card имеет более спокойную тень. */
.abv_crm_panel{background:rgba(255,255,255,.88);border:1px solid var(--abv-crm-border);border-radius:var(--abv-crm-radius-lg);box-shadow:0 2px 10px rgba(15,23,42,.025);}
.abv_crm_panel_pad{padding:24px;}

/* KPI strip: финансовая сводка. На desktop — одна строка, на mobile — 2 колонки. */
.abv_crm_kpis{display:grid;grid-template-columns:repeat(var(--abv-kpi-cols,4),minmax(0,1fr));border:1px solid var(--abv-crm-border);border-radius:var(--abv-crm-radius-lg);overflow:hidden;background:var(--abv-crm-surface);}
.abv_crm_kpi{min-width:0;padding:18px 20px;border-right:1px solid var(--abv-crm-border);}
.abv_crm_kpi:last-child{border-right:0;}
.abv_crm_kpi_label{font-size:13px;color:var(--abv-crm-muted);margin-bottom:4px;}
.abv_crm_kpi_value{font-size:clamp(20px,2vw,28px);line-height:1.1;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;}
.abv_crm_kpi_meta{margin-top:5px;font-size:12px;color:var(--abv-crm-muted);}
.abv_crm_value_success{color:#2f8a45;}.abv_crm_value_danger{color:#c7352c;}

/* Toolbar: поиск + фильтры + действия. Использовать вместо ручной раскладки полей. */
.abv_crm_toolbar{display:flex;align-items:center;gap:10px;min-width:0;}
.abv_crm_toolbar_search{flex:1 1 420px;min-width:180px;}
.abv_crm_toolbar_actions{display:flex;gap:10px;align-items:center;flex:0 0 auto;}

/* Tabs: единый паттерн переключения представлений. На телефоне скроллится горизонтально. */
.abv_crm_tabs{display:flex;align-items:center;gap:4px;padding:4px;background:#f1f3f7;border-radius:14px;width:max-content;max-width:100%;}
.abv_crm_tab{min-height:38px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:var(--abv-crm-text);font:inherit;font-size:14px;font-weight:700;white-space:nowrap;display:inline-flex;align-items:center;text-decoration:none;cursor:pointer;}
.abv_crm_tab:hover{background:rgba(255,255,255,.7);}
.abv_crm_tab_active{background:#111827;color:#fff;box-shadow:0 1px 3px rgba(15,23,42,.12);}

/* Horizontal chips rail: месяцы, периоды, быстрые фильтры. */
.abv_crm_rail{display:flex;align-items:center;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;padding:2px;}
.abv_crm_rail::-webkit-scrollbar{display:none;}
.abv_crm_rail > *{flex:0 0 auto;}

/* Status: нейтральные компактные статусы без чрезмерной заливки. */
.abv_crm_status{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 10px;border:1px solid var(--abv-crm-border);border-radius:999px;background:#fff;font-size:12px;font-weight:700;white-space:nowrap;}
.abv_crm_status_success{color:#26743a;border-color:rgba(34,197,94,.28);background:var(--abv-crm-success-soft);}
.abv_crm_status_warning{color:#a85f06;border-color:rgba(245,158,11,.3);background:var(--abv-crm-warning-soft);}
.abv_crm_status_danger{color:#b72e27;border-color:rgba(239,68,68,.3);background:var(--abv-crm-danger-soft);}

/* Icon button: меню, печать, скачать, редактировать. Не делать отдельные размеры вручную. */
.abv_crm_icon_btn{width:var(--abv-crm-control-h);height:var(--abv-crm-control-h);padding:0;border:1px solid var(--abv-crm-border);border-radius:12px;background:#fff;color:var(--abv-crm-text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;}
.abv_crm_icon_btn:hover{background:#f8faff;border-color:#d8dfec;}

/* List rows: предпочтительный desktop-формат для финансовых списков вместо множества отдельных карточек. */
.abv_crm_list{border:1px solid var(--abv-crm-border);border-radius:var(--abv-crm-radius-lg);overflow:hidden;background:#fff;}
.abv_crm_list_row{display:grid;grid-template-columns:var(--abv-list-cols,minmax(220px,2fr) repeat(3,minmax(120px,1fr)) auto);gap:18px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--abv-crm-border);min-width:0;}
.abv_crm_list_row:last-child{border-bottom:0;}
.abv_crm_list_row:hover{background:#fbfcfe;}
.abv_crm_list_primary{min-width:0;font-weight:750;}
.abv_crm_list_secondary{margin-top:3px;color:var(--abv-crm-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.abv_crm_metric_label{font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;color:var(--abv-crm-muted);font-weight:700;}
.abv_crm_metric_value{margin-top:4px;font-size:15px;line-height:1.25;font-weight:750;font-variant-numeric:tabular-nums;}

/* Mobile card: можно использовать явно либо как целевой вид вместо desktop table. */
.abv_crm_mobile_card{display:none;background:#fff;border:1px solid var(--abv-crm-border);border-radius:16px;padding:16px;}

/* Bottom sheet: рекомендуемый mobile-формат для меню действий и фильтров. JS переключает .abv_crm_is_open. */
.abv_crm_sheet_overlay{position:fixed;inset:0;z-index:1000;background:rgba(15,23,42,.34);display:none;align-items:flex-end;}
.abv_crm_sheet_overlay.abv_crm_is_open{display:flex;}
.abv_crm_sheet{width:100%;max-height:min(78vh,720px);overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:10px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -16px 40px rgba(15,23,42,.12);}
.abv_crm_sheet_handle{width:42px;height:4px;border-radius:99px;background:#d8dee9;margin:2px auto 14px;}

/* Skeleton/empty state: готовые состояния списка без технических сообщений. */
.abv_crm_empty{padding:28px 20px;border:1px dashed #d8deea;border-radius:14px;text-align:center;color:var(--abv-crm-muted);background:rgba(255,255,255,.55);}

/* Доступность: клавиатурный focus виден на всех интерактивных элементах. */
.abv_crm_btn:focus-visible,.abv_crm_icon_btn:focus-visible,.abv_crm_tab:focus-visible,.abv_crm_menu_item:focus-visible,.abv_crm_dropdown_item:focus-visible{outline:none;box-shadow:var(--abv-crm-focus);}

/* Motion: уважать системную настройку уменьшения анимации. */
@media (prefers-reduced-motion:reduce){.abv_crm_app *,.abv_crm_app *::before,.abv_crm_app *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;}}

/* Tablet */
@media (max-width:980px){
  .abv_crm_container,.abv_crm_nav_inner{width:min(100% - 28px,var(--abv-crm-content-max));}
  .abv_crm_kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .abv_crm_kpi:nth-child(2n){border-right:0;}.abv_crm_kpi{border-bottom:1px solid var(--abv-crm-border);}.abv_crm_kpi:nth-last-child(-n+2){border-bottom:0;}
  .abv_crm_list_row{grid-template-columns:minmax(180px,2fr) repeat(2,minmax(110px,1fr)) auto;}
}

/* Mobile: интерфейс перестраивается, а не просто уменьшается. */
@media (max-width:640px){
  .abv_crm_container{width:100%;padding:12px var(--abv-crm-mobile-pad) 28px;box-sizing:border-box;}
  .abv_crm_nav_inner{width:100%;padding:10px var(--abv-crm-mobile-pad);box-sizing:border-box;}
  .abv_crm_page_head{align-items:flex-start;margin-bottom:12px;}.abv_crm_page_title{font-size:26px;}.abv_crm_page_head .abv_crm_btn{min-height:44px;}
  .abv_crm_card_pad,.abv_crm_card_body,.abv_crm_panel_pad{padding:16px;}.abv_crm_card_head{padding:14px 16px;}
  .abv_crm_btn{min-height:44px;padding:0 14px;}.abv_crm_btn_sm{min-height:38px;}.abv_crm_btn_lg{min-height:48px;}
  .abv_crm_input,.abv_crm_select,.abv_crm_textarea{font-size:16px;min-height:44px;padding:10px 12px;} /* 16px предотвращает auto-zoom iOS */
  .abv_crm_toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;}.abv_crm_toolbar_search{min-width:0;}.abv_crm_toolbar_actions{grid-column:1/-1;}
  .abv_crm_tabs{width:100%;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;}.abv_crm_tabs::-webkit-scrollbar{display:none;}.abv_crm_tab{flex:0 0 auto;}
  .abv_crm_kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.abv_crm_kpi{padding:14px 12px;}.abv_crm_kpi_value{font-size:21px;white-space:normal;overflow-wrap:anywhere;}.abv_crm_kpi_meta{font-size:11px;}
  .abv_crm_table_wrap{border:0;box-shadow:none;background:transparent;overflow:visible;}.abv_crm_table{min-width:0;}
  .abv_crm_list{border:0;background:transparent;overflow:visible;display:grid;gap:12px;}.abv_crm_list_row{grid-template-columns:1fr auto;gap:12px;padding:16px;border:1px solid var(--abv-crm-border);border-radius:16px;background:#fff;}.abv_crm_list_row:hover{background:#fff;}.abv_crm_list_row > *{min-width:0;}.abv_crm_list_primary{grid-column:1/2;}.abv_crm_list_secondary{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}.abv_crm_mobile_card{display:block;}
  .abv_crm_dropdown_panel{position:fixed;left:12px;right:12px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-height:70vh;overflow:auto;border-radius:18px;z-index:1001;}
  .abv_crm_filter_dd{position:fixed;left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom));top:auto!important;width:auto;max-height:75vh;overflow:auto;border-radius:18px;}
  .abv_crm_modal_overlay{padding:0;align-items:flex-end;}.abv_crm_modal{width:100%;max-height:88vh;border-radius:20px 20px 0 0;border-bottom:0;}.abv_crm_modal_body{overflow:auto;max-height:calc(88vh - 120px);padding:16px;}.abv_crm_modal_foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));}.abv_crm_modal_foot .abv_crm_btn{flex:1 1 140px;}
  .abv_crm_kanban{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(var(--abv-crm-mobile-pad) * -1);padding:0 var(--abv-crm-mobile-pad) 8px;}.abv_crm_kanban_col{flex:0 0 calc(100vw - 48px);min-height:280px;scroll-snap-align:start;}
}

@media (max-width:390px){
  .abv_crm_kpi{padding:12px 10px;}.abv_crm_kpi_value{font-size:19px;}.abv_crm_tab{padding-inline:12px;}.abv_crm_page_title{font-size:24px;}
}

/* End */
/* /bitrix/templates/market/styles.css?177414697824671 */
/* /bitrix/templates/market/template_styles.css?178799631430710 */
