

/* Start:/bitrix/templates/Korona/styles.css?177813940420810*/
/* ============================================
   Korona Hub — Партнёрский кабинет
   styles.css
   ============================================ */

/* ── CSS ПЕРЕМЕННЫЕ ── */
:root {
  --purple:        #5B2D8E;
  --purple-dark:   #451F6E;
  --purple-light:  #F3EEF9;
  --purple-xlight: #FAF7FD;
  --gold:          #C8973A;
  --text:          #1A1A1A;
  --text-muted:    #6B6B6B;
  --border:        #E2D9EE;
  --bg:            #F7F4FC;
  --white:         #FFFFFF;
  --radius:        6px;
  --shadow:        0 2px 14px rgba(91,45,142,.10);
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BODY ── */
body {
  font-family: 'PT Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ============================================
   КАБИНЕТ — ШАПКА
   ============================================ */
.cabinet-header {
  background: var(--purple);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(91,45,142,.25);
}

.cabinet-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cabinet-header-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.cabinet-header-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .3px;
}

.cabinet-header-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cabinet-header-user-name {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-align: right;
}

.cabinet-header-user-name strong {
  color: #fff;
  display: block;
  font-size: 14px;
}

/* ============================================
   LAYOUT
   ============================================ */
.layout { display: flex; min-height: calc(100vh - 64px); }

.main { flex: 1; padding: 32px 40px; overflow: auto; }

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.page-title span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'PT Sans', sans-serif;
  margin-top: 4px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: 228px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
}

.sidebar-section { padding: 0 12px; margin-bottom: 6px; }

.sidebar-label {
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 10px;
  margin-bottom: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all .15s;
}

