:root{--bg:#f4f6fa;--card:#fff;--text:#172033;--muted:#7a8497;--line:#e5e9f0;--blue:#356df3;--green:#20a66a;--red:#e45e68;--amber:#e5a33f;--purple:#805fd4;--shadow:0 8px 30px rgba(24,35,55,.06)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:64px;background:#101728;color:white;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1240px)/2));gap:40px}.brand{font-weight:900;letter-spacing:.12em;color:#fff;text-decoration:none}.topbar nav{display:flex;gap:22px}.topbar nav a{color:#cfd5e1;text-decoration:none}.topbar nav a:hover{color:#fff}.container{max-width:1240px;margin:0 auto;padding:30px 24px 60px}.page-head,.quick-title,.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.page-head{margin-bottom:22px;align-items:center}.page-head h1,.quick-title h2,.card h2{margin:2px 0 0}.page-head h1{font-size:30px}.eyebrow{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-size:11px;font-weight:800}.muted{color:var(--muted)}.filters{display:flex;gap:10px;align-items:center}.segmented{display:flex;background:#e9edf4;border-radius:12px;padding:4px}.segmented a{padding:8px 11px;color:#59657a;text-decoration:none;border-radius:9px;font-weight:700}.segmented a.active{background:#fff;color:#182135;box-shadow:0 2px 8px rgba(20,30,50,.08)}select,input,textarea{border:1px solid #d9dfea;border-radius:10px;background:#fff;padding:9px 11px;color:var(--text);font:inherit}.quick-panel{background:#111a2d;color:white;border-radius:20px;padding:22px;box-shadow:var(--shadow);margin-bottom:18px}.quick-title{align-items:end;margin-bottom:16px}.quick-title .eyebrow{color:#8d9bb8}.manager-picker{display:grid;gap:5px;color:#aeb8ca;font-size:12px}.manager-picker select{min-width:170px;background:#1d2942;border-color:#33415e;color:#fff}.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.quick{border:0;border-radius:14px;padding:16px 12px;text-align:left;min-height:82px;cursor:pointer;background:#1c2740;color:white;transition:.15s transform,.15s background}.quick:hover{transform:translateY(-2px);background:#253454}.quick strong,.quick span{display:block}.quick strong{font-size:14px}.quick span{font-size:11px;color:#aeb8ca;margin-top:6px}.quick.demo{background:#17472f}.quick.reject{background:#47252e}.quick.no-answer{background:#2c3445}.quick.callback{background:#352d56}.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.kpis article,.card{background:var(--card);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.kpis article{padding:18px}.kpis span,.kpis small{display:block;color:var(--muted)}.kpis strong{display:block;font-size:30px;margin:4px 0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.card{padding:20px;margin-bottom:16px}.card-head{align-items:center;margin-bottom:18px}.funnel{display:grid;justify-items:center;gap:7px}.funnel div{width:var(--w);max-width:440px;background:linear-gradient(90deg,#4077f5,#5e8fff);border-radius:10px;padding:10px 18px;color:#fff;display:flex;justify-content:space-between;align-items:center}.funnel div b{font-size:20px}.funnel div span{text-transform:uppercase;font-size:11px;letter-spacing:.08em}.funnel em{font-style:normal;color:var(--muted);font-size:12px}.pie-wrap{display:grid;grid-template-columns:190px 1fr;gap:22px;align-items:center}.donut{width:180px;height:180px;border-radius:50%;display:grid;place-items:center}.donut>div{width:105px;height:105px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}.donut b{font-size:27px}.donut span{color:var(--muted);font-size:11px}.legend{display:grid;gap:8px}.legend>div{display:grid;grid-template-columns:12px 1fr 38px 46px;align-items:center;gap:8px}.legend i{width:9px;height:9px;border-radius:50%}.legend small{color:var(--muted);text-align:right}.trend-scroll svg{width:100%;height:180px;overflow:visible}.axis{stroke:#e4e8ef;stroke-width:1}.trend-line{fill:none;stroke:#356df3;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}.trend-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;overflow:hidden}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:680px}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f5}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}td a{color:var(--blue);text-decoration:none;font-weight:700}.badge{display:inline-flex;border-radius:999px;padding:5px 9px;background:#edf1f7}.result-no_answer{background:#edf0f4}.result-secretary{background:#fff1d9}.result-lpr_work{background:#e8f0ff}.result-lpr_reject{background:#ffe7ea}.result-lpr_callback{background:#efe9ff}.result-lpr_demo{background:#e1f7ec}.icon-btn{border:0;background:#edf0f5;border-radius:9px;width:31px;height:31px;cursor:pointer;font-size:18px}.empty{text-align:center;color:var(--muted);padding:34px}.toast{position:fixed;right:24px;bottom:24px;padding:12px 16px;border-radius:12px;color:white;z-index:20;box-shadow:var(--shadow)}.toast.ok{background:#17764b}.toast.bad{background:#a52d39}dialog{border:0;border-radius:18px;padding:0;box-shadow:0 20px 80px rgba(20,30,50,.25);width:min(460px,calc(100vw - 28px))}dialog::backdrop{background:rgba(15,23,40,.45)}dialog form{padding:20px;display:grid;gap:15px}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h3{margin:0}.dialog-head .icon-btn{margin-left:auto}dialog label{display:grid;gap:6px;font-weight:700}dialog textarea{resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:9px}.primary,.secondary{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.primary{background:var(--blue);color:#fff}.secondary{background:#edf0f5;color:#354055}.manager-admin{max-width:720px}.add-manager{display:flex;gap:10px;margin-bottom:24px}.add-manager input{flex:1}.manager-list{display:grid}.manager-list>div{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-top:1px solid var(--line)}.manager-list span{display:grid}.manager-list small{color:var(--muted)}
@media(max-width:900px){.quick-grid{grid-template-columns:repeat(3,1fr)}.kpis{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.filters{width:100%;overflow:auto}.pie-wrap{grid-template-columns:1fr;justify-items:center}.legend{width:100%}}
@media(max-width:560px){.container{padding:20px 12px 50px}.topbar{padding:0 16px}.quick-title{align-items:flex-start;flex-direction:column}.manager-picker,.manager-picker select{width:100%}.quick-grid{grid-template-columns:repeat(2,1fr)}.kpis{grid-template-columns:1fr 1fr}.segmented a{padding:7px 8px;font-size:12px}.filters{display:block}.filters>select{margin-top:8px;width:100%}}
.userbar{margin-left:auto;display:flex;align-items:center;gap:14px}.userbar>span{display:grid;line-height:1.2}.userbar small{color:#9aa6bb;font-size:10px;margin-top:3px}.logout-btn{border:1px solid #33415e;background:#1b2740;color:#d7deea;border-radius:9px;padding:7px 10px;cursor:pointer}.quick-as{color:#aeb8ca}.quick-as b{color:#fff}.text-link{color:var(--blue);text-decoration:none;font-weight:800}.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.plan-item{display:grid;gap:8px}.plan-row{display:flex;justify-content:space-between;align-items:center}.plan-row b{font-size:18px}.plan-item small{color:var(--muted)}.progress{height:10px;background:#edf0f5;border-radius:999px;overflow:hidden}.progress i{display:block;height:100%;background:var(--blue);border-radius:999px}.login-body{min-height:100vh;display:grid;place-items:center;padding:18px;background:#111a2d}.login-card{width:min(430px,100%);background:#fff;border-radius:22px;padding:30px;box-shadow:0 24px 80px rgba(0,0,0,.28)}.login-logo{font-size:14px;font-weight:900;letter-spacing:.14em;margin-bottom:28px}.login-card h1{font-size:30px;margin:4px 0 6px}.login-form{display:grid;gap:14px;margin-top:20px}.login-form label,.user-create-form label,.goal-form label{display:grid;gap:5px;font-weight:700;font-size:12px}.login-form .primary{margin-top:4px;padding:12px}.form-error{background:#ffe9ec;color:#9b2634;border-radius:10px;padding:10px 12px;margin-top:14px}.goal-list>div{gap:15px}.manager-goal-row{display:grid!important;grid-template-columns:130px 1fr auto!important}.manager-name{display:grid}.goal-form{display:grid;grid-template-columns:repeat(3,minmax(75px,1fr)) auto;gap:8px;align-items:end}.goal-form input{width:100%}.user-admin{margin-bottom:16px}.user-create-form{display:grid;grid-template-columns:1fr 1fr 170px 1fr auto;gap:10px;align-items:end}.inline-password{display:flex;gap:7px}.inline-password input{min-width:150px}
@media(max-width:900px){.topbar{gap:18px}.topbar nav{gap:12px}.userbar{margin-left:auto}.plan-grid{grid-template-columns:1fr}.manager-goal-row{grid-template-columns:1fr!important}.goal-form{grid-template-columns:repeat(3,1fr) auto}.user-create-form{grid-template-columns:1fr 1fr}.user-create-form .primary{min-height:40px}}
@media(max-width:650px){.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.topbar nav{order:3;width:100%}.userbar{margin-left:auto}.userbar small{display:none}.goal-form{grid-template-columns:repeat(3,1fr)}.goal-form .primary{grid-column:1/-1}.user-create-form{grid-template-columns:1fr}.login-card{padding:24px}.plan-row b{font-size:16px}}
/* v1.2 */
.quick-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.quick.sale{background:#13543a}
.kpis{grid-template-columns:repeat(6,1fr)}
.result-lpr_sale{background:#dff7ea}
.danger{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer;background:#ffe6e8;color:#aa2d3b}
.danger:hover{background:#ffd9dd}
.wide-manager-admin{max-width:none}
.manager-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.manager-actions form{margin:0}
.month-nav{display:flex;gap:8px;align-items:center}.month-nav input{min-height:40px}.link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:40px}
.department-goal-form{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;gap:12px;align-items:end}.department-goal-form label{display:grid;gap:6px;font-weight:700;font-size:12px}
.department-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.metric-card{display:grid;gap:9px}.metric-card>span{color:var(--muted);font-weight:700}.metric-card>strong{font-size:32px}.metric-card>small{color:var(--muted)}.metric-card>b{font-size:13px}
.archived-badge{margin-left:7px;background:#f1f2f5;color:#727b8c;font-size:10px}
.hint-card p{margin-bottom:0}.page-error{margin-bottom:16px}
@media(max-width:1100px){.quick-grid{grid-template-columns:repeat(4,1fr)}.kpis{grid-template-columns:repeat(3,1fr)}.department-goal-form{grid-template-columns:repeat(2,1fr)}.department-goal-form .primary{min-height:40px}.manager-goal-row{grid-template-columns:120px 1fr!important}.manager-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:700px){.department-kpis{grid-template-columns:1fr}.department-goal-form{grid-template-columns:1fr}.month-nav{width:100%}.month-nav input{flex:1}.kpis{grid-template-columns:1fr 1fr}}
/* v1.3 */
.money-plan-card{display:grid;gap:16px}.money-plan-card .card-head{margin-bottom:0}.money-percent{font-size:28px}.money-plan-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px}.money-plan-summary>div{background:#f7f9fc;border:1px solid var(--line);border-radius:14px;padding:14px}.money-plan-summary span,.money-plan-summary strong{display:block}.money-plan-summary strong{font-size:24px;margin-top:4px}.money-progress{height:13px}.money-progress i{background:#1f9d62}.money-plan-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.money-plan-form label{display:grid;gap:6px;font-size:12px;font-weight:700}.money-plan-form .primary{min-height:40px}.money-table .mini-progress{min-width:130px;display:grid;gap:4px}.money-table .mini-progress small{color:var(--muted)}.money-table td{vertical-align:middle}
@media(max-width:760px){.money-plan-form{grid-template-columns:1fr}.money-plan-summary{grid-template-columns:1fr}.money-percent{font-size:22px}}
/* COMPASSSALES_THEME_V14_START */

:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#182235;
  --muted:#7c8799;
  --line:#e5eaf1;

  --blue:#4968d8;
  --green:#16856b;
  --red:#c85e69;
  --amber:#c79545;
  --purple:#7668a8;

  --shadow:0 6px 22px rgba(29,43,68,.045);
}

body{
  background:var(--bg);
}

.topbar{
  background:#172033;
  gap:34px;
}

.brand{
  font-size:17px;
  letter-spacing:.035em;
  text-transform:none;
}

.topbar nav{
  gap:19px;
}

.topbar nav a{
  color:#bfc8d7;
}

.topbar nav a:hover{
  color:#fff;
}

.container{
  max-width:1280px;
}

.card,
.kpis article{
  box-shadow:var(--shadow);
  border-color:var(--line);
}

.page-head{
  margin-bottom:16px;
}

.page-head h1{
  font-size:29px;
}

.eyebrow{
  letter-spacing:.085em;
}

.segmented{
  background:#eceff5;
}

.segmented a.active{
  box-shadow:none;
  border:1px solid #e2e7ef;
}


/* Быстрая фиксация */

.quick-panel{
  background:#172033;
  border-radius:18px;
  padding:19px 20px;
  box-shadow:none;
}

.quick-grid{
  gap:8px;
}

.quick,
.quick.no-answer,
.quick.secretary,
.quick.lpr,
.quick.reject,
.quick.callback,
.quick.demo,
.quick.sale{
  background:#202a3b;
  border:1px solid #2b374a;
  border-left:3px solid #63738d;

  border-radius:12px;
  min-height:76px;
  padding:14px 12px;
}

.quick:hover{
  background:#253145;
  transform:translateY(-1px);
}

.quick.reject{
  border-left-color:#ba6670;
}

.quick.callback{
  border-left-color:#8172b7;
}

.quick.demo,
.quick.sale{
  border-left-color:#3c9a7e;
}

.quick.lpr{
  border-left-color:#5b7bdd;
}

.quick strong{
  font-size:13px;
}

.quick span{
  color:#9eabc0;
}


/* KPI */

.kpis{
  gap:9px;
  margin:14px 0 16px;
}

.kpis article{
  padding:14px 15px;
  border-radius:14px;
}

.kpis strong{
  font-size:26px;
  margin:2px 0;
}

.kpis span,
.kpis small{
  font-size:11px;
}

.card{
  border-radius:15px;
  padding:18px;
}


/* Основные акценты */

.primary{
  background:#4968d8;
}

.text-link,
td a{
  color:#4968d8;
}

.progress{
  background:#edf0f5;
}

.progress i{
  background:#526fce;
}

.money-progress i{
  background:#16856b;
}

.funnel div{
  background:#526fce;
}

.trend-line{
  stroke:#526fce;
}


/* LOGIN */

.login-body{
  background:#172033;
}

.login-card{
  box-shadow:0 22px 70px rgba(10,18,34,.22);
}


/* Деньги на главной */

.money-overview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:10px;
  margin-bottom:14px;
}

.money-glance{
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:15px 17px;
  box-shadow:var(--shadow);
}

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

.money-glance-head > div{
  display:grid;
  gap:1px;
}

.money-glance-head span{
  font-weight:800;
}

.money-glance-head small{
  color:var(--muted);
  font-size:11px;
}

.money-glance-head > b{
  font-size:18px;
  color:#16856b;
  font-variant-numeric:tabular-nums;
}

.money-glance-value{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:9px;
}

.money-glance-value strong{
  font-size:25px;
  letter-spacing:-.025em;
  white-space:nowrap;
}

.money-glance-value span{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.money-glance .progress{
  height:7px;
}

.money-glance .progress i{
  background:#16856b;
}

.personal-money .progress i{
  background:#4968d8;
}

.personal-money .money-glance-head > b{
  color:#4968d8;
}


@media(max-width:760px){

  .money-overview{
    grid-template-columns:1fr;
  }

  .money-glance-value{
    align-items:flex-start;
    flex-direction:column;
    gap:0;
  }

  .money-glance-value strong{
    font-size:23px;
  }
}

/* COMPASSSALES_THEME_V14_END */

/* CompassSales: hidden fields must really stay hidden */
[hidden] {
  display: none !important;
}

dialog label[hidden] {
  display: none !important;
}


/* COMPASSSALES_PARTNERS_V15_START */

.revenue-split{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}

.revenue-split article{
  background:#fff;
  border:1px solid
    var(--line,#e5eaf1);
  border-radius:14px;
  padding:14px 16px;
  box-shadow:
    var(--shadow,
      0 6px 22px
      rgba(29,43,68,.045));
  display:grid;
  gap:3px;
}

.revenue-split span{
  font-size:11px;
  color:var(--muted,#7c8799);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.revenue-split strong{
  font-size:24px;
  letter-spacing:-.02em;
}

.revenue-split small{
  color:var(--muted,#7c8799);
  font-size:11px;
}

.revenue-total strong{
  color:var(--green,#16856b);
}

.revenue-total .progress{
  margin-top:5px;
  height:7px;
}


.partner-summary{
  display:grid;
  grid-template-columns:
    minmax(260px,.8fr)
    minmax(320px,1.2fr);
  gap:12px;
  margin-bottom:14px;
}

.add-partner-card form{
  display:flex;
  align-items:end;
  gap:10px;
}

.add-partner-card label{
  flex:1;
}

.partner-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  align-items:center;
}

.partner-money-form{
  display:flex;
  gap:8px;
  align-items:center;
}

.partner-money-form input{
  width:150px;
}

.money-breakdown{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid
    var(--line,#e5eaf1);
}

.money-breakdown span{
  font-size:11px;
  color:var(--muted,#7c8799);
}

.money-breakdown b{
  color:var(--text,#182235);
}


@media(max-width:760px){

  .revenue-split{
    grid-template-columns:1fr;
  }

  .partner-summary{
    grid-template-columns:1fr;
  }

  .add-partner-card form,
  .partner-actions,
  .partner-money-form{
    align-items:stretch;
    flex-direction:column;
  }

  .partner-money-form input{
    width:100%;
  }
}

/* COMPASSSALES_PARTNERS_V15_END */

/* CompassSales brand logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
}

.brand span {
  line-height: 1;
}

@media (max-width: 760px) {
  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
}

/* COMPASSSALES_WEEKLY_PLAN_V16_FIX */

.period-date {
  margin-top: 2px;
  margin-bottom: 4px;
  color: #5f6b7e;
  font-size: 15px;
  font-weight: 700;
}

.weekly-plan-shell {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.weekly-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.weekly-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.weekly-percent {
  color: #16856b;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.weekly-numbers {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 18px;
  margin: 13px 0 10px;
}

.weekly-numbers > div {
  display: grid;
  gap: 2px;
}

.weekly-numbers span {
  color: #7c8799;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.weekly-numbers b {
  font-size: 19px;
}

.weekly-status {
  justify-self: end;
  align-self: center;
  font-size: 12px;
  font-weight: 800;
}

.weekly-status.ahead,
.weekly-status.done {
  color: #16856b;
}

.weekly-status.behind {
  color: #c85e69;
}

.weekly-status.neutral {
  color: #7c8799;
}

.weekly-personal-card .edit-weekly-plan {
  margin-top: 12px;
}

.weekly-manager-list {
  display: grid;
}

.weekly-manager-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.1fr)
    minmax(170px, 1fr)
    minmax(160px, .9fr)
    auto;

  gap: 14px;
  align-items: center;

  padding: 11px 0;

  border-top: 1px solid #e5eaf1;
}

.weekly-manager-row:first-child {
  border-top: 0;
}

.weekly-manager-name {
  display: grid;
  gap: 2px;
}

.weekly-manager-name small {
  color: #7c8799;
}

@media (max-width: 800px) {

  .weekly-numbers {
    grid-template-columns: 1fr 1fr;
  }

  .weekly-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .weekly-manager-row {
    grid-template-columns: 1fr;
  }

}


/* COMPASSSALES_PILOT_STAGE */

.quick-grid {
  grid-template-columns:
    repeat(8, minmax(0, 1fr));
}

.quick.pilot {
  border-left-color: #2e9f92;
}

.result-lpr_pilot {
  background: #def4f1;
}

@media (max-width: 1400px) {

  .quick-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 800px) {

  .quick-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}



/* COMPASSSALES_DEPARTMENT_WEEKLY_FORM_CSS */

.department-weekly-form {
  display: flex;
  align-items: end;
  gap: 9px;

  margin-top: 13px;
  padding-top: 12px;

  border-top: 1px solid
    var(--line, #e5eaf1);
}


.department-weekly-form label {
  display: grid;
  gap: 5px;
  flex: 1;
}


.department-weekly-form label > span {
  color:
    var(--muted, #7c8799);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .05em;
  text-transform: uppercase;
}


.department-weekly-form input {
  height: 38px;
  min-width: 0;
}


.department-weekly-form button {
  min-height: 38px;
  white-space: nowrap;
}


@media (max-width: 650px) {

  .department-weekly-form {
    flex-direction: column;
    align-items: stretch;
  }

}

/* END COMPASSSALES_DEPARTMENT_WEEKLY_FORM_CSS */



/* COMPASSSALES_ACTIONS_V18 */

.quick.action {
  border-left-color: #e28a3b;
}

.actions-kpi strong {
  color: #355fc7;
}

/*
  После добавления действия кнопок стало больше.
  На широком экране распределяем их ровнее.
*/
.quick-grid {
  grid-template-columns:
    repeat(9, minmax(0, 1fr));
}

@media (max-width: 1500px) {
  .quick-grid {
    grid-template-columns:
      repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .quick-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* END COMPASSSALES_ACTIONS_V18 */



/* COMPASSSALES_NICHE_CSS_START */

.niche-dialog {
  width: min(
    540px,
    calc(100vw - 28px)
  );
}


.niche-question {
  margin:
    4px 0 14px;

  color:
    var(--muted, #7c8799);

  font-size: 13px;
}


.niche-choice-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 12px;
}


.niche-choice {
  min-height: 78px;

  border:
    1px solid #dce3ec;

  border-radius: 14px;

  background: #f7f9fc;

  color: #182235;

  font-size: 16px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform .12s ease,
    border-color .12s ease,
    background .12s ease;
}


.niche-choice:hover {
  transform:
    translateY(-1px);

  border-color: #93a6ce;

  background: #f0f4fb;
}


.niche-cancel {
  width: 100%;
}


.niche-analytics {
  overflow: hidden;
}


.niche-help {
  margin:
    -3px 0 13px;

  color:
    var(--muted, #7c8799);

  font-size: 11px;
}


.niche-table th,
.niche-table td {
  white-space: nowrap;
}


.niche-leader {
  background:
    rgba(34, 156, 116, .055);
}


.niche-leader-badge {
  display: inline-flex;

  align-items: center;

  margin-left: 7px;

  padding:
    3px 7px;

  border-radius: 999px;

  background: #dff4ec;

  color: #13735b;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .04em;

  text-transform: uppercase;
}


@media (max-width: 620px) {

  .niche-choice-grid {
    grid-template-columns: 1fr;
  }

}

/* COMPASSSALES_NICHE_CSS_END */



/* COMPASSSALES_NICHE_MODAL_DESIGN_START */

#nicheDialog {
  width: min(470px, calc(100vw - 32px));
  max-width: 470px;

  padding: 22px;

  border: 0;
  border-radius: 20px;

  background: #ffffff;

  color: #182235;

  box-shadow:
    0 24px 70px rgba(16, 27, 48, .22);
}

#nicheDialog::backdrop {
  background: rgba(17, 27, 45, .40);
  backdrop-filter: blur(3px);
}


/* HEADER */

#nicheDialog .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;

  margin: 0 0 8px;
}

#nicheDialog .dialog-head > div {
  min-width: 0;
  flex: 1;
}

#nicheDialog .eyebrow {
  margin-bottom: 5px;

  font-size: 10px;
  line-height: 1.2;

  font-weight: 800;

  letter-spacing: .09em;
  text-transform: uppercase;

  color: #8490a3;
}

#nicheDialog h3 {
  margin: 0;

  font-size: 21px;
  line-height: 1.2;

  font-weight: 800;

  color: #172033;
}


/* CLOSE */

#nicheDialog #closeNicheDialog {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: -4px -4px 0 0;
  padding: 0;

  border: 0;
  border-radius: 10px;

  background: #f1f4f8;

  color: #647084;

  font-size: 22px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
}

#nicheDialog #closeNicheDialog:hover {
  background: #e8edf4;
  color: #172033;
}


/* DESCRIPTION */

#nicheDialog .niche-question {
  margin: 0 0 17px;

  font-size: 13px;
  line-height: 1.45;

  color: #7c8798;
}


/* GRID */

#nicheDialog .niche-choice-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin: 0;
}


/* BUTTONS */

#nicheDialog .niche-choice {
  width: 100%;
  height: 66px;
  min-height: 66px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0 16px;

  border: 1px solid #dce3ec;
  border-radius: 13px;

  background: #f8fafc;

  color: #1d293b;

  font-size: 15px;
  line-height: 1;

  font-weight: 750;

  text-align: center;

  cursor: pointer;

  box-shadow: none;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

#nicheDialog .niche-choice:hover {
  background: #f0f4fa;

  border-color: #9aadd0;

  transform: translateY(-1px);
}

#nicheDialog .niche-choice:active {
  transform: translateY(0);
}


/* CANCEL */

#nicheDialog .niche-cancel {
  display: block;

  width: auto;
  min-width: 100px;

  margin: 15px auto 0;
  padding: 8px 14px;

  border: 0;

  background: transparent;

  color: #727f92;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

#nicheDialog .niche-cancel:hover {
  color: #172033;
  background: transparent;
}


/* MOBILE */

@media (max-width: 540px) {

  #nicheDialog {
    width: calc(100vw - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  #nicheDialog h3 {
    font-size: 19px;
  }

  #nicheDialog .niche-choice {
    height: 60px;
    min-height: 60px;
  }
}

/* COMPASSSALES_NICHE_MODAL_DESIGN_END */



/* COMPASSSALES_REVENUE_ADD_CSS_START */

.revenue-add-block {

  margin-top: 16px;

  padding-top: 15px;

  border-top:
    1px solid
    var(--line, #e4e9f0);
}


.revenue-add-copy {
  display: flex;
  flex-direction: column;

  gap: 3px;

  margin-bottom: 10px;
}


.revenue-add-copy > span {
  color:
    var(--text, #182235);

  font-size: 13px;

  font-weight: 800;
}


.revenue-add-copy > small {
  color:
    var(--muted, #7c8798);

  font-size: 10px;

  line-height: 1.4;
}


.revenue-add-form {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 8px;

  align-items: center;
}


.revenue-add-input {
  position: relative;
}


.revenue-add-input input {
  width: 100%;

  height: 40px;

  padding:
    0 35px
    0 12px;

  border:
    1px solid
    var(--line, #dce3ec);

  border-radius: 10px;

  background:
    #ffffff;

  color:
    var(--text, #172033);

  font-size: 14px;

  font-weight: 700;

  outline: none;
}


.revenue-add-input input:focus {
  border-color:
    #8fa5d3;

  box-shadow:
    0 0 0 3px
    rgba(75, 111, 190, .08);
}


.revenue-add-input > span {
  position: absolute;

  right: 12px;
  top: 50%;

  transform:
    translateY(-50%);

  color:
    var(--muted, #7c8798);

  font-size: 13px;

  font-weight: 700;

  pointer-events: none;
}


.revenue-add-button {
  height: 40px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  padding:
    0 15px;

  border: 0;

  border-radius: 10px;

  background:
    #1f8a70;

  color:
    #ffffff;

  font-size: 12px;

  font-weight: 800;

  cursor: pointer;

  white-space: nowrap;
}


.revenue-add-button b {
  font-size: 18px;
  line-height: 1;
}


.revenue-add-button:hover {
  filter:
    brightness(.96);
}


@media (max-width: 600px) {

  .revenue-add-form {
    grid-template-columns: 1fr;
  }

  .revenue-add-button {
    width: 100%;
  }

}

/* COMPASSSALES_REVENUE_ADD_CSS_END */



/* COMPASSSALES_MONTH_DASHBOARD_CSS_START */


.month-dashboard {
  margin-top: 18px;
  padding: 22px;
}


.month-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 20px;
}


.month-dashboard-head h2 {
  margin: 4px 0 0;

  font-size: 23px;
  line-height: 1.15;
}


.month-main-percent {
  display: flex;
  flex-direction: column;

  align-items: flex-end;

  font-size: 27px;
  font-weight: 850;

  color: #172033;
}


.month-main-percent small {
  margin-top: 2px;

  font-size: 10px;
  font-weight: 700;

  color: #8893a5;

  text-transform: uppercase;

  letter-spacing: .05em;
}


/* SUMMARY */

.month-summary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;
}


.month-summary-item {
  min-width: 0;

  padding: 15px;

  border: 1px solid #e6eaf0;

  border-radius: 13px;

  background: #f8fafc;
}


.month-summary-item span {
  display: block;

  margin-bottom: 6px;

  color: #8490a3;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .04em;

  text-transform: uppercase;
}


.month-summary-item strong {
  display: block;

  overflow: hidden;

  color: #172033;

  font-size: 19px;
  font-weight: 850;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.money-positive {
  color: #17856a !important;
}


/* TOTAL PROGRESS */

.month-progress-wrap {
  margin-top: 16px;
}


.month-progress-label {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 7px;

  color: #7c8798;

  font-size: 11px;
}


.month-progress-label b {
  color: #172033;
}


.month-progress {
  height: 9px;
}


/* SOURCES */

.month-source-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin-top: 16px;
}


.month-source-grid > div {
  padding: 13px 15px;

  border: 1px solid #e5eaf0;

  border-radius: 12px;
}


.month-source-grid span {
  display: block;

  margin-bottom: 5px;

  color: #8792a4;

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .04em;
}


.month-source-grid strong {
  font-size: 16px;

  color: #172033;
}


/* MANAGERS HEADER */

.month-managers-head {
  margin-top: 25px;
  margin-bottom: 11px;
}


.month-managers-head h3 {
  margin: 3px 0 0;

  font-size: 17px;
}


/* MANAGER ROW */

.month-manager-list {
  display: grid;

  gap: 9px;
}


.month-manager-row {
  display: grid;

  grid-template-columns:
    minmax(130px, 1.2fr)
    repeat(4, minmax(105px, .8fr))
    minmax(280px, 1.5fr)
    minmax(150px, 1fr)
    auto;

  align-items: center;

  gap: 12px;

  padding: 13px 14px;

  border: 1px solid #e4e9ef;

  border-radius: 13px;

  background: #fff;
}


.month-manager-success {
  border-color:
    rgba(23, 133, 106, .25);

  background:
    rgba(23, 133, 106, .025);
}


.month-manager-danger {
  border-color:
    rgba(190, 82, 82, .17);
}


/* NAME */

.month-manager-name {
  min-width: 0;
}


.month-manager-name strong {
  display: block;

  overflow: hidden;

  font-size: 14px;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.month-manager-name small {
  display: block;

  margin-top: 3px;

  color: #9b6570;

  font-size: 9px;
}


/* METRICS */

.month-manager-metric {
  min-width: 0;
}


.month-manager-metric span {
  display: block;

  margin-bottom: 3px;

  color: #8a95a6;

  font-size: 9px;
  font-weight: 750;

  text-transform: uppercase;
}


.month-manager-metric b {
  display: block;

  overflow: hidden;

  font-size: 13px;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* SALES */

.month-manager-sales {
  display: flex;

  align-items: center;

  gap: 11px;

  padding-left: 4px;
}


.month-manager-sales span {
  display: flex;

  flex-direction: column;

  gap: 2px;

  color: #8a95a5;

  font-size: 8px;

  text-transform: uppercase;
}


.month-manager-sales b {
  color: #1b2739;

  font-size: 12px;
}


/* PROGRESS */

.month-manager-progress {
  min-width: 130px;
}


.month-manager-progress .progress {
  height: 7px;
}


/* ACTION */

.month-manager-open {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 33px;

  padding:
    0 10px;

  border-radius: 9px;

  font-size: 10px;

  text-decoration: none;

  white-space: nowrap;
}


/* RESPONSIVE */

@media (max-width: 1500px) {

  .month-manager-row {
    grid-template-columns:
      minmax(130px, 1fr)
      repeat(4, minmax(95px, .7fr))
      minmax(220px, 1.3fr);

  }

  .month-manager-progress,
  .month-manager-action {
    grid-column: auto;
  }

}


@media (max-width: 1100px) {

  .month-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .month-manager-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .month-manager-name,
  .month-manager-sales,
  .month-manager-progress {
    grid-column:
      1 / -1;
  }

}


@media (max-width: 650px) {

  .month-dashboard {
    padding: 16px;
  }


  .month-summary-grid,
  .month-source-grid {
    grid-template-columns:
      1fr;
  }


  .month-dashboard-head {
    flex-direction: column;
  }


  .month-main-percent {
    align-items: flex-start;
  }

}

/* COMPASSSALES_MONTH_DASHBOARD_CSS_END */



/* COMPASSSALES_ACTION_TYPE_CSS_START */

#actionTypeDialog {
  width:
    min(470px, calc(100vw - 32px));

  padding: 22px;

  border: 0;

  border-radius: 20px;

  background: #fff;

  color: #182235;

  box-shadow:
    0 24px 70px
    rgba(16, 27, 48, .22);
}


#actionTypeDialog::backdrop {
  background:
    rgba(17, 27, 45, .40);

  backdrop-filter:
    blur(3px);
}


#actionTypeDialog .dialog-head {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 15px;
}


#actionTypeDialog h3 {
  margin: 4px 0 0;

  font-size: 21px;

  color: #172033;
}


.action-type-question {
  margin:
    8px 0 16px;

  color: #7c8798;

  font-size: 13px;
}


.action-type-grid {
  display: grid;

  grid-template-columns:
    1fr;

  gap: 9px;
}


.action-type-choice {
  min-height: 60px;

  display: flex;

  align-items: center;

  justify-content: flex-start;

  padding:
    0 17px;

  border:
    1px solid #dce3ec;

  border-radius: 13px;

  background: #f8fafc;

  color: #1d293b;

  cursor: pointer;

  text-align: left;
}


.action-type-choice strong {
  font-size: 14px;

  font-weight: 800;
}


.action-type-choice:hover {
  background: #f0f4fa;

  border-color: #9aadd0;
}


.action-type-cancel {
  display: block;

  width: auto;

  margin:
    15px auto 0;

  border: 0;

  background: transparent;
}


@media (max-width: 540px) {

  #actionTypeDialog {
    width:
      calc(100vw - 24px);

    padding: 18px;
  }

}

/* COMPASSSALES_ACTION_TYPE_CSS_END */




/* COMPASSSALES_WARM_CALL_CSS */

.quick.warm-call {
  border-left-color: #c48a3a;
}

/* END COMPASSSALES_WARM_CALL_CSS */



/* COMPASSSALES_REVENUE_TYPE_CSS_START */

.revenue-add-form--typed {
  grid-template-columns:
    minmax(130px, .85fr)
    minmax(0, 1fr)
    auto;
}


.revenue-add-type {
  width: 100%;
  height: 40px;

  padding:
    0 34px
    0 12px;

  border:
    1px solid
    var(--line, #dce3ec);

  border-radius: 10px;

  background: #fff;

  color:
    var(--text, #172033);

  font: inherit;

  font-size: 12px;

  font-weight: 750;

  outline: none;
}


.revenue-add-type:focus {
  border-color:
    #8fa5d3;

  box-shadow:
    0 0 0 3px
    rgba(75,111,190,.08);
}


@media (max-width: 760px) {

  .revenue-add-form--typed {
    grid-template-columns:
      1fr;
  }

}

/* COMPASSSALES_REVENUE_TYPE_CSS_END */


/* COMPASSSALES_CLEAN_HEADER_START */

/*
  Более спокойная и просторная
  рабочая навигация.
*/

.topbar {
  height: auto !important;
  min-height: 78px !important;

  padding:
    11px
    max(
      28px,
      calc((100vw - 1440px) / 2)
    ) !important;

  gap: 24px !important;

  background:
    rgba(248,250,254,.96) !important;

  color:
    #273a52 !important;

  border-bottom:
    1px solid #dfe6f0;

  box-shadow:
    0 5px 22px
    rgba(37,54,82,.04);
}


.brand {
  display: flex;
  align-items: center;

  gap: 10px;

  color:
    #26394f !important;

  font-size:
    17px;

  letter-spacing:
    0 !important;
}


.main-nav {
  display: flex !important;
  align-items: center;

  gap: 6px !important;

  flex-wrap: wrap;
}


.main-nav a {
  display: inline-flex;

  min-height: 40px;

  align-items: center;

  padding:
    0 13px;

  border-radius:
    11px;

  color:
    #586b84 !important;

  font-size:
    13px;

  font-weight:
    760;

  text-decoration:
    none;
}


.main-nav a:hover {
  background:
    #fff;

  color:
    #2078d3 !important;

  box-shadow:
    0 2px 10px
    rgba(38,61,96,.06);
}


.main-nav .nav-stas {
  margin-left: 3px;

  border:
    1px solid #cfe2f9;

  background:
    #eaf4ff;

  color:
    #237bd6 !important;

  font-weight:
    850;
}


.main-nav .nav-stas:hover {
  background:
    #dceeff;
}


.nav-divider {
  width: 1px;
  height: 24px;

  margin:
    0 5px;

  background:
    #dce4ef;
}


.userbar {
  margin-left:
    auto !important;
}


.userbar b {
  color:
    #283a52;
}


.userbar small {
  color:
    #8493a9 !important;
}


.logout-btn {
  border:
    1px solid #dbe3ed !important;

  background:
    #fff !important;

  color:
    #65768c !important;
}


.container {
  max-width:
    1440px !important;

  padding:
    34px 30px 70px !important;
}


@media (
  max-width: 900px
) {

  .topbar {
    align-items:
      center;

    flex-wrap:
      wrap;
  }


  .main-nav {
    order: 3;

    width: 100%;
  }

}


/* COMPASSSALES_CLEAN_HEADER_END */


/* COMPASSSALES_MANAGER_MINIMAL_START */


/*
 * Менеджеру не нужен управленческий шум.
 * Оставляем персональную рабочую панель.
 */


/* Убираем план всего отдела */

body.role-manager .weekly-team-card {
  display: none !important;
}


/* Убираем блок:
   от менеджеров / от партнёров / всего */

body.role-manager .revenue-split {
  display: none !important;
}


/* Личный недельный блок на всю ширину */

body.role-manager .weekly-plan-shell {
  grid-template-columns:
    1fr !important;

  gap:
    0 !important;
}


body.role-manager .weekly-personal-card {
  max-width:
    none;

  margin-bottom:
    14px;

  padding:
    18px 20px;

  border-radius:
    16px;
}


/* Компактнее верх страницы */

body.role-manager .page-head {
  margin-bottom:
    14px;
}


body.role-manager .page-head .muted {
  display:
    none;
}


body.role-manager .page-head h1 {
  font-size:
    28px;
}


/* Месячный план остаётся,
   но становится компактным */

body.role-manager .money-overview {
  margin-top:
    0;

  margin-bottom:
    14px;
}


body.role-manager .money-glance {
  border-radius:
    16px;
}


/* Быстрые действия больше не
   огромный тёмный блок */

body.role-manager .quick-panel {
  margin-bottom:
    14px;

  padding:
    16px;

  background:
    #fff;

  color:
    var(--text, #172033);

  border:
    1px solid
    var(--line, #e3e8f0);

  border-radius:
    16px;

  box-shadow:
    none;
}


body.role-manager .quick-title {
  margin-bottom:
    11px;
}


body.role-manager .quick-title .eyebrow,
body.role-manager .quick-as {
  color:
    var(--muted, #7c8799);
}


body.role-manager .quick-as b {
  color:
    var(--text, #172033);
}


body.role-manager .quick-grid {
  gap:
    7px;
}


body.role-manager .quick,
body.role-manager .quick.no-answer,
body.role-manager .quick.secretary,
body.role-manager .quick.lpr,
body.role-manager .quick.reject,
body.role-manager .quick.callback,
body.role-manager .quick.demo,
body.role-manager .quick.sale,
body.role-manager .quick.pilot,
body.role-manager .quick.action,
body.role-manager .quick.warm-call {

  min-height:
    62px;

  padding:
    10px 11px;

  background:
    #f7f9fc;

  color:
    var(--text, #172033);

  border-color:
    #e1e7ef;

  box-shadow:
    none;
}


body.role-manager .quick:hover {
  background:
    #f1f5fa;

  transform:
    none;
}


body.role-manager .quick strong {
  font-size:
    12px;
}


body.role-manager .quick span {
  margin-top:
    3px;

  color:
    #8996aa;

  font-size:
    10px;
}


/* KPI тоже чуть спокойнее */

body.role-manager .kpis {
  gap:
    8px;

  margin:
    14px 0;
}


body.role-manager .kpis article {
  padding:
    13px 14px;

  border-radius:
    14px;
}


body.role-manager .kpis strong {
  font-size:
    24px;
}


/* Добавление поступления */

body.role-manager .revenue-add-block {
  margin-top:
    12px;

  padding-top:
    12px;
}


body.role-manager .revenue-add-copy > small {
  font-size:
    10px;
}


/* COMPASSSALES_MANAGER_MINIMAL_END */


/* COMPASSSALES_QUICK_CARE_START */


/*
 * Быстрые действия менеджера.
 * Не серый массив и не тёмная "панель управления".
 * Спокойные белые карточки + один цветовой ориентир.
 */

body.role-manager .quick-panel {

  padding:
    17px 18px 18px !important;

  background:
    #f8fafc !important;

  border:
    1px solid #e2e8f0 !important;

  border-radius:
    18px !important;

  box-shadow:
    0 5px 18px
    rgba(31,49,75,.025) !important;
}


body.role-manager .quick-title {
  margin-bottom:
    14px !important;
}


body.role-manager .quick-title .eyebrow {

  color:
    #8090a6 !important;

  font-size:
    10px !important;

  letter-spacing:
    .1em !important;
}


body.role-manager .quick-title h2 {

  color:
    #26384f !important;

  font-size:
    21px !important;
}


body.role-manager .quick-as {

  color:
    #8997aa !important;

  font-size:
    11px !important;
}


body.role-manager .quick-as b {

  color:
    #273950 !important;
}


body.role-manager .quick-grid {

  gap:
    8px !important;
}


body.role-manager .quick {

  --qa:
    #7890ad;

  position:
    relative;

  overflow:
    hidden;

  min-height:
    66px !important;

  padding:
    11px 12px 10px 14px !important;

  background:
    #fff !important;

  border:
    1px solid #e0e6ef !important;

  border-radius:
    13px !important;

  color:
    #26384f !important;

  box-shadow:
    0 2px 7px
    rgba(28,48,76,.035) !important;

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease !important;
}


body.role-manager .quick::before {

  content: "";

  position:
    absolute;

  left:
    0;

  top:
    11px;

  bottom:
    11px;

  width:
    3px;

  border-radius:
    0 99px 99px 0;

  background:
    var(--qa);
}


body.role-manager .quick:hover {

  transform:
    translateY(-1px) !important;

  border-color:
    #cfdae8 !important;

  background:
    #fff !important;

  box-shadow:
    0 6px 15px
    rgba(31,52,81,.07) !important;
}


body.role-manager .quick strong {

  color:
    #26384f !important;

  font-size:
    12px !important;

  font-weight:
    820 !important;
}


body.role-manager .quick span {

  color:
    #8795a9 !important;

  font-size:
    9px !important;
}


/*
 * Цвет — только как маленький ориентир.
 */

body.role-manager .quick.action {
  --qa: #ff6a24;
}


body.role-manager .quick.no-answer {
  --qa: #94a3b8;
}


body.role-manager .quick.secretary {
  --qa: #7187a5;
}


body.role-manager .quick.warm-call {
  --qa: #f0a028;
}


body.role-manager .quick.lpr {
  --qa: #4d7df3;
}


body.role-manager .quick.reject {
  --qa: #e96872;
}


body.role-manager .quick.callback {
  --qa: #806ce0;
}


body.role-manager .quick.demo {
  --qa: #2bab78;
}


body.role-manager .quick.pilot {
  --qa: #1aa49e;
}


body.role-manager .quick.sale {
  --qa: #159d5d;
}


/* COMPASSSALES_QUICK_CARE_END */


/* COMPASSSALES_WEEKLY_FORCE_GATE_CSS_START */


.weekly-force-gate {

  position: fixed;

  inset: 0;

  z-index: 99999;

  display: grid;

  place-items: center;

  padding: 22px;

  background:
    rgba(243,246,251,.92);

  backdrop-filter:
    blur(10px);
}


.weekly-force-card {

  width:
    min(
      460px,
      100%
    );

  padding:
    34px;

  background:
    #fff;

  border:
    1px solid #e1e7f0;

  border-radius:
    24px;

  box-shadow:
    0 28px 90px
    rgba(32,49,74,.16);

  text-align: center;
}


.weekly-force-icon {

  width: 48px;
  height: 48px;

  display: grid;

  place-items: center;

  margin:
    0 auto 18px;

  border-radius:
    15px;

  background:
    #eef6ff;

  color:
    #2684e8;

  font-size:
    24px;

  font-weight:
    900;
}


.weekly-force-kicker {

  margin-bottom:
    8px;

  color:
    #7e8fa8;

  font-size:
    10px;

  font-weight:
    900;

  letter-spacing:
    .14em;
}


.weekly-force-card h2 {

  margin: 0;

  color:
    #26384f;

  font-size:
    28px;

  letter-spacing:
    -.025em;
}


.weekly-force-card > p {

  max-width:
    350px;

  margin:
    12px auto 0;

  color:
    #7d8da4;

  font-size:
    13px;

  line-height:
    1.55;
}


.weekly-force-period {

  display:
    inline-flex;

  margin:
    16px 0 22px;

  padding:
    6px 10px;

  border-radius:
    9px;

  background:
    #f3f6fa;

  color:
    #60728b;

  font-size:
    11px;

  font-weight:
    800;
}


.weekly-force-card form {

  display:
    grid;

  gap:
    13px;

  text-align:
    left;
}


.weekly-force-card label {

  display:
    grid;

  gap:
    7px;

  color:
    #53657e;

  font-size:
    11px;

  font-weight:
    800;
}


.weekly-force-input {

  position:
    relative;
}


.weekly-force-input input {

  width: 100%;

  height: 54px;

  padding:
    0 45px
    0 15px;

  border:
    1px solid #dce4ee;

  border-radius:
    13px;

  background:
    #fff;

  color:
    #26384f;

  outline:
    none;

  font: inherit;

  font-size:
    20px;

  font-weight:
    850;
}


.weekly-force-input input:focus {

  border-color:
    #74ace8;

  box-shadow:
    0 0 0 4px
    rgba(38,132,232,.08);
}


.weekly-force-input span {

  position: absolute;

  right: 16px;
  top: 50%;

  transform:
    translateY(-50%);

  color:
    #8594a8;

  font-size:
    15px;

  font-weight:
    800;
}


.weekly-force-submit {

  min-height:
    50px;

  border: 0;

  border-radius:
    13px;

  background:
    #2684e8;

  color:
    #fff;

  cursor: pointer;

  font: inherit;

  font-size:
    13px;

  font-weight:
    850;

  box-shadow:
    0 7px 18px
    rgba(38,132,232,.15);
}


.weekly-force-submit:hover {

  background:
    #1f7bdc;
}


.weekly-force-card > small {

  display: block;

  margin-top:
    16px;

  color:
    #95a2b3;

  font-size:
    9px;

  line-height:
    1.45;
}


/* COMPASSSALES_WEEKLY_FORCE_GATE_CSS_END */


/* ==========================================================
   COMPASSSALES MANAGER MESSENGER
   ========================================================== */

.nav-messages {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}


.nav-message-badge {
  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  border-radius: 999px;

  background: #eb575f;
  color: #fff;

  font-size: 9px;
  font-weight: 900;

  line-height: 18px;
  text-align: center;
}


.cs-messenger {
  max-width: 1260px;
  margin: 0 auto;
}


.cs-messenger-shell {
  display: grid;

  grid-template-columns:
    285px minmax(0, 1fr);

  height:
    calc(100vh - 125px);

  min-height: 570px;
  max-height: 790px;

  overflow: hidden;

  background: #fff;

  border: 1px solid #e2e8f0;
  border-radius: 20px;

  box-shadow:
    0 12px 40px
    rgba(32, 49, 73, .05);
}


/* LEFT */

.cs-chat-list {
  display: flex;
  flex-direction: column;

  min-width: 0;

  background: #fafbfd;

  border-right:
    1px solid #e6ebf1;
}


.cs-chat-list-head {
  padding: 23px 20px 17px;

  border-bottom:
    1px solid #e7ecf2;
}


.cs-chat-kicker {
  margin-bottom: 5px;

  color: #8b99ac;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .12em;
}


.cs-chat-list-head h1 {
  margin: 0;

  color: #27394f;

  font-size: 23px;
  font-weight: 900;

  letter-spacing: -.02em;
}


.cs-chat-list-head p {
  margin: 4px 0 0;

  color: #94a0b0;

  font-size: 10px;
}


.cs-chat-peers {
  min-height: 0;

  overflow-y: auto;

  padding: 8px;
}


.cs-chat-peer {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px;

  border: 0;
  border-radius: 13px;

  background: transparent;

  cursor: pointer;

  text-align: left;

  font: inherit;

  transition:
    background .15s ease;
}


.cs-chat-peer:hover {
  background: #f1f5f9;
}


.cs-chat-peer.active {
  background: #eaf4ff;
}


.cs-peer-avatar,
.cs-chat-head-avatar {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: #e8edf4;

  color: #526880;

  font-size: 13px;
  font-weight: 900;
}


.cs-chat-peer.active
.cs-peer-avatar {
  background: #dcebfb;
  color: #247fda;
}


.cs-peer-info {
  min-width: 0;
  flex: 1;
}


.cs-peer-info strong {
  display: block;

  overflow: hidden;

  color: #2a3b51;

  font-size: 12px;
  font-weight: 850;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.cs-peer-info small {
  display: block;

  overflow: hidden;

  margin-top: 2px;

  color: #8e9bae;

  font-size: 9px;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.cs-peer-badge {
  min-width: 19px;
  height: 19px;

  padding: 0 5px;

  border-radius: 999px;

  background: #2d87e7;
  color: #fff;

  font-size: 9px;
  font-weight: 900;

  line-height: 19px;
  text-align: center;
}


.cs-no-peers {
  padding: 30px 15px;

  color: #929eae;

  font-size: 11px;
  text-align: center;
}


/* CHAT */

.cs-chat-window {
  min-width: 0;

  display: grid;

  grid-template-rows:
    auto minmax(0, 1fr) auto;

  background: #fff;
}


.cs-chat-head {
  min-height: 70px;

  display: flex;
  align-items: center;

  gap: 11px;

  padding: 14px 20px;

  border-bottom:
    1px solid #e7ecf2;
}


.cs-chat-head-avatar {
  width: 36px;
  height: 36px;

  flex-basis: 36px;

  border-radius: 11px;
}


.cs-chat-head strong {
  display: block;

  color: #2a3c52;

  font-size: 14px;
  font-weight: 900;
}


.cs-chat-head small {
  display: block;

  margin-top: 2px;

  color: #909daf;

  font-size: 9px;
}


.cs-chat-messages {
  min-height: 0;

  overflow-y: auto;

  padding: 20px 24px;

  background: #f8fafc;
}


.cs-chat-placeholder {
  min-height: 100%;

  display: grid;
  place-items: center;

  color: #9aa6b5;

  font-size: 11px;
}


.cs-chat-date {
  width: max-content;

  margin: 13px auto;

  padding: 4px 8px;

  border-radius: 7px;

  background: #edf1f5;

  color: #8b98a9;

  font-size: 8px;
  font-weight: 800;
}


.cs-chat-message-row {
  display: flex;

  margin: 5px 0;
}


.cs-chat-message-row.mine {
  justify-content: flex-end;
}


.cs-chat-message-row.other {
  justify-content: flex-start;
}


.cs-chat-bubble {
  max-width:
    min(
      610px,
      74%
    );

  padding: 9px 11px 6px;

  border-radius: 14px;
}


.cs-chat-message-row.mine
.cs-chat-bubble {
  background: #dfefff;

  border-bottom-right-radius: 5px;
}


.cs-chat-message-row.other
.cs-chat-bubble {
  background: #fff;

  border: 1px solid #e2e8ef;

  border-bottom-left-radius: 5px;
}


.cs-chat-text {
  color: #293b51;

  font-size: 12px;
  line-height: 1.5;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


.cs-chat-time {
  margin-top: 3px;

  color: #8896a8;

  font-size: 8px;

  text-align: right;
}


/* INPUT */

.cs-chat-compose {
  display: flex;
  align-items: flex-end;

  gap: 8px;

  padding: 12px 15px;

  border-top:
    1px solid #e6ebf1;

  background: #fff;
}


.cs-chat-compose textarea {
  min-height: 42px;
  max-height: 120px;

  flex: 1;

  resize: none;

  padding: 11px 13px;

  border: 1px solid #dde4ed;
  border-radius: 13px;

  background: #f8fafc;

  color: #293b51;

  outline: none;

  font: inherit;
  font-size: 12px;

  line-height: 1.45;
}


.cs-chat-compose textarea:focus {
  border-color: #8bb9e7;

  background: #fff;

  box-shadow:
    0 0 0 3px
    rgba(40, 132, 232, .07);
}


.cs-chat-compose button {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border: 0;
  border-radius: 13px;

  background: #2c86e5;
  color: #fff;

  cursor: pointer;

  font-size: 20px;
  font-weight: 900;
}


.cs-chat-compose button:hover {
  background: #247bd4;
}


.cs-chat-compose button:disabled {
  opacity: .5;
}


@media (max-width: 760px) {

  .cs-messenger-shell {
    grid-template-columns: 1fr;

    height: auto;
    max-height: none;
  }


  .cs-chat-list {
    max-height: 260px;

    border-right: 0;

    border-bottom:
      1px solid #e6ebf1;
  }


  .cs-chat-window {
    height: 560px;
  }


  .cs-chat-bubble {
    max-width: 86%;
  }

}


/* ==========================================================
   COMPASSSALES CHAT SCROLL FIX
   ========================================================== */

.cs-chat-window {
  min-height: 0 !important;
  overflow: hidden !important;
}


.cs-chat-messages {
  min-height: 0 !important;

  height: 100% !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  overscroll-behavior: contain;

  -webkit-overflow-scrolling: touch;
}


.cs-messenger-shell {
  min-height: 0;
}


@media (max-width: 760px) {

  .cs-chat-window {
    min-height: 480px;
  }

}


/* COMPASSSALES_STAS_SNAPSHOT_CSS_START */


.stas-snapshot {
  margin-top: 28px;
}


.stas-snapshot-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 15px;
}


.stas-snapshot-kicker,
.stas-section-kicker {
  color: #8391a5;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .11em;
}


.stas-snapshot-head h2 {
  margin: 5px 0 0;

  color: #26394f;

  font-size: 25px;
  font-weight: 900;

  letter-spacing: -.025em;
}


.stas-snapshot-head p {
  margin: 5px 0 0;

  color: #8c99aa;

  font-size: 10px;
}


.stas-snapshot-status {
  display: inline-flex;
  align-items: center;

  min-height: 26px;

  padding: 0 9px;

  border-radius: 999px;

  background: #eaf7ef;

  color: #228456;

  font-size: 9px;
  font-weight: 850;
}


/* TOP CARDS */

.stas-business-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;
}


.stas-business-card {
  min-width: 0;

  padding: 18px;

  background: #fff;

  border: 1px solid #e2e8f0;
  border-radius: 17px;

  box-shadow:
    0 5px 20px
    rgba(31,48,73,.025);
}


.stas-business-label {
  color: #8391a5;

  font-size: 9px;
  font-weight: 850;

  text-transform: uppercase;

  letter-spacing: .06em;
}


.stas-business-value {
  margin-top: 10px;

  color: #26394f;

  font-size: 30px;
  font-weight: 900;

  letter-spacing: -.04em;

  line-height: 1;
}


.stas-business-caption {
  margin-top: 4px;

  color: #909cad;

  font-size: 9px;
}


.stas-business-lines {
  display: grid;

  gap: 7px;

  margin-top: 16px;

  padding-top: 13px;

  border-top: 1px solid #edf0f4;
}


.stas-business-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
}


.stas-business-lines span {
  color: #8290a3;

  font-size: 10px;
}


.stas-business-lines b {
  color: #34465c;

  font-size: 11px;
}


/* FUNNEL */

.stas-funnel-card {
  margin-top: 10px;

  padding: 18px;

  background: #fff;

  border: 1px solid #e2e8f0;
  border-radius: 17px;
}


.stas-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}


.stas-section-head h3,
.stas-retention-card h3,
.stas-reasons-card h3 {
  margin: 5px 0 0;

  color: #293b51;

  font-size: 16px;
  font-weight: 900;
}


.stas-section-total {
  color: #34485f;

  font-size: 12px;
  font-weight: 850;
}


.stas-funnel {
  display: grid;

  grid-template-columns:
    1fr auto
    1fr auto
    1fr auto
    1fr;

  align-items: center;

  gap: 8px;

  margin-top: 18px;
}


.stas-funnel-step {
  padding: 13px 14px;

  background: #f7f9fc;

  border: 1px solid #e8ecf2;
  border-radius: 13px;
}


.stas-funnel-step.is-final {
  background: #edf8f2;

  border-color: #d9eee2;
}


.stas-funnel-number {
  color: #26394f;

  font-size: 22px;
  font-weight: 900;

  line-height: 1;
}


.stas-funnel-name {
  margin-top: 5px;

  color: #40536b;

  font-size: 10px;
  font-weight: 800;
}


.stas-funnel-step small {
  display: block;

  margin-top: 3px;

  color: #8b98a9;

  font-size: 8px;
}


.stas-funnel-arrow {
  color: #a3adba;

  font-size: 15px;
}


.stas-flow-quality {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 8px;

  margin-top: 10px;
}


.stas-flow-quality > div {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 11px 13px;

  background: #fafbfd;

  border: 1px solid #edf0f4;
  border-radius: 12px;
}


.stas-quality-number {
  color: #34485f;

  font-size: 18px;
  font-weight: 900;
}


.stas-quality-copy b {
  display: block;

  color: #405269;

  font-size: 10px;
}


.stas-quality-copy small {
  display: block;

  margin-top: 2px;

  color: #8b98aa;

  font-size: 8px;
}


/* RETENTION */

.stas-retention-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 10px;
}


.stas-retention-card,
.stas-reasons-card {
  padding: 18px;

  background: #fff;

  border: 1px solid #e2e8f0;
  border-radius: 17px;
}


.stas-retention-bars {
  display: grid;

  gap: 12px;

  margin-top: 17px;
}


.stas-retention-row > div:first-child {
  display: flex;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 5px;
}


.stas-retention-row span {
  color: #748399;

  font-size: 9px;
}


.stas-retention-row b {
  color: #34475e;

  font-size: 10px;
}


.stas-retention-track {
  height: 5px;

  overflow: hidden;

  background: #edf0f4;

  border-radius: 999px;
}


.stas-retention-track i {
  display: block;

  height: 100%;

  background: #7188a6;

  border-radius: inherit;
}


/* REASONS */

.stas-reason {
  display: flex;

  gap: 10px;

  padding-top: 13px;

  margin-top: 13px;

  border-top: 1px solid #edf0f4;
}


.stas-reason > span {
  color: #a1adbc;

  font-size: 9px;
  font-weight: 900;
}


.stas-reason b {
  display: block;

  color: #405269;

  font-size: 10px;
}


.stas-reason small {
  display: block;

  margin-top: 3px;

  color: #8795a8;

  font-size: 9px;

  line-height: 1.45;
}


/* SYSTEM DIVIDER */

.stas-system-divider {
  display: flex;
  align-items: center;

  gap: 11px;

  margin: 24px 0 4px;

  padding: 12px 14px;

  background: #f4f7fa;

  border: 1px solid #e4e9f0;
  border-radius: 13px;
}


.stas-system-divider-icon {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: #26394f;

  color: #fff;

  font-size: 11px;
  font-weight: 900;
}


.stas-system-divider b {
  display: block;

  color: #405269;

  font-size: 10px;
}


.stas-system-divider span {
  display: block;

  margin-top: 2px;

  color: #8795a8;

  font-size: 9px;
}


/* MOBILE */

@media (max-width: 850px) {

  .stas-business-grid {
    grid-template-columns: 1fr;
  }


  .stas-funnel {
    grid-template-columns:
      1fr;
  }


  .stas-funnel-arrow {
    display: none;
  }


  .stas-flow-quality,
  .stas-retention-grid {
    grid-template-columns: 1fr;
  }

}


/* COMPASSSALES_STAS_SNAPSHOT_CSS_END */


/* COMPASSSALES_STAS_COMPACT_SALES_START */


/* ==========================================
   КОМПАКТНАЯ СТРОКА МЕСЯЦА
   ========================================== */

.stas-sales-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 18px;

  margin:
    6px 0 12px;
}


.stas-sales-toolbar-title span {
  display: block;

  margin-bottom: 4px;

  color: #8493a8;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .11em;
}


.stas-sales-toolbar-title h2 {
  margin: 0;

  color: #293b52;

  font-size: 18px;
  font-weight: 900;

  letter-spacing: -.02em;
}


.stas-sales-month {
  display: flex;
  align-items: center;

  gap: 5px;
}


.stas-sales-month input {
  height: 35px;

  width: 155px;

  padding: 0 10px;

  border: 1px solid #dfe6ef;
  border-radius: 10px;

  background: #fff;

  color: #43566e;

  outline: none;

  font: inherit;
  font-size: 10px;
  font-weight: 800;
}


.stas-sales-month input:focus {
  border-color: #9cc5ed;

  box-shadow:
    0 0 0 3px
    rgba(47,139,230,.06);
}


.stas-month-arrow {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  border: 1px solid #dfe6ef;
  border-radius: 10px;

  background: #fff;

  color: #60758f;

  text-decoration: none;

  font-size: 15px;
  font-weight: 900;
}


.stas-month-arrow:hover {
  background: #f4f8fc;

  color: #277fd5;
}


/* ==========================================
   КОМПАКТНАЯ ТАБЛИЦА
   ========================================== */


/*
 * Главное изменение:
 * синяя шапка теперь почти в 2 раза ниже.
 */

.stas-compact-sales-table thead th {
  padding:
    11px 13px !important;

  height:
    auto !important;

  line-height:
    1.16 !important;

  font-size:
    9px !important;

  letter-spacing:
    .025em !important;
}


/*
 * Строки тоже чуть плотнее,
 * но не превращаем таблицу в Excel.
 */

.stas-compact-sales-table tbody td {
  padding:
    13px 14px !important;

  height:
    auto !important;

  vertical-align:
    middle !important;
}


.stas-compact-sales-table tbody td:first-child {
  padding-left:
    20px !important;
}


.stas-compact-sales-table tbody tr {
  min-height:
    50px !important;
}


.stas-compact-sales-table tbody strong {
  line-height:
    1.2 !important;
}


/* Подписи под партнёрами и т.п. */

.stas-compact-sales-table tbody small {
  margin-top:
    3px !important;

  line-height:
    1.15 !important;

  font-size:
    7px !important;
}


/* Editable inputs тоже компактнее */

.stas-compact-sales-table input {
  min-height:
    32px !important;

  padding:
    5px 7px !important;
}


/* Кнопки + */

.stas-compact-sales-table button {
  min-width:
    28px;

  min-height:
    28px;
}


/*
 * После удаления hero не оставляем
 * лишнюю пустоту сверху.
 */

.stas-sales-toolbar
+ * {
  margin-top:
    0;
}


@media (max-width: 760px) {

  .stas-sales-toolbar {
    align-items:
      stretch;

    flex-direction:
      column;
  }


  .stas-sales-month {
    width:
      100%;
  }


  .stas-sales-month input {
    flex:
      1;

    width:
      auto;
  }

}


/* COMPASSSALES_STAS_COMPACT_SALES_END */


/* COMPASSSALES_MONTH_ONLY_CSS_START */

.stas-month-only-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin: 4px 0 12px;
}

.stas-month-only-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stas-month-only-arrow {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid #dce4ed;
  border-radius: 10px;

  background: #fff;
  color: #627791;

  text-decoration: none;

  font-size: 16px;
  font-weight: 900;
}

.stas-month-only-arrow:hover {
  background: #f5f8fc;
  color: #2c82db;
}

.stas-month-only-picker input {
  width: 165px;
  height: 36px;

  padding: 0 10px;

  border: 1px solid #dce4ed;
  border-radius: 10px;

  background: #fff;
  color: #445872;

  outline: none;

  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.stas-month-only-picker input:focus {
  border-color: #98c2eb;
  box-shadow: 0 0 0 3px rgba(44,130,219,.08);
}

@media (max-width: 760px) {
  .stas-month-only-bar {
    justify-content: stretch;
  }

  .stas-month-only-picker {
    width: 100%;
  }

  .stas-month-only-picker input {
    flex: 1;
    width: auto;
  }
}

/* COMPASSSALES_MONTH_ONLY_CSS_END */


/* COMPASSSALES_STAS_TABLE_RADIUS_START */

.stas-rounded-table-shell {
  overflow: hidden !important;

  border: 1px solid #dfe6ef;
  border-radius: 24px !important;

  background: #fff;

  box-shadow:
    0 8px 24px
    rgba(33, 49, 74, .035);
}

.stas-rounded-table-shell > table {
  width: 100%;

  margin: 0 !important;

  border-collapse: separate !important;
  border-spacing: 0 !important;

  background: #fff;
}

.stas-rounded-table-shell > table thead th {
  position: relative;
  overflow: hidden;
}

.stas-rounded-table-shell > table thead th:first-child {
  border-top-left-radius: 24px !important;
}

.stas-rounded-table-shell > table thead th:last-child {
  border-top-right-radius: 24px !important;
}

.stas-rounded-table-shell > table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 24px !important;
}

.stas-rounded-table-shell > table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 24px !important;
}

/* Чуть мягче сами границы строк */
.stas-rounded-table-shell > table td,
.stas-rounded-table-shell > table th {
  border-color: #e6ebf2 !important;
}

/* Чтобы синяя шапка не выглядела плоской */
.stas-rounded-table-shell > table thead th {
  box-shadow:
    inset 0 -1px 0
    rgba(255,255,255,.08);
}

/* Если таблица шире контейнера — скролл внутри, углы не ломаются */
.stas-rounded-table-shell {
  width: 100%;
}

@media (max-width: 760px) {
  .stas-rounded-table-shell {
    border-radius: 18px !important;
  }

  .stas-rounded-table-shell > table thead th:first-child {
    border-top-left-radius: 18px !important;
  }

  .stas-rounded-table-shell > table thead th:last-child {
    border-top-right-radius: 18px !important;
  }

  .stas-rounded-table-shell > table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 18px !important;
  }

  .stas-rounded-table-shell > table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 18px !important;
  }
}

/* COMPASSSALES_STAS_TABLE_RADIUS_END */


/* COMPASSSALES_HEADER_BRAND_SIZE_START */

.cs-header-brand,
header a.cs-header-brand,
nav a.cs-header-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none;
}

.cs-header-brand img,
.cs-header-brand svg {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px !important;
}

.cs-header-brand span,
.cs-header-brand strong,
.cs-header-brand b {
  font-size: 20px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

/* fallback, если классы не подхватились */
header a img,
header a svg {
  max-height: 30px;
}

@media (max-width: 760px) {
  .cs-header-brand img,
  .cs-header-brand svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    flex-basis: 26px !important;
  }

  .cs-header-brand span,
  .cs-header-brand strong,
  .cs-header-brand b {
    font-size: 18px !important;
  }
}

/* COMPASSSALES_HEADER_BRAND_SIZE_END */


/* ==========================================================
   STAS TABLE BLUE HEADER EDGE FIX
   ========================================================== */

.stas-rounded-table-shell {
  overflow: hidden !important;

  /*
   * Важно:
   * раньше внутри скругления просвечивал белый фон.
   * Теперь фон shell совпадает с синей шапкой.
   */
  background: #2f8fe8 !important;

  border-radius: 24px !important;

  padding: 0 !important;
}


.stas-rounded-table-shell > table {
  margin: 0 !important;

  width: 100% !important;

  border-collapse: separate !important;
  border-spacing: 0 !important;

  background: transparent !important;
}


.stas-rounded-table-shell > table thead,
.stas-rounded-table-shell > table thead tr {
  background: #2f8fe8 !important;
}


.stas-rounded-table-shell > table thead th {
  background: #2f8fe8 !important;

  border-top: 0 !important;

  /*
   * Самим ячейкам радиус больше не нужен.
   * Их обрезает внешний shell.
   */
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}


/*
 * Ни одного пикселя между shell и таблицей.
 */
.stas-rounded-table-shell > table thead tr:first-child th {
  margin-top: 0 !important;
}


/*
 * Возвращаем белый фон только телу таблицы.
 */
.stas-rounded-table-shell > table tbody {
  background: #fff !important;
}


.stas-rounded-table-shell > table tbody td {
  background: #fff;
}


/*
 * Если итоговая строка имеет свой фон —
 * сохраняем его.
 */
.stas-rounded-table-shell > table tbody tr:last-child td {
  background: #f8fafc;
}


/*
 * Нижнее скругление делает shell.
 */
.stas-rounded-table-shell > table tbody tr:last-child td:first-child,
.stas-rounded-table-shell > table tbody tr:last-child td:last-child {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}



/* ==========================================================
   STAS SALES TABLE OUTER CARD FIX
   ========================================================== */


/*
 * Это та самая большая старая белая обёртка,
 * которую видно за синей таблицей.
 */
.stas-table-outer-clean {
  background: transparent !important;

  border: 0 !important;

  border-radius: 0 !important;

  box-shadow: none !important;

  outline: 0 !important;

  overflow: visible !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}


/*
 * Если старая карточка рисовала рамку
 * через псевдоэлементы.
 */
.stas-table-outer-clean::before,
.stas-table-outer-clean::after {
  display: none !important;

  content: none !important;
}


/*
 * Сама таблица остаётся нормальной карточкой.
 */
.stas-rounded-table-shell {
  overflow: hidden !important;

  background: #fff !important;

  border: 1px solid #dfe6ef !important;

  border-radius: 22px !important;

  box-shadow:
    0 6px 22px
    rgba(31, 48, 73, .035) !important;
}


/*
 * Верх shell синий, поэтому на радиусе
 * не появляется белая кайма.
 */
.stas-rounded-table-shell > table thead,
.stas-rounded-table-shell > table thead tr,
.stas-rounded-table-shell > table thead th {
  background: #2f8fe8 !important;
}


/*
 * Радиус создаёт только shell.
 */
.stas-rounded-table-shell > table thead th:first-child,
.stas-rounded-table-shell > table thead th:last-child {
  border-radius: 0 !important;
}


/*
 * Убираем возможный зазор между
 * синей строкой и внешним shell.
 */
.stas-rounded-table-shell > table {
  margin: 0 !important;

  border-spacing: 0 !important;

  border-collapse: separate !important;
}




/* ==========================================================
   FULL AUGUST CALL TOTALS
   ========================================================== */

.stas-full-call-total {
  display: block;

  color: #2a3d54;

  font-size: 12px;
  font-weight: 900;
}


.stas-call-split {
  display: block;

  margin-top: 3px;

  color: #8a98aa !important;

  font-size: 8px !important;

  font-weight: 600;

  white-space: nowrap;
}






/* COMPASSSALES_CLEAN_MONTH_HEADER_START */


/* =========================================================
   HEADER RIGHT
   ========================================================= */

.userbar {
  margin-left: auto !important;

  display: flex !important;
  align-items: center !important;

  gap: 10px !important;

  flex-wrap: nowrap !important;

  white-space: nowrap;
}


/* =========================================================
   MONTH
   ========================================================= */

.stas-header-month {
  display: flex;
  align-items: center;

  gap: 5px;

  margin-right: 8px;
  padding-right: 10px;

  border-right: 1px solid #e1e7ef;
}


.stas-header-month-arrow {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid #dfe6ef;
  border-radius: 9px;

  background: #fff;

  color: #62758e;

  text-decoration: none;

  font-size: 14px;
  font-weight: 900;

  line-height: 1;
}


.stas-header-month-arrow:hover {
  background: #f4f8fc;
  color: #277fd6;
}


.stas-header-month input {
  width: 143px;
  height: 30px;

  flex: 0 0 143px;

  box-sizing: border-box;

  padding: 0 8px;

  border: 1px solid #dfe6ef;
  border-radius: 9px;

  background: #fff;

  color: #42566f;

  outline: none;

  font: inherit;
  font-size: 10px;
  font-weight: 800;
}


.stas-header-month input:focus {
  border-color: #92bde8;

  box-shadow:
    0 0 0 3px
    rgba(40,128,218,.06);
}


/* =========================================================
   УБИРАЕМ СТАРОЕ МЕСТО ПОД КАЛЕНДАРЬ
   ========================================================= */

.stas-month-only-bar,
.stas-sales-toolbar {
  display: none !important;

  height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   ПОДНИМАЕМ ТАБЛИЦУ
   ========================================================= */

.stas-table-outer-clean {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


.stas-rounded-table-shell {
  margin-top: 6px !important;
}


/*
 * Основной контент «Для Стаса» больше
 * не должен резервировать высоту старого hero/month блока.
 */

.stas-table-outer-clean {
  min-height: 0 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .stas-header-month input {
    width: 125px;
    flex-basis: 125px;
  }


  .stas-header-month {
    margin-right: 5px;
    padding-right: 7px;
  }

}


/* COMPASSSALES_CLEAN_MONTH_HEADER_END */


/* COMPASSSALES_STAS_SUMMARY_COMPACT_START */


/* =========================================================
   ОБЩИЙ БЛОК
   ========================================================= */

.stas-snapshot {
  margin-top: 16px !important;
}


.stas-snapshot-head {
  align-items: center !important;

  margin-bottom: 10px !important;

  gap: 12px !important;
}


.stas-snapshot-head h2 {
  margin-top: 3px !important;

  font-size: 21px !important;

  line-height: 1.1 !important;
}


.stas-snapshot-kicker,
.stas-section-kicker {
  font-size: 8px !important;

  letter-spacing: .10em !important;
}


.stas-snapshot-status {
  min-height: 22px !important;

  padding: 0 8px !important;

  font-size: 8px !important;
}


/* =========================================================
   3 ВЕРХНИЕ КАРТОЧКИ
   ========================================================= */

.stas-business-grid {
  gap: 8px !important;
}


.stas-business-card {
  padding: 12px 14px !important;

  border-radius: 14px !important;

  min-height: 0 !important;

  box-shadow:
    0 3px 12px
    rgba(31,48,73,.02) !important;
}


.stas-business-label {
  font-size: 8px !important;
}


.stas-business-value {
  margin-top: 6px !important;

  font-size: 25px !important;

  line-height: 1 !important;
}


.stas-business-caption {
  margin-top: 2px !important;

  font-size: 8px !important;
}


.stas-business-lines {
  gap: 4px !important;

  margin-top: 10px !important;

  padding-top: 8px !important;
}


.stas-business-lines > div {
  min-height: 18px !important;
}


.stas-business-lines span {
  font-size: 9px !important;
}


.stas-business-lines b {
  font-size: 10px !important;
}


/* =========================================================
   ВОРОНКА
   ========================================================= */

.stas-funnel-card {
  margin-top: 8px !important;

  padding: 12px 14px !important;

  border-radius: 14px !important;
}


.stas-section-head {
  align-items: center !important;

  gap: 12px !important;
}


.stas-section-head h3,
.stas-retention-card h3,
.stas-reasons-card h3 {
  margin-top: 3px !important;

  font-size: 14px !important;

  line-height: 1.1 !important;
}


.stas-section-total {
  font-size: 10px !important;
}


/* Сами 4 шага */

.stas-funnel {
  gap: 6px !important;

  margin-top: 11px !important;
}


.stas-funnel-step {
  padding: 9px 11px !important;

  border-radius: 11px !important;
}


.stas-funnel-number {
  font-size: 18px !important;
}


.stas-funnel-name {
  margin-top: 3px !important;

  font-size: 9px !important;
}


.stas-funnel-step small {
  margin-top: 2px !important;

  font-size: 7px !important;
}


.stas-funnel-arrow {
  font-size: 12px !important;
}


/* =========================================================
   КАЧЕСТВО ЗАЯВОК
   ========================================================= */

.stas-flow-quality {
  gap: 6px !important;

  margin-top: 7px !important;
}


.stas-flow-quality > div {
  gap: 8px !important;

  padding: 7px 10px !important;

  border-radius: 10px !important;
}


.stas-quality-number {
  font-size: 16px !important;
}


.stas-quality-copy b {
  font-size: 9px !important;
}


.stas-quality-copy small {
  margin-top: 1px !important;

  font-size: 7px !important;
}


/* =========================================================
   ОТТОК / ПРИЧИНЫ НИЖЕ
   ========================================================= */

.stas-retention-grid {
  gap: 8px !important;

  margin-top: 8px !important;
}


.stas-retention-card,
.stas-reasons-card {
  padding: 12px 14px !important;

  border-radius: 14px !important;
}


.stas-retention-bars {
  gap: 8px !important;

  margin-top: 11px !important;
}


.stas-retention-row > div:first-child {
  margin-bottom: 3px !important;
}


.stas-retention-track {
  height: 4px !important;
}


.stas-reason {
  gap: 8px !important;

  margin-top: 8px !important;

  padding-top: 8px !important;
}


.stas-reason small {
  margin-top: 2px !important;

  font-size: 8px !important;
}


/* =========================================================
   РАЗДЕЛИТЕЛЬ ДО ДАННЫХ COMPASSSALES
   ========================================================= */

.stas-system-divider {
  gap: 8px !important;

  margin: 14px 0 4px !important;

  padding: 8px 10px !important;

  border-radius: 10px !important;
}


.stas-system-divider-icon {
  width: 25px !important;
  height: 25px !important;

  flex-basis: 25px !important;

  border-radius: 7px !important;

  font-size: 9px !important;
}


.stas-system-divider b {
  font-size: 9px !important;
}


.stas-system-divider span {
  font-size: 8px !important;
}


/* =========================================================
   DESKTOP: ЕЩЁ ЧУТЬ БОЛЬШЕ ИНФОРМАЦИИ НА ЭКРАНЕ
   ========================================================= */

@media (min-width: 1200px) {

  .stas-business-card {
    min-height: 132px !important;
  }


  .stas-funnel-card {
    min-height: 0 !important;
  }

}


/* COMPASSSALES_STAS_SUMMARY_COMPACT_END */


/* COMPASSSALES_STAS_ULTRA_COMPACT_START */


/* ===============================
   ОБЩИЙ ЗАГОЛОВОК
   =============================== */

.stas-snapshot {
  margin-top: 10px !important;
}

.stas-snapshot-head {
  margin-bottom: 7px !important;
}

.stas-snapshot-head h2 {
  margin-top: 2px !important;

  font-size: 18px !important;
  line-height: 1 !important;
}

.stas-snapshot-kicker,
.stas-section-kicker {
  font-size: 7px !important;
}

.stas-snapshot-status {
  min-height: 19px !important;

  padding: 0 7px !important;

  font-size: 7px !important;
}


/* ===============================
   ТРИ ВЕРХНИЕ КАРТОЧКИ
   =============================== */

.stas-business-grid {
  gap: 6px !important;
}

.stas-business-card {
  padding: 9px 11px !important;

  min-height: 0 !important;

  border-radius: 12px !important;
}

.stas-business-label {
  font-size: 7px !important;
}

.stas-business-value {
  margin-top: 4px !important;

  font-size: 22px !important;
}

.stas-business-caption {
  margin-top: 1px !important;

  font-size: 7px !important;
}


/*
 * Главное:
 * SaaS / On-premise / Всего / Доля
 * теперь не столбиком, а в строку.
 */

.stas-business-lines {
  display: flex !important;
  align-items: center !important;

  flex-wrap: nowrap !important;

  gap: 12px !important;

  margin-top: 6px !important;
  padding-top: 6px !important;
}

.stas-business-lines > div {
  flex: 1 1 0 !important;

  min-width: 0 !important;
  min-height: 0 !important;

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

  gap: 5px !important;
}

.stas-business-lines span {
  overflow: hidden;

  font-size: 7px !important;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.stas-business-lines b {
  flex: 0 0 auto;

  font-size: 8px !important;
}


/* ===============================
   ВОРОНКА
   =============================== */

.stas-funnel-card {
  margin-top: 6px !important;

  padding: 9px 11px !important;

  border-radius: 12px !important;
}

.stas-section-head h3,
.stas-retention-card h3,
.stas-reasons-card h3 {
  margin-top: 2px !important;

  font-size: 12px !important;
}

.stas-section-total {
  font-size: 9px !important;
}

.stas-funnel {
  gap: 5px !important;

  margin-top: 7px !important;
}

.stas-funnel-step {
  padding: 7px 9px !important;

  border-radius: 9px !important;
}

.stas-funnel-number {
  font-size: 16px !important;
}

.stas-funnel-name {
  margin-top: 2px !important;

  font-size: 8px !important;
}

.stas-funnel-step small {
  margin-top: 1px !important;

  font-size: 6.5px !important;
}

.stas-funnel-arrow {
  font-size: 10px !important;
}


/* ===============================
   13 ЛЕВАЧНЫХ / 7 ПЛАТЯЩИХ
   =============================== */

.stas-flow-quality {
  gap: 5px !important;

  margin-top: 5px !important;
}

.stas-flow-quality > div {
  min-height: 0 !important;

  gap: 6px !important;

  padding: 5px 8px !important;

  border-radius: 8px !important;
}

.stas-quality-number {
  font-size: 14px !important;
}

.stas-quality-copy b {
  font-size: 8px !important;
}

.stas-quality-copy small {
  font-size: 6.5px !important;
}


/* ===============================
   ОТТОК И ПРИЧИНЫ
   =============================== */

.stas-retention-grid {
  gap: 6px !important;

  margin-top: 6px !important;
}

.stas-retention-card,
.stas-reasons-card {
  padding: 9px 11px !important;

  border-radius: 12px !important;
}

.stas-retention-bars {
  gap: 6px !important;

  margin-top: 7px !important;
}

.stas-retention-row > div:first-child {
  margin-bottom: 2px !important;
}

.stas-retention-row span,
.stas-retention-row b {
  font-size: 7px !important;
}

.stas-retention-track {
  height: 3px !important;
}

.stas-reason {
  gap: 6px !important;

  margin-top: 5px !important;
  padding-top: 5px !important;
}

.stas-reason > span {
  font-size: 7px !important;
}

.stas-reason b {
  font-size: 8px !important;
}

.stas-reason small {
  margin-top: 1px !important;

  font-size: 7px !important;
  line-height: 1.3 !important;
}


/* ===============================
   РАЗДЕЛИТЕЛЬ
   =============================== */

.stas-system-divider {
  gap: 6px !important;

  margin: 9px 0 3px !important;

  padding: 6px 8px !important;

  border-radius: 8px !important;
}

.stas-system-divider-icon {
  width: 21px !important;
  height: 21px !important;

  flex-basis: 21px !important;

  font-size: 7px !important;
}

.stas-system-divider b {
  font-size: 8px !important;
}

.stas-system-divider span {
  font-size: 7px !important;
}


/* ===============================
   DESKTOP
   =============================== */

@media (min-width: 1000px) {

  .stas-business-card {
    height: auto !important;
    min-height: 92px !important;
  }

}


/* На узком экране возвращаем нормальный перенос */

@media (max-width: 900px) {

  .stas-business-lines {
    flex-wrap: wrap !important;
  }

  .stas-business-lines > div {
    min-width: 45% !important;
  }

}


/* COMPASSSALES_STAS_ULTRA_COMPACT_END */


/* COMPASSSALES_FORECAST_CSS_START */

.stas-empty-cell {
  color: transparent !important;
}

.stas-forecast-section {
  margin-top: 12px !important;

  padding: 12px 14px !important;

  border: 1px solid #dfe6ef;
  border-radius: 18px;

  background: #fff;
}

.stas-forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 10px;
}

.stas-forecast-head-kicker {
  display: block;

  color: #8b99ac;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .10em;
}

.stas-forecast-head h3 {
  margin: 3px 0 0 0;

  color: #263a52;

  font-size: 18px;
  line-height: 1.05;
}

.stas-forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 8px;
}

.stas-forecast-card {
  padding: 10px 12px;

  border: 1px solid #e6ebf2;
  border-radius: 14px;

  background: #f9fbfd;
}

.stas-forecast-card.is-overall {
  background: #f5faff;
  border-color: #d8e7f8;
}

.stas-forecast-kicker {
  color: #7f90a6;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .08em;
}

.stas-forecast-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;

  margin-top: 8px;
}

.stas-forecast-fact span,
.stas-forecast-plan span {
  display: block;

  color: #8d9aad;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.stas-forecast-fact strong {
  display: block;

  margin-top: 2px;

  color: #273b53;

  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.stas-forecast-plan b {
  display: block;

  margin-top: 2px;

  color: #5c718c;

  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.stas-forecast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: 8px;

  color: #7f90a6;

  font-size: 8px;
  font-weight: 700;
}

.stas-forecast-track {
  margin-top: 7px;

  height: 5px;

  border-radius: 999px;
  overflow: hidden;

  background: #e8eef6;
}

.stas-forecast-bar {
  height: 100%;

  border-radius: 999px;

  background: linear-gradient(90deg, #2f8fe8 0%, #2a7fdb 100%);
}

@media (max-width: 980px) {
  .stas-forecast-grid {
    grid-template-columns: 1fr;
  }
}

/* COMPASSSALES_FORECAST_CSS_END */


/* COMPASSSALES_TABLE_FORECAST_V2_CSS_START */


/* ========================================
   ФАКТ
   ======================================== */

.stas-current-fact-row td {
  background:
    #f8fafc !important;
}


.stas-current-fact-row td:first-child {
  padding-left:
    28px !important;
}


.stas-summary-title {
  display:
    block;

  color:
    #2b3e55;

  font-size:
    15px;

  font-weight:
    900;
}


.stas-summary-subtitle {
  display:
    block;

  margin-top:
    2px;

  color:
    #8b99ab;

  font-size:
    8px !important;

  font-weight:
    700;
}


.stas-current-fact-row td > strong {
  color:
    #2d4057;

  font-size:
    16px;

  font-weight:
    900;
}


/* ========================================
   ПРОГНОЗ
   ======================================== */

.stas-forecast-row-v2 td {
  padding-top:
    12px !important;

  padding-bottom:
    12px !important;

  background:
    #f2f7fd !important;

  vertical-align:
    middle !important;
}


.stas-forecast-total-label strong {
  display:
    block;

  color:
    #293d55;

  font-size:
    17px;

  font-weight:
    900;
}


.stas-forecast-total-label small {
  display:
    block;

  margin-top:
    1px;

  color:
    #7f90a6;

  font-size:
    8px !important;

  font-weight:
    800;
}


.stas-forecast-total-label b {
  display:
    block;

  margin-top:
    7px;

  color:
    #287fdb;

  font-size:
    11px;

  font-weight:
    900;
}


.stas-forecast-total-label span {
  display:
    block;

  margin-top:
    2px;

  color:
    #8392a6;

  font-size:
    7px;
}


/* FACT / PLAN CELL */

.stas-inline-forecast {
  min-width:
    175px;
}


.stas-inline-forecast-values {
  display:
    flex;

  align-items:
    baseline;

  justify-content:
    center;

  gap:
    5px;

  white-space:
    nowrap;
}


.stas-inline-forecast-values strong {
  color:
    #287fdb;

  font-size:
    14px;

  font-weight:
    900;
}


.stas-inline-forecast-values > span {
  color:
    #a0adbd;

  font-size:
    10px;
}


.stas-inline-forecast-values b {
  color:
    #50647e;

  font-size:
    10px;

  font-weight:
    850;
}


.stas-inline-forecast-meta {
  display:
    flex;

  justify-content:
    center;

  gap:
    7px;

  margin-top:
    4px;

  color:
    #8392a7;

  font-size:
    7px;

  white-space:
    nowrap;
}


.stas-inline-forecast-track {
  width:
    90%;

  height:
    4px;

  overflow:
    hidden;

  margin:
    5px auto 0;

  border-radius:
    999px;

  background:
    #dde7f2;
}


.stas-inline-forecast-track i {
  display:
    block;

  height:
    100%;

  border-radius:
    inherit;

  background:
    #2f8fe8;
}


.stas-no-category-plan {
  color:
    #b0bccb;

  font-size:
    12px;

  font-weight:
    700;
}


/* COMPASSSALES_TABLE_FORECAST_V2_CSS_END */


/* COMPASSSALES_DIRECT_FORECAST_CSS_START */


/* Старые target для recalc остаются,
   но визуально не показываются */

.sr-legacy-total-sinks {
  display: none !important;
}


/* ============================
   ФАКТ
   ============================ */

.sr-current-fact-row td {
  background: #f8fafc !important;

  vertical-align: middle !important;
}


.sr-current-fact-row
.sr-current-value {
  color: #2c4058 !important;

  font-size: 16px !important;
  font-weight: 900 !important;

  text-align: center;
}


/* ============================
   ПРОГНОЗ
   ============================ */

.sr-forecast-row td {
  padding-top: 11px !important;
  padding-bottom: 11px !important;

  background: #f2f7fd !important;

  vertical-align: middle !important;
}


.sr-forecast-label > strong {
  display: block;

  color: #293d55;

  font-size: 16px;
  font-weight: 900;
}


.sr-forecast-label > span {
  display: block;

  margin-top: 1px;

  color: #8392a6;

  font-size: 8px;
  font-weight: 800;
}


.sr-forecast-overall {
  margin-top: 7px;
}


.sr-forecast-overall > div:first-child,
.sr-forecast-values {
  display: flex;
  align-items: baseline;
  justify-content: center;

  gap: 4px;

  white-space: nowrap;
}


.sr-forecast-overall b,
.sr-forecast-values b {
  color: #2581dd;

  font-size: 13px;
  font-weight: 900;
}


.sr-forecast-overall strong,
.sr-forecast-values strong {
  color: #51657e;

  font-size: 9px;
  font-weight: 850;
}


.sr-forecast-overall i,
.sr-forecast-values i {
  color: #a5b0bf;

  font-size: 9px;
  font-style: normal;
}


.sr-forecast-cell small,
.sr-forecast-overall small {
  display: block;

  margin-top: 3px;

  color: #8291a5;

  font-size: 7px;

  text-align: center;
}


.sr-forecast-track {
  width: 88%;
  height: 4px;

  overflow: hidden;

  margin: 5px auto 0;

  border-radius: 999px;

  background: #dce7f2;
}


.sr-forecast-track em {
  display: block;

  width: 0;
  height: 100%;

  border-radius: inherit;

  background: #2f8fe8;

  transition: width .2s ease;
}


.sr-forecast-empty {
  color: #b1bdcb !important;

  text-align: center;

  font-size: 12px;
}


/* COMPASSSALES_DIRECT_FORECAST_CSS_END */


/* COMPASSSALES_FORECAST_HIGHLIGHT_START */


/* =========================================
   ФАКТ СЕЙЧАС
   ========================================= */

.sr-current-fact-row .sr-name {
  vertical-align: middle !important;
}

.sr-current-fact-row .sr-name > strong {
  font-size: 16px !important;
  line-height: 1 !important;
}

.sr-current-fact-row .sr-partner-note {
  display: none !important;
}


/* =========================================
   ПРОГНОЗ
   ========================================= */

.sr-forecast-row td {
  padding:
    9px 10px !important;
}


/*
 * Три главных блока:
 * общее / партнёры / менеджеры
 */

.sr-forecast-overall,
.sr-forecast-cell {
  box-sizing: border-box;

  min-height: 72px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 8px 10px;

  border: 1px solid #d7e6f7;
  border-radius: 12px;

  background: #ffffff;

  box-shadow:
    0 3px 10px
    rgba(42, 85, 130, .035);
}


/*
 * Общий прогноз чуть сильнее выделяем.
 */

.sr-forecast-overall {
  background: #edf8f3;

  border-color: #d4ebdf;
}


.sr-forecast-overall b {
  color: #159765 !important;
}


/*
 * Партнёры / менеджеры —
 * голубой акцент.
 */

.sr-forecast-cell {
  background: #f6faff;
}


.sr-forecast-values b {
  color: #2581dd !important;
}


/* План визуально вторичный */

.sr-forecast-values strong,
.sr-forecast-overall strong {
  color: #65768c !important;

  font-weight: 800 !important;
}


/* Процент */

.sr-forecast-cell small,
.sr-forecast-overall small {
  margin-top: 4px !important;

  color: #74869c !important;

  font-size: 7.5px !important;

  font-weight: 750;
}


/* Прогресс */

.sr-forecast-track {
  margin-top: 6px !important;

  height: 4px !important;

  background: #e1eaf4 !important;
}


.sr-forecast-track em {
  background: #2f8fe8 !important;
}


.sr-forecast-overall
.sr-forecast-track em {
  background: #20a96f !important;
}


/*
 * Первая ячейка "Прогноз" компактнее.
 */

.sr-forecast-label {
  padding-left: 18px !important;
}


.sr-forecast-label > strong {
  font-size: 15px !important;
}


.sr-forecast-label > span {
  margin-top: 0 !important;

  font-size: 7px !important;
}


/*
 * Пустые категории не должны перетягивать внимание.
 */

.sr-forecast-empty {
  color: #c0cad6 !important;
}


/* COMPASSSALES_FORECAST_HIGHLIGHT_END */


/* COMPASSSALES_FORECAST_ALIGNMENT_FIX_START */


/* =========================================================
   ФАКТ СЕЙЧАС — ДЕЛАЕМ ЯРЧЕ
   ========================================================= */

.sr-current-fact-row td {
  background: #f8fbff !important;
  vertical-align: middle !important;
}

.sr-current-fact-row .sr-name {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.sr-current-fact-row .sr-name > strong {
  display: block;

  color: #203754 !important;

  font-size: 18px !important;
  font-weight: 950 !important;

  line-height: 1 !important;
}

.sr-current-fact-row .sr-current-value {
  font-size: 18px !important;
  font-weight: 950 !important;

  color: #233a57 !important;
}

/* Партнёры в факте — зелёным */
.sr-current-fact-row td:nth-child(2) {
  color: #17a165 !important;
}

/* Менеджеры и категории — синим / тёмным */
.sr-current-fact-row td:nth-child(3),
.sr-current-fact-row td:nth-child(4),
.sr-current-fact-row td:nth-child(5),
.sr-current-fact-row td:nth-child(6) {
  color: #277fdb !important;
}


/* =========================================================
   ПРОГНОЗ — ВЫРАВНИВАНИЕ
   ========================================================= */

.sr-forecast-row td {
  background: #f3f8fe !important;
  vertical-align: top !important;

  padding-top: 12px !important;
  padding-bottom: 14px !important;
}

/*
 * Первая колонка — заголовок + общий итог.
 * Остальные карточки нужно опустить чуть ниже,
 * чтобы они встали на одну визуальную линию
 * с общим блоком.
 */
.sr-forecast-row td:not(.sr-forecast-label) {
  padding-top: 42px !important;
}


/* Заголовок прогноза слева */
.sr-forecast-label {
  padding-left: 18px !important;
  width: 22% !important;
  min-width: 280px;
}

.sr-forecast-label > strong {
  display: block;

  color: #203754 !important;

  font-size: 18px !important;
  font-weight: 950 !important;

  line-height: 1 !important;
}

.sr-forecast-label > span {
  display: block;

  margin-top: 3px !important;

  color: #7e90a8 !important;

  font-size: 8px !important;
  font-weight: 800 !important;
}


/* =========================================================
   КАРТОЧКИ ПРОГНОЗА
   ========================================================= */

.sr-forecast-overall,
.sr-forecast-cell {
  box-sizing: border-box;

  width: 100%;
  max-width: 265px;

  min-height: 102px;

  margin: 8px auto 0 !important;
  padding: 12px 14px !important;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-radius: 16px !important;

  box-shadow:
    0 8px 20px rgba(27, 63, 110, .05) !important;
}

/* ОБЩИЙ — более яркий */
.sr-forecast-overall {
  background: linear-gradient(180deg, #f2fbf6 0%, #eaf8f0 100%) !important;
  border: 1px solid #cfe8db !important;
}

/* Партнёры / менеджеры */
.sr-forecast-cell {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%) !important;
  border: 1px solid #d8e6f6 !important;
}


/* =========================================================
   ЦИФРЫ ВНУТРИ ПРОГНОЗА
   ========================================================= */

.sr-forecast-overall > div:first-child,
.sr-forecast-values {
  display: flex;
  align-items: baseline;
  justify-content: center;

  gap: 6px !important;

  white-space: nowrap;
}

.sr-forecast-overall b {
  color: #159b62 !important;

  font-size: 17px !important;
  font-weight: 950 !important;
}

.sr-forecast-values b {
  color: #277fdb !important;

  font-size: 17px !important;
  font-weight: 950 !important;
}

.sr-forecast-overall strong,
.sr-forecast-values strong {
  color: #5c6f87 !important;

  font-size: 12px !important;
  font-weight: 850 !important;
}

.sr-forecast-overall i,
.sr-forecast-values i {
  color: #9eaabc !important;

  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 700;
}

.sr-forecast-overall small,
.sr-forecast-cell small {
  display: block;

  margin-top: 8px !important;

  color: #74869d !important;

  font-size: 8px !important;
  font-weight: 800 !important;

  text-align: center;
}


/* =========================================================
   ПРОГРЕСС-БАРЫ
   ========================================================= */

.sr-forecast-track {
  width: 100% !important;
  height: 6px !important;

  margin: 10px 0 0 0 !important;

  overflow: hidden;

  border-radius: 999px !important;

  background: #dfe9f5 !important;
}

.sr-forecast-track em {
  display: block;
  height: 100%;

  border-radius: inherit;

  transition: width .2s ease;
}

.sr-forecast-overall .sr-forecast-track em {
  background: linear-gradient(90deg, #18a567 0%, #0e9158 100%) !important;
}

.sr-forecast-cell .sr-forecast-track em {
  background: linear-gradient(90deg, #3391eb 0%, #267fdb 100%) !important;
}


/* =========================================================
   ПУСТЫЕ КАТЕГОРИИ
   ========================================================= */

.sr-forecast-empty {
  color: #b7c2cf !important;

  text-align: center !important;

  font-size: 15px !important;
  font-weight: 700 !important;

  padding-top: 62px !important;
}


/* =========================================================
   МОБИЛКА / УЗКИЙ ЭКРАН
   ========================================================= */

@media (max-width: 1400px) {
  .sr-forecast-overall,
  .sr-forecast-cell {
    max-width: 240px;
  }
}

@media (max-width: 1200px) {
  .sr-forecast-row td:not(.sr-forecast-label) {
    padding-top: 18px !important;
  }

  .sr-forecast-overall,
  .sr-forecast-cell {
    max-width: none;
    min-height: 92px;
  }

  .sr-forecast-label {
    min-width: 220px;
  }
}


/* COMPASSSALES_FORECAST_ALIGNMENT_FIX_END */


/* COMPASSSALES_FORECAST_ROW_REWORK_START */

/* =========================================
   ФАКТ СЕЙЧАС — чуть ярче
   ========================================= */

.sr-current-fact-row td {
  background: #f8fbff !important;
}

.sr-current-fact-row .sr-name > strong {
  color: #1f3956 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.sr-current-fact-row .sr-current-value {
  font-size: 18px !important;
  font-weight: 950 !important;
}

.sr-current-fact-row td:nth-child(2) {
  color: #18a163 !important;
}

.sr-current-fact-row td:nth-child(3),
.sr-current-fact-row td:nth-child(4),
.sr-current-fact-row td:nth-child(5),
.sr-current-fact-row td:nth-child(6) {
  color: #2b81dc !important;
}


/* =========================================
   ПРОГНОЗ — новая ровная сетка
   ========================================= */

.sr-forecast-row td {
  background: #f3f8fe !important;
  padding: 14px 10px !important;
  vertical-align: top !important;
}

.sr-forecast-label {
  min-width: 150px;
  padding-left: 16px !important;
}

.sr-forecast-label > strong {
  display: block;
  color: #233a57;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.sr-forecast-label > span {
  display: block;
  margin-top: 4px;
  color: #7e90a8;
  font-size: 8px;
  font-weight: 800;
}

.sr-forecast-overall,
.sr-forecast-cell,
.sr-expected-card {
  width: 100%;
  min-height: 128px;
  max-width: 280px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  box-sizing: border-box;
  padding: 14px 16px;

  border-radius: 18px;
  border: 1px solid #d7e6f6;

  background: #ffffff;

  box-shadow: 0 8px 22px rgba(28, 61, 104, .05);
}

.sr-forecast-overall {
  background: linear-gradient(180deg, #f1fbf5 0%, #eaf8f0 100%);
  border-color: #cfe7d9;
}

.sr-forecast-cell {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
}

.sr-expected-card {
  background: linear-gradient(180deg, #fffdf9 0%, #fffaf0 100%);
  border-color: #f0e2bf;
}

.sr-expected-card.is-partner-expected {
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
  border-color: #efd9ca;
}

.sr-forecast-card-title {
  color: #7b8da5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.sr-forecast-values {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;

  margin-top: 10px;

  white-space: nowrap;
}

.sr-forecast-overall .sr-forecast-values b {
  color: #169a63 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.sr-forecast-cell .sr-forecast-values b {
  color: #2b81dc !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.sr-forecast-values strong {
  color: #5f7188 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.sr-forecast-values i {
  color: #a1adbe !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 700;
}

.sr-forecast-overall small,
.sr-forecast-cell small {
  display: block;
  margin-top: 9px;
  color: #71839a;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.sr-forecast-track {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde7f2;
}

.sr-forecast-track em {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width .2s ease;
}

.sr-forecast-overall .sr-forecast-track em {
  background: linear-gradient(90deg, #18a466 0%, #108f58 100%);
}

.sr-forecast-cell .sr-forecast-track em {
  background: linear-gradient(90deg, #3391eb 0%, #267fdb 100%);
}


/* =========================================
   ОЖИДАЕМЫЕ СЧЕТА
   ========================================= */

.sr-expected-value {
  margin-top: 12px;

  color: #b57714;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.sr-expected-card.is-partner-expected .sr-expected-value {
  color: #c66b39;
}

.sr-expected-card small {
  display: block;
  margin-top: 10px;

  color: #8e7a56;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.sr-expected-card.is-partner-expected small {
  color: #96735f;
}


/* =========================================
   АДАПТИВ
   ========================================= */

@media (max-width: 1450px) {
  .sr-forecast-overall,
  .sr-forecast-cell,
  .sr-expected-card {
    max-width: 245px;
    min-height: 120px;
    padding: 12px 14px;
  }

  .sr-forecast-values b {
    font-size: 16px !important;
  }

  .sr-expected-value {
    font-size: 18px;
  }
}

@media (max-width: 1200px) {
  .sr-forecast-overall,
  .sr-forecast-cell,
  .sr-expected-card {
    max-width: none;
    min-height: 108px;
  }
}

/* COMPASSSALES_FORECAST_ROW_REWORK_END */


/* COMPASSSALES_FORECAST_GRID_V3_START */


/* =========================================================
   ВСЯ СТРОКА ПРОГНОЗА
   ========================================================= */

.sr-forecast-row > td.sr-forecast-row-cell {
  padding: 14px 16px 16px !important;

  background: #f3f8fe !important;

  vertical-align: top !important;
}


/* Заголовок теперь сверху,
   поэтому он больше не сдвигает карточки */

.sr-forecast-row-head {
  display: flex;
  align-items: baseline;

  gap: 7px;

  margin-bottom: 10px;
}


.sr-forecast-row-head strong {
  color: #233a57;

  font-size: 18px;
  font-weight: 950;

  line-height: 1;
}


.sr-forecast-row-head span {
  color: #8392a7;

  font-size: 8px;
  font-weight: 800;
}


/* =========================================================
   РОВНО ПЯТЬ КАРТОЧЕК
   ========================================================= */

.sr-forecast-grid-v3 {
  display: grid !important;

  grid-template-columns:
    repeat(5, minmax(0, 1fr)) !important;

  align-items: stretch !important;

  gap: 10px !important;

  width: 100%;
}


/* Перебиваем предыдущие margin/max-width,
   из-за которых всё и разъезжалось */

.sr-forecast-grid-v3
.sr-forecast-overall,

.sr-forecast-grid-v3
.sr-forecast-cell,

.sr-forecast-grid-v3
.sr-expected-card {
  width: 100% !important;

  max-width: none !important;

  min-width: 0 !important;

  min-height: 118px !important;

  height: 100% !important;

  margin: 0 !important;

  box-sizing: border-box;

  padding: 12px 13px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;

  border-radius: 15px !important;

  box-shadow:
    0 5px 16px
    rgba(32,66,107,.04) !important;
}


/* =========================================================
   ЦВЕТА
   ========================================================= */

.sr-forecast-grid-v3
.sr-forecast-overall {
  background:
    #edf9f3 !important;

  border:
    1px solid #cde8da !important;
}


.sr-forecast-grid-v3
.sr-forecast-cell {
  background:
    #f8fbff !important;

  border:
    1px solid #d7e5f6 !important;
}


.sr-forecast-grid-v3
.sr-expected-card {
  background:
    #fbfcfe !important;

  border:
    1px solid #dfe6ef !important;
}


/* =========================================================
   ЗАГОЛОВКИ КАРТОЧЕК
   ========================================================= */

.sr-forecast-grid-v3
.sr-forecast-card-title {
  min-height: 14px;

  color: #7f90a6;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .07em;

  text-align: center;
  text-transform: uppercase;
}


/* =========================================================
   ФАКТ / ПЛАН
   ========================================================= */

.sr-forecast-grid-v3
.sr-forecast-values {
  display: flex !important;

  align-items: baseline !important;
  justify-content: center !important;

  gap: 5px !important;

  margin-top: 9px !important;

  white-space: nowrap;
}


.sr-forecast-grid-v3
.sr-forecast-overall
.sr-forecast-values b {
  color: #159b62 !important;

  font-size: 17px !important;
  font-weight: 950 !important;
}


.sr-forecast-grid-v3
.sr-forecast-cell
.sr-forecast-values b {
  color: #2b81dc !important;

  font-size: 17px !important;
  font-weight: 950 !important;
}


.sr-forecast-grid-v3
.sr-forecast-values strong {
  color: #61738a !important;

  font-size: 10px !important;
  font-weight: 850 !important;
}


.sr-forecast-grid-v3
.sr-forecast-values i {
  color: #a3afbf !important;

  font-size: 10px !important;
  font-style: normal !important;
}


/* =========================================================
   ПРОЦЕНТ
   ========================================================= */

.sr-forecast-grid-v3
.sr-forecast-overall small,

.sr-forecast-grid-v3
.sr-forecast-cell small {
  display: block;

  margin-top: 7px !important;

  color: #75879e !important;

  font-size: 8px !important;
  font-weight: 800 !important;

  text-align: center;
}


/* =========================================================
   БАРЫ
   ========================================================= */

.sr-forecast-grid-v3
.sr-forecast-track {
  width: 100% !important;

  height: 5px !important;

  margin: 9px 0 0 !important;

  overflow: hidden;

  border-radius: 999px;

  background: #dde7f2 !important;
}


.sr-forecast-grid-v3
.sr-forecast-track em {
  display: block;

  height: 100%;

  border-radius: inherit;
}


.sr-forecast-grid-v3
.sr-forecast-overall
.sr-forecast-track em {
  background: #18a466 !important;
}


.sr-forecast-grid-v3
.sr-forecast-cell
.sr-forecast-track em {
  background: #2f8fe8 !important;
}


/* =========================================================
   ВЫСТАВЛЕННЫЕ СЧЕТА
   ========================================================= */

.sr-forecast-grid-v3
.sr-expected-value {
  margin-top: 13px !important;

  color: #5f7188 !important;

  font-size: 23px !important;
  font-weight: 900 !important;

  line-height: 1 !important;

  text-align: center;
}


.sr-forecast-grid-v3
.sr-expected-card small {
  display: block;

  margin-top: 9px;

  color: #8997a9;

  font-size: 8px;
  font-weight: 750;

  text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1350px) {

  .sr-forecast-grid-v3 {
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;
  }

}


@media (max-width: 850px) {

  .sr-forecast-grid-v3 {
    grid-template-columns:
      1fr !important;
  }

}


/* COMPASSSALES_FORECAST_GRID_V3_END */


/* COMPASSSALES_INVOICES_UI_START */


/* =========================================================
   QUICK ACTION
   ========================================================= */

.invoice-quick-button {
  min-height: 72px;

  padding: 11px 13px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  border:
    1px solid #d9e4f0;

  border-radius: 13px;

  background:
    #f7faff;

  color:
    #293c54;

  cursor: pointer;

  font: inherit;

  text-align: left;
}


.invoice-quick-button:hover {
  background:
    #eef6ff;

  border-color:
    #bed7f1;
}


.invoice-quick-button strong {
  font-size: 11px;
  font-weight: 900;
}


.invoice-quick-button span {
  margin-top: 3px;

  color: #8190a5;

  font-size: 8px;
}


/* =========================================================
   DIALOG
   ========================================================= */

.invoice-dialog {
  width:
    min(
      670px,
      calc(100vw - 30px)
    );

  max-height:
    86vh;

  overflow-y: auto;

  padding: 0;

  border:
    1px solid #dfe6ef;

  border-radius: 20px;

  background: #fff;

  box-shadow:
    0 28px 80px
    rgba(30, 47, 72, .18);
}


.invoice-dialog::backdrop {
  background:
    rgba(25, 39, 57, .28);

  backdrop-filter:
    blur(2px);
}


.invoice-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 17px 18px 13px;

  border-bottom:
    1px solid #edf0f4;
}


.invoice-dialog-head h3 {
  margin: 3px 0 0;

  color: #273b53;

  font-size: 18px;
  font-weight: 900;
}


.invoice-dialog-close {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 9px;

  background: #f2f5f9;

  color: #6c7d92;

  cursor: pointer;

  font-size: 18px;
}


/* =========================================================
   FORM
   ========================================================= */

.invoice-form {
  padding: 15px 18px;
}


.invoice-form-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;
}


.invoice-form label {
  display: grid;

  gap: 5px;
}


.invoice-form label > span {
  color: #7d8da2;

  font-size: 8px;
  font-weight: 800;
}


.invoice-form input,
.invoice-form select {
  width: 100%;
  height: 38px;

  box-sizing: border-box;

  padding: 0 10px;

  border:
    1px solid #dfe6ef;

  border-radius: 10px;

  background: #fff;

  color: #34495f;

  outline: none;

  font: inherit;
  font-size: 10px;
}


.invoice-form input:focus,
.invoice-form select:focus {
  border-color:
    #91bee9;

  box-shadow:
    0 0 0 3px
    rgba(42, 131, 220, .06);
}


.invoice-submit {
  width: 100%;
  min-height: 38px;

  margin-top: 12px;

  border: 0;
  border-radius: 10px;

  background: #2f8fe8;

  color: #fff;

  cursor: pointer;

  font: inherit;
  font-size: 10px;
  font-weight: 900;
}


.invoice-form-status {
  min-height: 15px;

  margin-top: 8px;

  color: #59708b;

  font-size: 8px;
  font-weight: 750;
}


.invoice-paid-note {
  margin: 7px 0 0;

  color: #8b98a9;

  font-size: 7px;

  text-align: center;
}


/* =========================================================
   PENDING
   ========================================================= */

.invoice-pending {
  padding:
    13px 18px 18px;

  border-top:
    1px solid #edf0f4;

  background:
    #fafbfd;
}


.invoice-pending-head strong {
  display: block;

  color: #31465d;

  font-size: 11px;
}


.invoice-pending-head small {
  display: block;

  margin-top: 2px;

  color: #8493a7;

  font-size: 8px;
}


.invoice-pending-list {
  display: grid;

  gap: 6px;

  margin-top: 10px;
}


.invoice-pending-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    auto;

  align-items: center;

  gap: 10px;

  padding: 9px 10px;

  border:
    1px solid #e4e9f0;

  border-radius: 11px;

  background: #fff;
}


.invoice-pending-info {
  min-width: 0;
}


.invoice-pending-info strong {
  display: block;

  overflow: hidden;

  color: #34495f;

  font-size: 9px;
  font-weight: 850;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.invoice-pending-info small {
  display: block;

  margin-top: 2px;

  color: #8997a9;

  font-size: 7px;
}


.invoice-pending-value {
  color: #2b81dc;

  font-size: 11px;
  font-weight: 900;

  white-space: nowrap;
}


.invoice-pending-actions {
  display: flex;

  gap: 4px;
}


.invoice-pending-actions button {
  min-height: 27px;

  padding: 0 8px;

  border-radius: 8px;

  cursor: pointer;

  font: inherit;
  font-size: 7px;
  font-weight: 850;
}


.invoice-paid {
  border:
    1px solid #cde6d8;

  background:
    #eef9f3;

  color:
    #19865a;
}


.invoice-cancel {
  border:
    1px solid #e4e8ed;

  background:
    #f7f8fa;

  color:
    #7b8796;
}


.invoice-empty {
  padding: 15px;

  color: #929eae;

  font-size: 8px;

  text-align: center;
}


/* =========================================================
   STAS EXPECTED
   ========================================================= */

.sr-forecast-grid-v3
.sr-expected-card {
  background:
    #f8fbff !important;

  border-color:
    #d7e5f5 !important;
}


.sr-forecast-grid-v3
.sr-expected-value {
  color:
    #2c80d9 !important;
}


.sr-forecast-grid-v3
.sr-expected-card small {
  color:
    #8090a5 !important;
}


@media (max-width: 700px) {

  .invoice-form-grid {
    grid-template-columns:
      1fr;
  }


  .invoice-pending-item {
    grid-template-columns:
      1fr auto;
  }


  .invoice-pending-actions {
    grid-column:
      1 / -1;
  }

}


/* COMPASSSALES_INVOICES_UI_END */

/* COMPASSSALES_CHAT_FILES_UI_START */

.cm2-shell {
  width: 100%;

  height:
    calc(100vh - 120px);

  min-height: 570px;

  display: grid;

  grid-template-columns:
    285px
    minmax(0, 1fr);

  overflow: hidden;

  border:
    1px solid #e1e7ef;

  border-radius: 20px;

  background: #fff;

  box-shadow:
    0 8px 28px
    rgba(31,48,73,.04);
}


.cm2-sidebar {
  min-width: 0;

  background: #f8fafc;

  border-right:
    1px solid #e5eaf1;
}


.cm2-side-head {
  height: 68px;

  display: flex;
  align-items: center;

  padding: 0 17px;

  border-bottom:
    1px solid #e5eaf1;
}


.cm2-side-head span {
  color: #8998a9;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .1em;
}


.cm2-side-head h1 {
  margin: 3px 0 0;

  color: #30465f;

  font-size: 17px;
  line-height: 1;

  font-weight: 900;
}


.cm2-peers {
  padding: 7px;
}


.cm2-peer {
  width: 100%;

  min-height: 59px;

  display: grid;

  grid-template-columns:
    39px
    minmax(0, 1fr)
    auto;

  gap: 9px;

  align-items: center;

  padding: 8px 9px;

  border: 0;
  border-radius: 12px;

  background: transparent;

  font: inherit;
  text-align: left;

  cursor: pointer;
}


.cm2-peer:hover {
  background: #eef3f8;
}


.cm2-peer.active {
  background: #eaf4ff;
}


.cm2-peer-avatar,
.cm2-avatar {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #dceafa;
  color: #2d7fce;

  font-size: 10px;
  font-weight: 900;
}


.cm2-peer-copy {
  min-width: 0;
}


.cm2-peer-copy strong {
  display: block;

  overflow: hidden;

  color: #344a62;

  font-size: 10px;
  font-weight: 900;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.cm2-peer-copy small {
  display: block;

  overflow: hidden;

  margin-top: 3px;

  color: #8b98a8;

  font-size: 8px;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.cm2-unread {
  min-width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  box-sizing: border-box;

  padding: 0 5px;

  border-radius: 999px;

  background: #2f8fe8;
  color: #fff;

  font-size: 7px;
  font-weight: 900;
}


.cm2-loading {
  padding: 24px 10px;

  color: #919eae;

  font-size: 9px;
  text-align: center;
}


/* DIALOG */

.cm2-dialog {
  min-width: 0;
  min-height: 0;

  display: grid;

  grid-template-rows:
    68px
    minmax(0, 1fr)
    auto;

  background: #f5f7fa;
}


.cm2-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 0 17px;

  background: #fff;

  border-bottom:
    1px solid #e5eaf1;
}


.cm2-person {
  display: flex;
  align-items: center;

  gap: 10px;
}


.cm2-person strong {
  display: block;

  color: #32475e;

  font-size: 11px;
  font-weight: 900;
}


.cm2-person span {
  display: block;

  margin-top: 2px;

  color: #8b98a8;

  font-size: 8px;
}


.cm2-notify-button {
  height: 31px;

  padding: 0 10px;

  border:
    1px solid #dfe6ee;

  border-radius: 9px;

  background: #f7f9fb;
  color: #6c7f94;

  font: inherit;
  font-size: 8px;
  font-weight: 800;

  cursor: pointer;
}


.cm2-notify-button:hover {
  background: #eef4f9;
}


.cm2-notify-button.enabled {
  border-color: #cfe5fa;

  background: #edf7ff;
  color: #287fcc;
}


/* MESSAGES */

.cm2-messages {
  min-height: 0;

  overflow-y: auto;

  padding: 18px 22px 14px;

  overscroll-behavior: contain;
}


.cm2-empty {
  min-height: 100%;

  display: grid;
  place-items: center;

  color: #98a3b2;

  font-size: 9px;
}


.cm2-message {
  display: flex;

  margin: 4px 0;
}


.cm2-message.mine {
  justify-content: flex-end;
}


.cm2-message.theirs {
  justify-content: flex-start;
}


.cm2-bubble {
  max-width:
    min(
      68%,
      620px
    );

  padding:
    8px 10px 6px;

  border-radius: 15px;

  background: #fff;

  box-shadow:
    0 1px 3px
    rgba(32,49,72,.07);
}


.cm2-message.mine
.cm2-bubble {
  background: #e5f2ff;
}


.cm2-text {
  color: #30455d;

  font-size: 10px;
  line-height: 1.45;

  overflow-wrap: anywhere;
}


.cm2-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;

  margin-top: 4px;
}


.cm2-meta time {
  color: #8b99aa;

  font-size: 6.5px;
}


.cm2-receipt {
  color: #8493a4;

  font-size: 6.7px;
  font-weight: 700;
}


.cm2-receipt.read {
  color: #3988cc;
}


/* IMAGE */

.cm2-photo {
  display: block;

  width:
    min(
      340px,
      50vw
    );

  padding: 0;

  overflow: hidden;

  border: 0;
  border-radius: 12px;

  background: transparent;

  cursor: pointer;
}


.cm2-photo img {
  width: 100%;

  max-height: 390px;

  display: block;

  object-fit: cover;
}


/* FILE */

.cm2-file {
  min-width: 230px;
  max-width: 360px;

  display: flex;
  align-items: center;

  gap: 10px;

  color: inherit;

  text-decoration: none;
}


.cm2-file-icon {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: #d8eafb;
  color: #287dca;

  font-size: 7px;
  font-weight: 900;
}


.cm2-file-copy {
  min-width: 0;
}


.cm2-file-copy strong {
  display: block;

  overflow: hidden;

  color: #354b63;

  font-size: 9px;
  font-weight: 850;

  white-space: nowrap;
  text-overflow: ellipsis;
}


.cm2-file-copy small {
  display: block;

  margin-top: 3px;

  color: #8997a8;

  font-size: 7px;
}


/* COMPOSER */

.cm2-compose-area {
  position: relative;

  padding: 10px 13px 13px;
}


.cm2-form {
  min-height: 48px;

  display: flex;
  align-items: flex-end;

  gap: 3px;

  padding: 5px 6px;

  border:
    1px solid #dfe5ec;

  border-radius: 17px;

  background: #fff;

  box-shadow:
    0 3px 12px
    rgba(32,49,72,.045);
}


.cm2-form textarea {
  min-width: 0;
  min-height: 36px;
  max-height: 110px;

  flex: 1;

  box-sizing: border-box;

  padding: 9px 6px 7px;

  resize: none;

  border: 0;
  outline: 0;

  background: transparent;

  color: #31465e;

  font: inherit;
  font-size: 10px;
  line-height: 1.4;
}


.cm2-form textarea::placeholder {
  color: #9aa5b4;
}


.cm2-tool,
.cm2-send {
  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: #7c8da0;

  cursor: pointer;

  line-height: 1;
}


.cm2-tool:hover {
  background: #f1f5f8;
}


.cm2-attach {
  font-size: 19px;
}


.cm2-emoji {
  font-size: 24px;
}


.cm2-send {
  background: #2f8fe8;
  color: #fff;

  font-size: 16px;
}


.cm2-send:hover {
  background: #277fd2;
}


/* EMOJI PICKER */

.cm2-emoji-picker {
  position: absolute;

  right: 52px;
  bottom: 68px;

  z-index: 60;

  width: 286px;

  display: grid;

  grid-template-columns:
    repeat(8, 1fr);

  gap: 2px;

  padding: 9px;

  border:
    1px solid #dfe5ec;

  border-radius: 15px;

  background: #fff;

  box-shadow:
    0 18px 50px
    rgba(29,46,69,.17);
}


.cm2-emoji-picker[hidden] {
  display: none;
}


.cm2-emoji-picker button {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 8px;

  background: transparent;

  cursor: pointer;

  font-size: 18px;
}


.cm2-emoji-picker button:hover {
  background: #f1f4f8;
}


/* DRAG */

.cm2-drop {
  position: absolute;

  inset:
    -150px
    13px
    13px;

  z-index: 70;

  display: grid;
  place-items: center;

  border:
    2px dashed #82b8e9;

  border-radius: 18px;

  background:
    rgba(238,247,255,.96);

  color: #317ab9;

  font-size: 10px;
  font-weight: 850;
}


.cm2-drop[hidden] {
  display: none;
}


/* PHOTO VIEWER */

.cm2-photo-dialog {
  max-width: 90vw;
  max-height: 90vh;

  padding: 12px;

  border: 0;
  border-radius: 16px;

  background: #111b27;
}


.cm2-photo-dialog::backdrop {
  background:
    rgba(13,20,29,.78);
}


.cm2-photo-dialog img {
  display: block;

  max-width: 82vw;
  max-height: 82vh;

  border-radius: 10px;

  object-fit: contain;
}


.cm2-photo-dialog button {
  position: absolute;

  top: 8px;
  right: 8px;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background:
    rgba(0,0,0,.5);

  color: #fff;

  cursor: pointer;

  font-size: 18px;
}


/* LOCAL TOAST */

.cm2-toasts {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 99999;

  display: grid;

  gap: 6px;
}


.cm2-toast {
  max-width: 330px;

  padding: 10px 12px;

  border:
    1px solid #dfe6ed;

  border-radius: 12px;

  background: #fff;
  color: #42566e;

  box-shadow:
    0 14px 38px
    rgba(30,47,69,.15);

  font-size: 9px;
  font-weight: 750;

  transition: .2s ease;
}


.cm2-toast.out {
  opacity: 0;

  transform:
    translateY(5px);
}


@media (max-width: 850px) {

  .cm2-shell {
    grid-template-columns:
      210px
      minmax(0,1fr);
  }


  .cm2-bubble {
    max-width: 82%;
  }

}


@media (max-width: 650px) {

  .cm2-shell {
    grid-template-columns:
      86px
      minmax(0,1fr);
  }


  .cm2-side-head span,
  .cm2-side-head h1,
  .cm2-peer-copy {
    display: none;
  }


  .cm2-peer {
    display: flex;
    justify-content: center;
  }


  .cm2-notify-button {
    padding: 0 7px;

    font-size: 0;
  }


  .cm2-notify-button::before {
    content: "🔔";

    font-size: 14px;
  }


  .cm2-emoji-picker {
    right: 10px;

    width: 270px;
  }

}

/* COMPASSSALES_CHAT_FILES_UI_END */

/* COMPASSSALES_ACTIVE_NAV_CSS_START */

/*
 * Все пункты меню по умолчанию НЕ активны.
 * !important специально перебивает старую
 * постоянную подсветку «Для Стаса».
 */

.topbar nav a {
  box-sizing: border-box !important;

  padding: 13px 18px !important;

  border:
    1px solid transparent !important;

  border-radius:
    13px !important;

  background:
    transparent !important;

  color:
    #566b86 !important;

  box-shadow:
    none !important;

  text-decoration:
    none !important;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease !important;
}


/*
 * Hover — лёгкий, но не выглядит
 * как выбранный раздел.
 */

.topbar nav a:hover {
  background:
    rgba(229, 238, 248, .55) !important;

  color:
    #344d69 !important;
}


/*
 * ТОЛЬКО текущий раздел.
 */

.topbar nav a.cs-current-section {
  background:
    #e9f4ff !important;

  border-color:
    #bddcff !important;

  color:
    #247bd4 !important;

  box-shadow:
    0 1px 2px
    rgba(38, 125, 210, .04) !important;

  font-weight:
    800 !important;
}


/*
 * На hover активная кнопка остаётся активной.
 */

.topbar nav a.cs-current-section:hover {
  background:
    #e9f4ff !important;

  border-color:
    #bddcff !important;

  color:
    #247bd4 !important;
}

/* COMPASSSALES_ACTIVE_NAV_CSS_END */

/* COMPASSSALES_NAV_COLOR_FIX */

/* Все НЕАКТИВНЫЕ разделы одного цвета */
a[href="/"],
a[href="/department-plan"],
a[href="/sales-report"],
a[href="/messages"] {
  color: #566b86 !important;
}

/* Только текущий раздел синий */
a[href="/"].cs-current-section,
a[href="/department-plan"].cs-current-section,
a[href="/sales-report"].cs-current-section,
a[href="/messages"].cs-current-section {
  color: #247bd4 !important;
}

/* COMPASSSALES_KP_UI_START */
.topbar nav a[href="/commercial-proposals"]{white-space:nowrap}
.kp-page{width:100%}
.kp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.kp-kicker{margin-bottom:5px;color:#8a99aa;font-size:9px;font-weight:900;letter-spacing:.12em}
.kp-head h1{margin:0;color:#2f455e;font-size:27px;line-height:1.1;font-weight:900}
.kp-head p{margin:7px 0 0;color:#8291a3;font-size:11px}
.kp-tariff-pill{min-width:190px;padding:12px 15px;border:1px solid #d8e8f8;border-radius:15px;background:#f0f7ff}
.kp-tariff-pill span,.kp-tariff-pill small{display:block;color:#8091a4;font-size:8px}
.kp-tariff-pill strong{display:block;margin:2px 0;color:#267fce;font-size:20px;font-weight:900}
.kp-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(350px,.95fr);gap:14px;align-items:start}
.kp-form-card,.kp-calc-card{box-sizing:border-box;padding:18px;border:1px solid #dfe6ee;border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(35,54,78,.035)}
.kp-card-title{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.kp-card-title>span{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:10px;background:#edf4fb;color:#6682a0;font-size:9px;font-weight:900}
.kp-card-title strong,.kp-card-title small{display:block}.kp-card-title strong{color:#344b64;font-size:12px;font-weight:900}.kp-card-title small{margin-top:2px;color:#8b99aa;font-size:8px}
.kp-field{display:block;margin-bottom:13px}.kp-field>span{display:block;margin:0 0 6px 2px;color:#657a92;font-size:9px;font-weight:800}
.kp-field input{width:100%;height:47px;box-sizing:border-box;padding:0 13px;border:1px solid #dbe3ec;border-radius:12px;outline:none;background:#fafbfd;color:#31475f;font:inherit;font-size:12px;font-weight:750;transition:.15s ease}
.kp-field input:focus{border-color:#9ecbf3;background:#fff;box-shadow:0 0 0 3px rgba(47,143,232,.08)}
.kp-fixed-note{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:4px 0 15px;padding:11px 12px;border-radius:12px;background:#f6f8fb}
.kp-fixed-note span{grid-row:1/3;align-self:center;color:#95a2b1;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.kp-fixed-note strong{color:#465d76;font-size:10px;font-weight:900}.kp-fixed-note small{color:#8595a7;font-size:8px}
.kp-download{width:100%;min-height:55px;display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:9px 13px;border:0;border-radius:13px;background:#2f8fe8;color:#fff;text-align:left;cursor:pointer;transition:.15s ease}
.kp-download:hover{background:#287fd0;transform:translateY(-1px)}.kp-download-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:rgba(255,255,255,.16);font-size:18px;font-weight:900}.kp-download strong,.kp-download small{display:block}.kp-download strong{font-size:10px;font-weight:900}.kp-download small{margin-top:2px;color:rgba(255,255,255,.78);font-size:7.5px}.kp-download.loading{pointer-events:none;opacity:.82}
.kp-calc-primary{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-bottom:14px;border-bottom:1px solid #e5eaf0}.kp-calc-primary>span{grid-column:1/-1;color:#8494a5;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.kp-calc-primary>div{padding:12px;border:1px solid #e0e6ed;border-radius:12px;background:#f8fafc}
.kp-calc-primary small,.kp-calc-primary strong,.kp-discount-total small,.kp-discount-total strong{display:block}.kp-calc-primary small,.kp-discount-total small{color:#8999aa;font-size:8px}.kp-calc-primary strong{margin-top:4px;color:#354d67;font-size:17px;font-weight:900}
.kp-calc-discount{margin-top:14px;padding:14px;border:1px solid #cee8dc;border-radius:14px;background:#effaf5}.kp-discount-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.kp-discount-head span{color:#537463;font-size:9px;font-weight:850}.kp-discount-head b{padding:4px 7px;border-radius:8px;background:#d8f1e5;color:#347456;font-size:9px;font-weight:900}.kp-discount-total{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kp-discount-total strong{margin-top:4px;color:#2f654d;font-size:17px;font-weight:900}
.kp-template-note{display:grid;gap:7px;margin-top:14px;padding:13px;border-radius:12px;background:#f7f9fb}.kp-template-note b{margin-bottom:1px;color:#536a82;font-size:9px;font-weight:900}.kp-template-note span{position:relative;padding-left:13px;color:#7f8fa1;font-size:8px}.kp-template-note span::before{content:"✓";position:absolute;left:0;color:#4b9a73;font-weight:900}
@media(max-width:980px){.kp-layout{grid-template-columns:1fr}.kp-head{align-items:flex-start}}@media(max-width:650px){.kp-head{display:block}.kp-tariff-pill{margin-top:12px}.kp-calc-primary,.kp-discount-total{grid-template-columns:1fr}}
/* COMPASSSALES_KP_UI_END */

/* COMPASSSALES_KP_TERMS_START */

.kp-option-group {
  margin-bottom: 15px;
}


.kp-option-label {
  margin:
    0 0 7px 2px;

  color: #657a92;

  font-size: 9px;
  font-weight: 800;
}


.kp-choice-row {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;
}


.kp-choice {
  min-width: 68px;
  height: 39px;

  padding: 0 13px;

  border:
    1px solid #dbe3ec;

  border-radius: 11px;

  background: #fafbfd;

  color: #61758d;

  font: inherit;
  font-size: 10px;
  font-weight: 850;

  cursor: pointer;

  transition: .15s ease;
}


.kp-choice:hover {
  border-color: #b9d4ec;

  background: #f2f7fc;
}


.kp-choice.active {
  border-color: #8abce7;

  background: #eaf4ff;

  color: #2368a8;

  box-shadow:
    0 0 0 2px
    rgba(35,104,168,.06);
}


.kp-custom-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: 9px;

  padding:
    8px 10px 8px 12px;

  border-radius: 11px;

  background: #f7f9fb;
}


.kp-custom-discount > span {
  color: #7c8da1;

  font-size: 8.5px;
  font-weight: 750;
}


.kp-custom-discount > div {
  display: flex;
  align-items: center;

  gap: 5px;
}


.kp-custom-discount input {
  width: 72px;
  height: 32px;

  box-sizing: border-box;

  padding: 0 8px;

  border:
    1px solid #d9e2eb;

  border-radius: 8px;

  background: #fff;

  color: #354b63;

  font: inherit;
  font-size: 11px;
  font-weight: 850;

  text-align: right;

  outline: none;
}


.kp-custom-discount b {
  color: #73869c;

  font-size: 10px;
}


.kp-saving {
  margin-top: 10px;

  padding-top: 10px;

  border-top:
    1px solid #dcebe2;

  color: #688174;

  font-size: 8.5px;
}


.kp-saving strong {
  margin-left: 4px;

  color: #2f654d;

  font-size: 10px;
}


@media (max-width: 650px) {

  .kp-choice {
    flex: 1 1 62px;
  }

}

/* COMPASSSALES_KP_TERMS_END */

/* COMPASSSALES_KP_AUTO_TEMPLATE_START */

.kp-auto-template {
  display: grid;
  gap: 3px;

  margin: 2px 0 15px;
  padding: 11px 12px;

  border: 1px solid #dbe6f0;
  border-radius: 12px;

  background: #f7fafd;
}

.kp-auto-template > span {
  color: #8b9aae;

  font-size: 8px;
  font-weight: 850;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.kp-auto-template > strong {
  color: #35526f;

  font-size: 11px;
  font-weight: 900;
}

.kp-auto-template > small {
  color: #8495a8;

  font-size: 8px;
}

/* COMPASSSALES_KP_AUTO_TEMPLATE_END */

/* COMPASSSALES_KP_ONPREM_UI_START */

.kp-edition-row .kp-edition {
  min-width: 116px;
}

.kp-auto-template {
  display: grid;
  gap: 3px;

  margin: 2px 0 15px;
  padding: 11px 12px;

  border: 1px solid #dbe6f0;
  border-radius: 12px;

  background: #f7fafd;
}

.kp-auto-template > span {
  color: #8b9aae;

  font-size: 8px;
  font-weight: 850;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.kp-auto-template > strong {
  color: #35526f;

  font-size: 11px;
  font-weight: 900;
}

.kp-auto-template > small {
  color: #8495a8;

  font-size: 8px;
}

.kp-auto-template.unavailable {
  border-color: #f0d6d6;
  background: #fff8f8;
}

.kp-auto-template.unavailable > strong {
  color: #a65a5a;
}

.kp-onprem-note,
.kp-installation-calc {
  display: grid;
  gap: 3px;

  margin: 0 0 15px;
  padding: 11px 12px;

  border: 1px solid #e2e7ed;
  border-radius: 12px;

  background: #f8fafc;
}

.kp-onprem-note[hidden],
.kp-installation-calc[hidden] {
  display: none !important;
}

.kp-onprem-note > span,
.kp-installation-calc > span {
  color: #8494a7;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: .04em;
}

.kp-onprem-note > strong,
.kp-installation-calc > strong {
  color: #425a73;

  font-size: 15px;
  font-weight: 900;
}

.kp-onprem-note > small,
.kp-installation-calc > small {
  color: #8796a8;

  font-size: 8px;
}

.kp-installation-calc {
  margin-top: 13px;
}

.kp-download:disabled {
  cursor: not-allowed;

  opacity: .48;

  transform: none !important;
}

/* COMPASSSALES_KP_ONPREM_UI_END */



/* COMPASSSALES_PAYING_CLIENTS_UI_START */

/* Специально в той же спокойной палитре, что и остальные карточки */
.stas-paying-card {
  grid-column: 1 / -1;
}

.stas-paying-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stas-paying-segment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label arrow"
    "value arrow"
    "action arrow";
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  background: #f8fafc;
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.stas-paying-segment::after {
  grid-area: arrow;
  content: "›";
  color: #7d8da1;
  font-size: 24px;
  line-height: 1;
  transition: transform .16s ease, color .16s ease;
}

.stas-paying-segment:hover {
  border-color: #c8d9e8;
  background: #f5f8fb;
  box-shadow: 0 4px 14px rgba(48, 75, 103, .06);
  transform: translateY(-1px);
}

.stas-paying-segment:hover::after {
  color: #35526f;
  transform: translateX(2px);
}

.stas-paying-segment:focus-visible {
  outline: 2px solid rgba(35, 104, 168, .22);
  outline-offset: 2px;
}

.stas-paying-segment-label {
  grid-area: label;
  overflow: hidden;
  color: #8495a8;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stas-paying-segment strong {
  grid-area: value;
  color: #263d57;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
}

.stas-paying-segment-action {
  grid-area: action;
  margin-top: 3px;
  color: #8a99aa;
  font-size: 9px;
  font-weight: 700;
}

/* Диалог списка */
.paying-clients-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe6f0;
  border-radius: 18px;
  background: #fff;
  color: #263d57;
  box-shadow: 0 24px 70px rgba(33, 52, 75, .18);
}

.paying-clients-dialog::backdrop {
  background: rgba(29, 45, 64, .28);
  backdrop-filter: blur(2px);
}

.paying-clients-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 760px);
}

.paying-clients-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid #edf1f5;
}

.paying-clients-dialog-head > div > span {
  display: block;
  margin-bottom: 4px;
  color: #8b9aae;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
}

.paying-clients-dialog-head h3 {
  margin: 0;
  color: #263d57;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}

.paying-clients-dialog-head p {
  margin: 5px 0 0;
  color: #8a99aa;
  font-size: 10px;
  font-weight: 650;
}

.paying-clients-dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #728397;
  font: inherit;
  font-size: 21px;
  line-height: 1;
}

.paying-clients-dialog-tools {
  padding: 13px 22px;
}

.paying-clients-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #dbe6f0;
  border-radius: 11px;
  background: #f8fafc;
}

.paying-clients-search > span {
  color: #8a99aa;
  font-size: 18px;
}

.paying-clients-search input {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #314b66;
  font: inherit;
  font-size: 11px;
}

.paying-clients-list {
  overflow: auto;
  padding: 0 22px 18px;
}

.paying-clients-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf1f5;
}

.paying-clients-row-number {
  color: #a0adba;
  font-size: 8px;
  font-weight: 800;
}

.paying-clients-row-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.paying-clients-row-body strong {
  overflow: hidden;
  color: #314b66;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paying-clients-row-body span {
  overflow: hidden;
  color: #8a99aa;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paying-clients-empty {
  margin: 4px 22px 22px;
  padding: 22px;
  text-align: center;
  border: 1px dashed #dbe6f0;
  border-radius: 12px;
  background: #f8fafc;
}

.paying-clients-empty strong {
  display: block;
  color: #536c85;
  font-size: 11px;
  font-weight: 850;
}

.paying-clients-empty span {
  display: block;
  max-width: 430px;
  margin: 5px auto 0;
  color: #8b99a8;
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .stas-paying-segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .stas-paying-segments {
    grid-template-columns: 1fr;
  }

  .paying-clients-dialog {
    width: calc(100vw - 20px);
  }
}

/* COMPASSSALES_PAYING_CLIENTS_UI_END */

/* COMPASSSALES_COPY_FACT_PLAN_ROW_UI_START */

.cs-fact-plan-copy-zone {
  position: relative;
  cursor: copy;
  border-radius: 7px;

  transition:
    background .12s ease,
    box-shadow .12s ease;
}

.cs-fact-plan-copy-zone:hover {
  background:
    rgba(35, 104, 168, .06);

  box-shadow:
    0 0 0 4px
    rgba(35, 104, 168, .06);
}

.cs-fact-plan-copy-zone:focus-visible {
  outline:
    2px solid rgba(35, 104, 168, .22);

  outline-offset: 3px;
}

.cs-fact-plan-copy-zone::after {
  content: "копировать";

  position: absolute;
  top: -22px;
  right: 0;

  padding: 4px 7px;

  border:
    1px solid #dbe6f0;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, .96);

  color: #7f8fa3;

  font-size: 9px;
  font-weight: 700;
  line-height: 1;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity .12s ease;
}

.cs-fact-plan-copy-zone:hover::after,
.cs-fact-plan-copy-zone:focus-visible::after {
  opacity: 1;
}

.cs-fact-plan-copy-toast {
  position: absolute;
  z-index: 99999;

  padding: 6px 9px;

  border-radius: 8px;

  background: #263d57;
  color: #fff;

  font-size: 10px;
  font-weight: 750;
  line-height: 1;

  opacity: 0;

  pointer-events: none;

  transform:
    translate(-50%, -100%)
    translateY(3px);

  transition:
    opacity .12s ease,
    transform .12s ease;
}

.cs-fact-plan-copy-toast.show {
  opacity: 1;

  transform:
    translate(-50%, -100%);
}

/* COMPASSSALES_COPY_FACT_PLAN_ROW_UI_END */

/* COMPASSSALES_CHURN_LABEL_FONT_START */

/* Только две карточки «Отвалы» */
#stasSimpleOpsRow
> .stas-business-card:nth-child(-n+2)
.stas-business-lines span {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

/* Чуть увеличиваем и цифры рядом */
#stasSimpleOpsRow
> .stas-business-card:nth-child(-n+2)
.stas-business-lines b {
  font-size: 15px !important;
  font-weight: 900 !important;
}

/* COMPASSSALES_CHURN_LABEL_FONT_END */

/* COMPASSSALES_OPS_TYPOGRAPHY_START */

/*
 * Все 3 операционные карточки:
 * одинаковая высота и одинаковый ритм.
 */
.stas-simple-ops-row {
  align-items: stretch !important;
}

.stas-simple-ops-row
> .stas-business-card {
  display: flex !important;
  flex-direction: column !important;

  min-height: 132px !important;
  height: auto !important;
}


/*
 * Нижняя строка всегда стоит
 * на одном уровне во всех карточках.
 */
.stas-simple-ops-row
.stas-business-lines {
  margin-top: auto !important;

  padding-top: 12px !important;

  border-top:
    1px solid #e5edf4 !important;
}


/*
 * Подписи:
 * SaaS / On-premise /
 * Всего звонков / Доля холодных / Демо
 */
.stas-simple-ops-row
.stas-business-lines span {
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;

  color: #7f8ea2 !important;
}


/*
 * Цифры в нижней строке
 */
.stas-simple-ops-row
.stas-business-lines b {
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;

  color: #304259 !important;
}


/*
 * Не даём большим подписям
 * ломать высоту карточки.
 */
.stas-simple-ops-row
.stas-business-lines > div {
  min-width: 0 !important;
  align-items: center !important;
}


/* COMPASSSALES_OPS_TYPOGRAPHY_END */


/* COMPASSSALES_MANAGER_COMPACT_UI_START */


/* ===== ДЕНЬГИ ===== */

.cs-manager-money-compact {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.cs-manager-money-compact article,
.cs-manager-money-compact .card,
.cs-manager-money-compact > div {
  min-height: 0 !important;
}

.cs-manager-money-compact .card,
.cs-manager-money-compact article {
  padding: 14px 16px !important;
}

.cs-manager-money-compact h2,
.cs-manager-money-compact h3 {
  margin-bottom: 8px !important;
}

.cs-manager-money-compact strong {
  line-height: 1.05 !important;
}


/* ===== ЗВОНКИ ===== */

.cs-manager-calls-compact {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.cs-manager-calls-compact .card,
.cs-manager-calls-compact article {
  min-height: 0 !important;
  padding: 12px 14px !important;
}

.cs-manager-calls-compact h2,
.cs-manager-calls-compact h3,
.cs-manager-calls-compact p {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}


/* ===== КНОПКА ВСЕ СЧЕТА ===== */

.cs-all-invoices-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;

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

  padding: 0 15px;

  border: 1px solid #dbe5ef;
  border-radius: 12px;

  background: #f7faff;
  color: #263d57;

  font: inherit;
  font-weight: 750;

  cursor: pointer;
}

.cs-all-invoices-btn:hover {
  background: #f0f6fc;
}

.cs-all-invoices-btn b {
  font-size: 18px;
}


/* ===== MODAL ===== */

.cs-manager-invoices-modal[hidden] {
  display: none !important;
}

.cs-manager-invoices-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.cs-manager-invoices-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(25, 39, 55, .42);

  backdrop-filter:
    blur(3px);
}

.cs-manager-invoices-dialog {
  position: relative;

  width:
    min(720px, 100%);

  max-height:
    min(720px, 86vh);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-radius: 18px;

  background: #fff;

  box-shadow:
    0 24px 70px
    rgba(30, 48, 68, .22);
}

.cs-manager-invoices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 22px 16px;

  border-bottom:
    1px solid #edf1f5;
}

.cs-manager-invoices-head small {
  display: block;

  margin-bottom: 4px;

  color: #8b9aae;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .12em;
}

.cs-manager-invoices-head h2 {
  margin: 0;

  color: #263d57;

  font-size: 22px;
}

.cs-manager-invoices-close {
  width: 36px;
  height: 36px;

  border: 0;
  border-radius: 10px;

  background: #f3f6f9;

  color: #6f8195;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}

.cs-manager-invoices-list {
  padding: 10px 14px 16px;

  overflow-y: auto;
}

.cs-manager-invoice-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    130px;

  gap: 14px;

  align-items: center;

  padding: 13px 10px;

  border-bottom:
    1px solid #edf1f5;
}

.cs-manager-invoice-main {
  min-width: 0;
}

.cs-manager-invoice-main strong {
  display: block;

  overflow: hidden;

  color: #263d57;

  font-size: 14px;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-manager-invoice-main span {
  display: block;

  margin-top: 3px;

  color: #8a99aa;

  font-size: 12px;
}

.cs-manager-invoice-money {
  color: #263d57;

  font-size: 14px;
  font-weight: 800;

  white-space: nowrap;
}

.cs-manager-invoice-status {
  padding: 6px 8px;

  border-radius: 999px;

  background: #f2f5f8;

  color: #728196;

  font-size: 11px;
  font-weight: 750;

  text-align: center;
}

.cs-manager-invoice-status.is-paid {
  background: #edf8f1;
  color: #378354;
}

.cs-manager-invoice-status.is-pending {
  background: #fff6e8;
  color: #a36a18;
}

.cs-manager-invoice-status.is-cancelled {
  background: #f5f5f6;
  color: #9298a0;
}

.cs-manager-invoices-empty {
  padding: 42px 20px;

  color: #8a99aa;

  text-align: center;
}

.cs-modal-open {
  overflow: hidden;
}


@media (max-width: 700px) {

  .cs-manager-invoice-row {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
  }

  .cs-manager-invoice-status {
    grid-column:
      1 / -1;

    justify-self: start;
  }

}


/* COMPASSSALES_MANAGER_COMPACT_UI_END */


/* COMPASSSALES_MANAGER_KPI_SAFE_UI_START */


/*
 * Родительские сетки НЕ трогаем.
 * Только уменьшаем сами KPI-карточки.
 */

.cs-manager-kpi-safe {
  min-height: 82px !important;
  height: auto !important;

  padding:
    11px 14px !important;

  border-radius:
    13px !important;
}


/*
 * Название карточки.
 */
.cs-manager-kpi-safe
:is(
  h2,
  h3,
  h4,
  p,
  span
) {
  line-height:
    1.15 !important;
}


/*
 * Уменьшаем вертикальные интервалы.
 */
.cs-manager-kpi-safe > * {
  margin-top:
    0 !important;
}

.cs-manager-kpi-safe > * + * {
  margin-top:
    4px !important;
}


/*
 * Главная цифра.
 */
.cs-manager-kpi-safe
:is(
  strong,
  b,
  .value,
  .number,
  [class*="value"],
  [class*="number"]
) {
  line-height:
    1.05 !important;
}


/*
 * Подписи типа:
 * всего / 22.1% / от ЛПР.
 */
.cs-manager-kpi-safe small {
  margin-top:
    4px !important;

  line-height:
    1.15 !important;
}


/*
 * Жёстко запрещаем старому классу
 * менять layout, если он вдруг остался
 * в закэшированном DOM.
 */
.cs-manager-kpi-grid {
  display:
    revert !important;

  grid-template-columns:
    revert !important;

  gap:
    revert !important;
}


/* COMPASSSALES_MANAGER_KPI_SAFE_UI_END */