.sidebar-link:hover { background: var(--purple-light); color: var(--purple); }
.sidebar-link.active { background: var(--purple); color: #fff; }

.nav-icon { width: 16px; height: 16px; opacity: .5; flex-shrink: 0; }
.sidebar-link.active .nav-icon { opacity: 1; }

.sidebar-divider { height: 1px; background: var(--border); margin: 12px 12px; }

.badge {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-link.active .badge { background: rgba(255,255,255,.25); }
.sidebar-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.sidebar-logout { color: #C0392B !important; }
.sidebar-logout:hover { background: #FDEDEC !important; color: #C0392B !important; }

/* ============================================
   ДАШБОРД — ПЛИТКИ СТАТИСТИКИ
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .2s;
  border-left: 3px solid var(--border);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  margin-top: 2px;
}

/* Цвета плиток */
.stat-card.s-all      { border-left-color: var(--purple); }
.stat-card.s-all      .stat-value { color: var(--purple); }
.stat-card.s-new      { border-left-color: #2980B9; }
.stat-card.s-new      .stat-value { color: #2980B9; }
.stat-card.s-work     { border-left-color: var(--gold); }
.stat-card.s-work     .stat-value { color: var(--gold); }
.stat-card.s-done     { border-left-color: #27AE60; }
.stat-card.s-done     .stat-value { color: #27AE60; }
.stat-card.s-active   { border-left-color: #2471A3; }
.stat-card.s-active   .stat-value { color: #2471A3; }
.stat-card.s-rejected { border-left-color: #C0392B; }
.stat-card.s-rejected .stat-value { color: #C0392B; }
.stat-card.s-conversion { border-left-color: var(--gold); cursor: default; }
.stat-card.s-conversion .stat-value { color: var(--gold); }

/* CRM — кликабельные плитки */
a.stat-card { text-decoration: none; color: var(--text); }
a.stat-card:hover { box-shadow: 0 4px 16px rgba(91,45,142,.15); transform: translateY(-2px); }
.stat-card.stat-active { border: 2px solid var(--purple); box-shadow: 0 4px 16px rgba(91,45,142,.15); }

/* CRM — компактные плитки и сетка 7 колонок */
.crm-stats { grid-template-columns: repeat(7, 1fr); }
.crm-stats .stat-card { padding: 10px 14px; gap: 2px; }
.crm-stats .stat-value { font-size: 22px; }
.crm-stats .stat-label { font-size: 10px; }
.crm-stats .stat-hint  { font-size: 9px; }

/* ============================================
   ФИЛЬТРЫ И ПОИСК
   ============================================ */
.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-select,
.filter-input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: 13px;
  font-family: 'PT Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border .2s;
}

.filter-select:focus,
.filter-input:focus { border-color: var(--purple); }

.filter-input { width: 220px; }

.filter-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.btn-filter {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 7px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .3px;
}

.btn-filter:hover { background: var(--purple-dark); }

.filter-reset {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 10px;
  transition: color .2s;
}

.filter-reset:hover { color: var(--purple); }

/* ============================================
   ТАБЛИЦА
   ============================================ */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--purple);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; cursor: pointer; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--purple-xlight); }
tbody td { padding: 13px 16px; font-size: 14px; vertical-align: middle; }

/* Ячейки таблицы */
.deal-id { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; color: var(--purple); }
.deal-title { font-weight: 600; color: var(--text); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-contact { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.deal-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.td-comment {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Сортировка */
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover,
.th-sort-active { background: var(--purple-dark); }
.th-date { width: 80px; }

/* Кнопка открыть */
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--purple);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  transition: all .2s;
  white-space: nowrap;
}

.btn-view:hover { background: var(--purple); color: #fff; }

/* Пагинация */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.page-btns { display: flex; gap: 4px; }

.page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.page-btn:hover { border-color: var(--purple); color: var(--purple); }
.page-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Пустой список */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 16px; display: block; opacity: .5; }
.empty-state p { font-size: 15px; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state small { font-size: 13px; }

/* ============================================
   СТАТУСЫ
   ============================================ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-new      { background: #EBF5FB; color: #1A6FA3; }
.status-progress { background: #FEF9EC; color: #B8860B; }
.status-done     { background: #EAFAF1; color: #1E8449; }
.status-rejected { background: #FDEDEC; color: #C0392B; }

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a { color: var(--purple); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ============================================
   АЛЕРТЫ
   ============================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.alert-success { background: #EAFAF1; color: #1E8449; border: 1px solid #A9DFBF; }
.alert-error   { background: #FDEDEC; color: #C0392B; border: 1px solid #F5B7B1; }

/* ============================================
   ДЕТАЛЬНАЯ СТРАНИЦА ЗАЯВКИ
   ============================================ */
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-left,
.detail-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

.detail-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.detail-card-action { border-color: var(--purple); }
.detail-card-action .detail-card-title { background: var(--purple-light); color: var(--purple); }

.detail-rows { padding: 4px 0; }

.detail-row {
  display: flex;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.detail-row:last-child { border-bottom: none; }

.detail-row-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  width: 180px;
  flex-shrink: 0;
  padding-top: 1px;
}

.detail-row-value { flex: 1; font-size: 14px; color: var(--text); line-height: 1.4; }

.detail-row-value.detail-comment-korona {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.detail-comment { padding: 14px 18px; font-size: 14px; line-height: 1.6; color: var(--text); }
.detail-comment-partner { background: var(--purple-light); border-left: 3px solid var(--purple); }
.detail-link { color: var(--purple); text-decoration: none; }
.detail-link:hover { text-decoration: underline; }

/* Форма обработки заявки */
.action-field { padding: 14px 18px 0; }

.action-label {
  display: block;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
}

.action-select,
.action-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'PT Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.action-select { cursor: pointer; }
.action-select:focus,
.action-textarea:focus { border-color: var(--purple); }
.action-textarea { resize: vertical; line-height: 1.5; }

.action-submit {
  display: block;
  width: calc(100% - 36px);
  margin: 16px 18px 18px;
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .3px;
}

.action-submit:hover { background: var(--purple-dark); }

/* ============================================
   ГЛАВНАЯ — МОДУЛИ
   ============================================ */
.dashboard-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
}

.module-active { border-color: var(--purple); cursor: pointer; }
.module-active:hover { box-shadow: 0 4px 16px rgba(91,45,142,.15); transform: translateY(-2px); }
.module-disabled { opacity: .55; cursor: not-allowed; background: var(--bg); }
.module-icon { margin-bottom: 4px; }
.module-title { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; color: var(--text); }
.module-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.module-badge {
  display: inline-block;
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #EAFAF1;
  color: #1E8449;
  margin-top: 4px;
  width: fit-content;
}

.module-badge-soon { background: var(--purple-light); color: var(--purple); }

/* ============================================
   СТРАНИЦА АВТОРИЗАЦИИ
   ============================================ */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(91,45,142,.10);
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-logo-img {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.auth-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}

.auth-error {
  background: #FDEDEC;
  color: #C0392B;
  border: 1px solid #F5B7B1;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

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

/* Форма Битрикс внутри .auth-card */
.auth-card input[type="text"],
.auth-card input[type="password"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'PT Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 4px;
  height: auto;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91,45,142,.08);
}

.auth-card input[type="submit"] {
  width: 100%;
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .5px;
  height: auto;
  margin-top: 8px;
}

.auth-card input[type="submit"]:hover { background: var(--purple-dark); }

.auth-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  cursor: pointer;
  vertical-align: middle;
  margin-right: 6px;
}

.auth-card table { width: 100%; border-collapse: collapse; }
.auth-card td { display: block; padding: 0 0 6px 0; border: none; }
.auth-card tr { display: block; margin-bottom: 10px; }

.auth-card label {
  display: block;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
}

.auth-card hr { display: none; }

.auth-card a {
  color: var(--purple);
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.auth-card a:hover { text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .crm-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding: 20px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cabinet-header { padding: 0 16px; }
  .detail-grid { flex-direction: column; }
  .dashboard-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .crm-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .dashboard-modules { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-logo-img { width: 180px; }
}
/* End */
/* /bitrix/templates/Korona/styles.css?177813940420810 */
