/* =========================================================
   СРМ-ТО — UI (Front)
   Modern CRM style, responsive, удобные таблицы, тосты, drawer
   ========================================================= */

:root{
  --er-bg: #0b1020;
  --er-surface: rgba(255,255,255,.92);
  --er-surface-2: rgba(255,255,255,.78);
  --er-stroke: rgba(15,23,42,.12);
  --er-stroke-2: rgba(15,23,42,.08);

  --er-text: #0f172a;
  --er-text-2: rgba(15,23,42,.72);

  --er-brand: #2563eb;
  --er-brand-2: rgba(37,99,235,.14);

  --er-ok: #16a34a;
  --er-warn: #f59e0b;
  --er-bad: #dc2626;

  --er-radius: 18px;
  --er-radius-sm: 14px;
  --er-shadow: 0 24px 60px rgba(2,6,23,.20);
  --er-shadow-sm: 0 10px 28px rgba(2,6,23,.12);

  --er-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  --er-control-h: 44px;
  --er-btn-h: 44px;

  --er-pad: 14px;
}

/* Salary breakdown (cabinet) */
.er-salary-details{margin-top:6px;}
.er-salary-details summary{cursor:pointer; user-select:none; display:flex; align-items:center; gap:6px; width:fit-content;}
.er-salary-details summary .er-btn-mini{padding:2px 8px; font-size:11px; line-height:1.2; text-decoration:none;}
.er-salary-details-body{margin-top:8px;}
.er-mini-table{width:100%; border-collapse:collapse; font-size:12px;}
.er-mini-table td{padding:4px 6px; border-bottom:1px solid rgba(0,0,0,.08);}
.er-mini-table tr:last-child td{border-bottom:0;}
.er-salary-subtitle{margin-top:10px; font-weight:700; font-size:12px;}
.er-table--compact th,.er-table--compact td{padding-top:6px; padding-bottom:6px; font-size:12px;}

/* Light theme (toggle like ChatGPT) */
.er-app[data-er-theme="light"]{
  --er-bg: #f4f6fb;
  --er-surface: rgba(255,255,255,.96);
  --er-surface-2: rgba(255,255,255,.86);
  --er-stroke: rgba(15,23,42,.10);
  --er-stroke-2: rgba(15,23,42,.06);
  --er-text: #0f172a;
  --er-text-2: rgba(15,23,42,.70);
}

/* =========================================================
   App Shell (ChatGPT-like): sidebar + main
   ========================================================= */
.er-app{
  font-family: var(--er-font);
  color: var(--er-text);
  display:flex;
  min-height: min(100vh, 100svh);
  background: linear-gradient(180deg, rgba(11,16,32,.98), rgba(11,16,32,.92));
  /* Make кабинеты full-width like a real CRM (even inside theme containers) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  border-radius: 0;
  overflow: hidden;
  box-shadow: none;

  /* IMPORTANT: do NOT scale the whole app shell.
     Sidebar must stay pinned to the left edge at 100% size.
     Scaling is applied only to the main content wrapper below.
  */
}

/* Production workspace geometry: browser/application shell always renders at 1:1.
   Density is controlled by tokens, paddings and row heights — never global zoom/scale. */
.er-main-inner{
  width:100%;
  max-width:none;
  margin:0;
  transform:none;
}

.er-app[data-er-theme="light"]{
  background: linear-gradient(180deg, rgba(244,246,251,1), rgba(244,246,251,.92));
}

/* Sidebar */
.er-sidebar{
  width: 260px;
  flex: 0 0 260px;
  background: rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display:flex;
  flex-direction: column;
  padding: 6px;
  gap: 6px;
}

/* Sidebar portal (HOTFIX 2.4.4)
   If a theme blocks clicks by overlays/stacking contexts, we move sidebar to <body>.
   Placeholder keeps layout width, portal makes sidebar fixed and always clickable.
*/
.er-sidebar-placeholder{
  width: var(--er-sidebar-width, 260px);
  flex: 0 0 var(--er-sidebar-width, 260px);
}

.er-sidebar-portal{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--er-sidebar-width, 260px);
  z-index: 2147483647;
  pointer-events: none; /* allow only sidebar itself */
}
.er-sidebar-portal .er-sidebar{
  height: 100vh;
  overflow: auto;
  pointer-events: auto;
}

/* In portal mode keep main content aligned with placeholder */
body.er-sidebar-ported .er-app{ isolation: isolate; }

.er-app[data-er-theme="light"] .er-sidebar{
  background: rgba(255,255,255,.86);
  border-right: 1px solid rgba(15,23,42,.10);
}
.er-app[data-er-theme="light"] .er-branding-title{ color: rgba(15,23,42,.92); }
.er-app[data-er-theme="light"] .er-branding-sub{ color: rgba(15,23,42,.60); }
.er-app[data-er-theme="light"] .er-icon-btn{
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.86);
}
.er-app[data-er-theme="light"] .er-icon-btn:hover{ background: rgba(15,23,42,.06); }

.er-app[data-er-theme="light"] .er-nav-item{ color: rgba(15,23,42,.78); }
.er-app[data-er-theme="light"] .er-nav-item:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.08);
}
.er-app[data-er-theme="light"] .er-nav-item.is-active{
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.25);
  color: rgba(15,23,42,.92);
}
.er-app[data-er-theme="light"] .er-nav-sep{ background: rgba(15,23,42,.10); }
.er-app[data-er-theme="light"] .er-nav-logout{
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.16);
  color: rgba(15,23,42,.90);
}

.er-sidebar-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 8px;
}

.er-branding{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

/* Allow absolute-positioned dropdowns (e.g. agent autocomplete) inside fields without shifting layout */
.er-field{ position: relative; }

/* Visual cue: which field is being filled right now */
.er-field.is-active-focus{
  outline: 2px solid rgba(59,130,246,.95);
  outline-offset: 6px;
  border-radius: 14px;
}

.er-field.er-required > label:after{
  content:" *";
  color: rgba(239,68,68,1);
  font-weight: 800;
}
.er-field.er-required.er-empty input,
.er-field.er-required.er-empty select,
.er-field.er-required.er-empty textarea{
  border-color: rgba(239,68,68,.95) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.16) !important;
}
.er-field.er-required.er-filled input,
.er-field.er-required.er-filled select,
.er-field.er-required.er-filled textarea{
  border-color: rgba(34,197,94,.95) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.16) !important;
}

.er-logo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: .6px;
  color: #fff;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(59,130,246,.65));
  box-shadow: 0 10px 26px rgba(37,99,235,.25);
}

/* Editable fields highlight (blue) */
.er-field.er-work input,
.er-field.er-work select,
.er-field.er-work textarea,
.er-row.er-work input,
.er-row.er-work select,
.er-row.er-work textarea{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.10);
}

/* Required state must win over blue highlight */
.er-field.er-required.er-empty input,
.er-field.er-required.er-empty select,
.er-field.er-required.er-empty textarea,
.er-row.er-required.er-empty input,
.er-row.er-required.er-empty select,
.er-row.er-required.er-empty textarea{
  border-color: rgba(239,68,68,.95) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.16) !important;
}
.er-field.er-required.er-filled input,
.er-field.er-required.er-filled select,
.er-field.er-required.er-filled textarea,
.er-row.er-required.er-filled input,
.er-row.er-required.er-filled select,
.er-row.er-required.er-filled textarea{
  border-color: rgba(34,197,94,.95) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.16) !important;
}


/* When a custom image logo is used: keep it crisp and well-centered */
.er-logo.er-logo-img,
.er-auth-logo.er-auth-logo-img{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 26px rgba(15,23,42,.10);
  color: rgba(15,23,42,.90);
}

/* Logo image support */
.er-logo img,
.er-auth-logo img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.er-logo.er-logo-img img,
.er-auth-logo.er-auth-logo-img img{
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 12px;
  object-fit: contain;
}
.er-logo-preview{
  display:flex;
  align-items:center;
  gap:10px;
}
.er-logo-preview img{
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  padding: 6px;
}

/* Cards grid (used in "Филиалы" for a cleaner, adaptive layout) */
.er-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 1100px){
  .er-cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .er-cards-grid{ grid-template-columns: 1fr; }
}

.er-mini-card{
  padding: 14px;
}
.er-branch-mini{
  background: var(--er-branch-card, var(--er-card-bg));
}
.er-branch-mini-head{ margin-bottom: 8px; }
.er-branch-mini-meta{ margin-bottom: 12px; }
.er-branch-mini-actions{ display:flex; justify-content:flex-end; }

.er-branding-title{
  font-weight: 900;
  color: rgba(255,255,255,.92);
  line-height: 1.1;
  font-size: 15px;
  letter-spacing: .4px;
  white-space: nowrap;
}
.er-branding-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
  line-height: 1.15;
  white-space: nowrap;
}

.er-app[data-er-theme="light"] .er-branding-title{ color: rgba(15,23,42,.92); }
.er-app[data-er-theme="light"] .er-branding-sub{ color: rgba(15,23,42,.60); }

.er-icon-btn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
}

.er-app[data-er-theme="light"] .er-icon-btn{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.86);
}

.er-icon-btn:hover{ background: rgba(255,255,255,.12); }

.er-sidebar-close{ display:none; }

.er-nav{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.er-nav-sep{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 8px 0;
}

.er-nav-group{
  padding: 8px 10px 6px;
  font-size: 12px;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.er-nav-item{
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.78);
  border-radius: 10px;
  padding: 6px 8px;
  display:flex;
  align-items:center;
  gap: 8px;
  cursor:pointer;
  text-align:left;
  font-weight: 750;
  letter-spacing: .1px;
  font-size: 12px;
}

.er-app[data-er-theme="light"] .er-nav-item{ color: rgba(15,23,42,.72); }
.er-app[data-er-theme="light"] .er-nav-item:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.08);
}
.er-app[data-er-theme="light"] .er-nav-item.is-active{
  color: rgba(15,23,42,.92);
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.22);
}
.er-app[data-er-theme="light"] .er-nav-sep{ background: rgba(15,23,42,.10); }

.er-nav-item:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

.er-nav-item.is-active{
  background: rgba(37,99,235,.22);
  border-color: rgba(37,99,235,.35);
  color: rgba(255,255,255,.96);
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

.er-nav-ico{
  width: 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .95;
}
.er-nav-txt{
  min-width:0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.er-nav-badge{
  margin-left:auto;
  min-width:18px;
  height:18px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:18px;
  text-align:center;
  padding:0 6px;
}
.er-unread-duplicate-alert{
  border-color: rgba(220,38,38,.45) !important;
}
.er-message-alert-blink{
  animation: er-message-alert-blink 1.4s ease-in-out infinite;
}
@keyframes er-message-alert-blink{
  0%,100%{ box-shadow: 0 0 0 0 rgba(220,38,38,.00); }
  50%{ box-shadow: 0 0 0 3px rgba(220,38,38,.20); }
}

.er-sidebar-bottom{
  margin-top: auto;
  padding-top: 8px;
}

.er-nav-logout{
  text-decoration:none;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.18);
  color: rgba(255,255,255,.92);
}
.er-nav-logout:hover{
  background: rgba(220,38,38,.16);
}

/* Main */
.er-main{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction: column;
}

.er-topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.er-topbar-left{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.er-topbar-center{ flex: 1 1 auto; display:flex; justify-content:center; min-width: 0; }

.er-top-search{
  width: min(640px, 100%);
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 0 12px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.er-app[data-er-theme="light"] .er-top-search{
  border-color: rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
}

.er-top-search-ico{ color: rgba(255,255,255,.75); font-weight: 900; }
.er-app[data-er-theme="light"] .er-top-search-ico{ color: rgba(15,23,42,.55); }

.er-top-search-input{
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
}
.er-top-search-input::placeholder{ color: rgba(255,255,255,.55); }
.er-app[data-er-theme="light"] .er-top-search-input{ color: rgba(15,23,42,.88); }
.er-app[data-er-theme="light"] .er-top-search-input::placeholder{ color: rgba(15,23,42,.45); }

.er-top-search-clear{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  cursor:pointer;
}
.er-top-search-clear:hover{ background: rgba(255,255,255,.14); }
.er-app[data-er-theme="light"] .er-top-search-clear{
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.75);
}

.er-topbar-actions .er-quick{ display:inline-flex; }

@media (max-width: 980px){
  .er-topbar-center{ display:none; }
}

@media (max-width: 980px){
  .er-branch-cards{ grid-template-columns: 1fr; }
}

.er-app[data-er-theme="light"] .er-topbar{
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
}

.er-quick{ white-space: nowrap; }

.er-sidebar-open{ display:none; }

.er-topbar-title{ min-width:0; }
.er-topbar-h{
  font-weight: 950;
  color: rgba(255,255,255,.94);
  line-height: 1.1;
}
.er-topbar-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.62);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-login-identity{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  margin-top:4px;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  line-height:1.35;
  color:rgba(255,255,255,.90);
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.er-app[data-er-theme="light"] .er-login-identity{
  color:rgba(15,23,42,.82);
  background:rgba(15,23,42,.05);
  border-color:rgba(15,23,42,.10);
}

.er-app[data-er-theme="light"] .er-topbar-h{ color: rgba(15,23,42,.92); }
.er-app[data-er-theme="light"] .er-topbar-sub{ color: rgba(15,23,42,.60); }

.er-topbar-actions{ display:flex; gap: 10px; align-items:center; }

.er-top-news{ display:flex; align-items:center; }
.er-top-news-card{
  min-width: 300px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(208,178,86,.95);
  background: linear-gradient(180deg, rgba(255,248,220,.98), rgba(252,241,197,.96));
  box-shadow: 0 8px 24px rgba(169,128,24,.12);
  color: #5a4208;
}
.er-top-news-title{ font-size: 13px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-top-news-message{ margin-top: 6px; font-size: 12px; font-weight: 700; line-height: 1.2; display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }
.er-top-news-sub{ margin-top: 6px; font-size: 10px; color: rgba(90,66,8,.78); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-top-news-card.is-empty,.er-top-news-card.is-loading{ opacity:.92; }
.er-top-news-card{ appearance:none; -webkit-appearance:none; width:100%; text-align:left; cursor:pointer; }
.er-top-news-open:hover{ transform: translateY(-1px); box-shadow: 0 16px 30px rgba(15,23,42,.14); }
.er-top-news-open:active{ transform: translateY(0); }
.er-top-news-open:focus-visible{ outline:2px solid rgba(37,99,235,.35); outline-offset:2px; }
.er-news-viewer{ border:1px solid var(--er-line,#E5E7EB); border-radius:18px; padding:18px 18px 16px; background:#fff; color:#1F2937; }
.er-news-viewer-title{ font-size:22px; font-weight:900; line-height:1.2; margin-bottom:8px; }
.er-news-viewer-meta{ font-size:13px; opacity:.75; margin-bottom:14px; }
.er-news-viewer-message{ font-size:15px; line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.er-top-leader{ display:flex; align-items:center; }
.er-top-leader-card{
  min-width: 300px;
  max-width: 340px;
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid rgba(214,178,94,.55);
  background: linear-gradient(135deg, rgba(255,250,235,.98) 0%, rgba(248,240,214,.98) 100%);
  box-shadow: 0 6px 16px rgba(214,178,94,.14);
  color: #5a4208;
}
.er-top-leader-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.er-top-leader-title{ font-size: 11px; font-weight: 900; line-height: 1.05; white-space: nowrap; }
.er-top-leader-sub{ font-size: 10px; color: rgba(90,66,8,.75); line-height: 1.05; white-space: nowrap; }
.er-top-leader-body{ margin-top: 4px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.er-top-leader-name{ font-size: 13px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex:1 1 auto; }
.er-top-leader-metric{ font-size: 11px; font-weight: 800; line-height: 1.1; white-space: nowrap; flex:0 0 auto; }
.er-top-leader-card.is-empty,.er-top-leader-card.is-loading{ opacity:.92; }
.er-top-leader-card.is-empty .er-top-leader-body,.er-top-leader-card.is-loading .er-top-leader-body{ display:none; }
.er-app[data-er-theme="light"] .er-top-leader-card{
  border-color: rgba(214,178,94,.62);
  background: linear-gradient(135deg, #fffdf5 0%, #f7eed1 100%);
  color: #4f3a06;
}
@media (max-width: 1180px){
  .er-top-news-card{ min-width: 250px; max-width: 280px; padding: 8px 10px; }
  .er-top-news-title{ font-size: 12px; }
  .er-top-news-message{ font-size: 11px; }
  .er-top-leader-card{ min-width: 260px; max-width: 290px; padding: 6px 10px; }
  .er-top-leader-name{ font-size: 12px; }
  .er-top-leader-metric{ font-size: 10px; }
}
@media (max-width: 980px){
  .er-top-news{ display:none; }
  .er-top-leader{ display:none; }
}

.er-main-inner{
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Views */
.er-view{ display:none; }
.er-view.is-active{ display:block; }

.er-mobile-backdrop{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 99990;
}

/* Responsive: mobile sidebar overlay */
@media (max-width: 980px){
  .er-app{
    border-radius: 0;
    min-height: 100vh;
  }
  .er-sidebar{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    transform: translateX(-105%);
    transition: transform .18s ease;
    z-index: 99999;
  }
  .er-sidebar-close{ display:inline-flex; }
  .er-sidebar-open{ display:inline-flex; min-height:48px; padding:10px 12px; font-size:16px; border-radius:16px; }
  .er-app.is-sidebar-open .er-sidebar{ transform: translateX(0); }
  .er-app.is-sidebar-open + .er-mobile-backdrop,
  .er-app.is-sidebar-open .er-mobile-backdrop{ display:block; }
  .er-mobile-backdrop{ display:block; opacity:0; pointer-events:none; }
  .er-app.is-sidebar-open .er-mobile-backdrop{ opacity: 1; pointer-events:auto; }
}

@media (max-width: 980px){
  .er-topbar-center{ justify-content:flex-start; }
  .er-top-search{ width: 100%; }
  .er-topbar-actions .er-quick{ display:none; }
}


/* Background wrapper */
.er-wrap{
  font-family: var(--er-font);
  color: var(--er-text);
  max-width: 1180px;
  margin: 18px auto 60px;
  padding: 0 14px;
}

.er-wrap::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(147,51,234,.16), transparent 55%),
    radial-gradient(900px 600px at 50% 90%, rgba(16,185,129,.12), transparent 60%),
    linear-gradient(180deg, #070a14 0%, #0b1020 100%);
}

/* Public shortcode should not paint the heavy fixed background.
   It is embedded into normal theme pages and must look like a light widget/card. */
.er-wrap[data-er-role="public"]{
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.er-wrap[data-er-role="public"]::before{
  display: none;
  content: none;
}

.er-wrap[data-er-role="public"] .er-public-card{
  margin: 24px auto;
  padding: 0 14px;
  max-width: 980px;
}

.er-wrap[data-er-role="public"] .er-public-shell{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.er-wrap[data-er-role="public"] .er-public-head{
  padding: 16px 18px 0 18px;
}

.er-wrap[data-er-role="public"] .er-public-shell .er-form{
  padding: 14px 18px 18px 18px;
}

.er-wrap[data-er-role="public"] .er-public-datetime{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 820px){
  .er-wrap[data-er-role="public"] .er-public-datetime{ grid-template-columns: 1fr; }
}

/* Agent cabinet: symmetric client inputs */
.er-agent-client-grid{
  align-items: end;
}
.er-agent-client-grid .er-field.er-field-wide{
  grid-column: 1 / -1;
}

.er-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.er-header h2{
  margin:0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .2px;
  color: rgba(255,255,255,.96);
}

.er-sub{
  margin: 6px 0 0;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

.er-header-actions{ display:flex; gap:10px; }

/* Cards */
.er-card{
  background: var(--er-surface);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  box-shadow: var(--er-shadow-sm);
  padding: 14px;
  margin: 12px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.er-block{
  position: relative;
  overflow: hidden;
}
.er-block::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background: radial-gradient(600px 200px at 20% 0%, rgba(37,99,235,.18), transparent 55%);
  opacity: .65;
}

.er-block > *{ position: relative; }

.er-block-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.er-block-head h3{
  margin:0;
  font-size: 16px;
  line-height: 1.2;
}
.er-hint{
  margin:0;
  color: var(--er-text-2);
  font-size: 13px;
}

/* 2-col layout */
.er-grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .er-grid-2{ grid-template-columns: 1fr; }
}

/* Forms */
.er-form .er-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

/* 4-column grid for "Новая запись" (desktop) */
.er-form .er-grid.er-grid-4{
  grid-template-columns: repeat(4, minmax(0,1fr));
}

/* helper cells that should disappear on smaller widths */
.er-hide-md{ display:block; }
@media (max-width: 980px){
  .er-form .er-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .er-form .er-grid.er-grid-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .er-hide-md{ display:none; }
}
@media (max-width: 700px){
  .er-form .er-grid{ grid-template-columns: 1fr; }
  .er-form .er-grid.er-grid-4{ grid-template-columns: 1fr; }
}

.er-field label{
  display:block;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(15,23,42,.86);
}

/* Подсветка важных полей (НЕ обязательные) */
.er-field-attn label::after{
  content: "•";
  display: inline-block;
  margin-left: 6px;
  font-weight: 900;
  opacity: .65;
}
.er-field-attn input,
.er-field-attn select,
.er-field-attn textarea{
  background: rgba(250, 204, 21, .08);
  border-color: rgba(250, 204, 21, .35);
}
.er-field-attn input:focus,
.er-field-attn select:focus,
.er-field-attn textarea:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .18);
}

/* Критичные поля (красные → зелёные после заполнения) */
.er-critical-card{
  border: 1px solid rgba(244, 63, 94, .18);
}
.er-field.er-critical input,
.er-field.er-critical select,
.er-field.er-critical textarea{
  background: rgba(244, 63, 94, .06);
  border-color: rgba(244, 63, 94, .28);
}
.er-field.er-critical.is-filled input,
.er-field.er-critical.is-filled select,
.er-field.er-critical.is-filled textarea{
  background: rgba(34, 197, 94, .06);
  border-color: rgba(34, 197, 94, .30);
}
.er-field.er-critical input:focus,
.er-field.er-critical select:focus,
.er-field.er-critical textarea:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, .16);
}
.er-field.er-critical.is-filled input:focus,
.er-field.er-critical.is-filled select:focus,
.er-field.er-critical.is-filled textarea:focus{
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.er-field input,
.er-field select,
.er-field textarea{
  width:100%;
  min-height: var(--er-control-h);
  padding: 10px 12px;
  border-radius: var(--er-radius-sm);
  border: 1px solid var(--er-stroke);
  background: rgba(255,255,255,.96);
  color: var(--er-text);
  outline:none;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}

/* Компактный комментарий */
textarea.er-note-small{
  min-height: 92px;
  height: 92px;
  resize: vertical;
}

/* Inline input + copy button (Пробег/Шины/Телефон агента) */
.er-input-inline{
  display:flex;
  align-items:center;
  gap:10px;
}
.er-input-inline input{
  flex:1 1 auto;
  min-width:0;
}
.er-input-inline .er-btn{ white-space:nowrap; }

/* Branch settings (manage branches) */
.er-branch-form-top{
  align-items: end;
}
.er-branch-form-top .er-color-input{
  height: var(--er-control-h);
  padding: 0;
}

.er-field-toggle{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.er-switch{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  user-select:none;
  position: relative;
  width: 46px;
  height: 26px;
}
.er-switch input{
  position:absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 26px;
  opacity:0;
  cursor:pointer;
  margin: 0;
  z-index: 2;
}
.er-switch-ui{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--er-stroke);
  background: rgba(15,23,42,.10);
  position: relative;
  transition: all .15s ease;
}

/* Make the whole toggle row reliably clickable */
.er-field-toggle label{
  cursor: default;
}
.er-field-toggle .er-switch{
  cursor: pointer;
}

/* Drawer close buttons should look consistent even when markup uses er-btn */
.er-drawer .er-btn[data-er-action="drawer_close"],
.er-drawer .er-btn[data-er-action="actions_close"]{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.06);
}
.er-switch-ui::after{
  content:"";
  position:absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 6px 16px rgba(2,6,23,.18);
  transition: all .15s ease;
}
.er-switch input:checked + .er-switch-ui{
  background: rgba(37,99,235,.25);
  border-color: rgba(37,99,235,.35);
}
.er-switch input:checked + .er-switch-ui::after{
  transform: translateX(20px);
}

.er-branch-form-sections{
  margin-top: 12px;
}
.er-section{
  padding: 12px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
}
.er-section-head{
  margin-bottom: 10px;
}
.er-section-title{
  font-weight: 950;
  font-size: 13px;
  color: var(--er-text);
}
.er-section-sub{
  font-size: 12px;
  color: var(--er-text-2);
}

/* Chips */
.er-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.er-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--er-stroke);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 12px;
  color: var(--er-text);
  line-height: 1;
}
.er-chip input{
  width: 14px;
  height: 14px;
}
.er-chip:hover{
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

.er-field textarea{ min-height: 96px; resize: vertical; }
.er-field-wide{ grid-column: 1 / -1; }

.er-field input:focus,
.er-field select:focus,
.er-field textarea:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.16);
}

/* Buttons */
.er-btn{
  appearance:none;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(37,99,235,1) 0%, rgba(29,78,216,1) 100%);
  color:#fff;
  border-radius: 16px;
  min-height: var(--er-btn-h);
  padding: 10px 14px;
  cursor:pointer;
  font-weight: 900;
  letter-spacing: .2px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
  transition: transform .08s ease, filter .18s ease, box-shadow .18s ease;
}

/* Compact button (safe against theme overrides) */
.er-btn.er-btn-sm{
  padding: 6px 10px !important;
  min-height: 32px !important;
  line-height: 1.1 !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  width: auto !important;
}

/* News block */
.er-news-card{
  margin: 0 0 14px 0;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff2bf;
}
.er-news-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px; }
.er-news-head-left{ display:flex; flex-direction:column; gap:4px; }
.er-news-head-actions{ display:flex; align-items:center; gap:8px; }
.er-news-toggle{ padding:6px 10px !important; min-height:32px !important; font-size:12px !important; border-radius:10px !important; }
.er-news-title{ font-weight:800; font-size:16px; }
.er-news-sub{ font-size:12px; opacity:.75; }
.er-news-list{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.er-news-item{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.er-news-item-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.er-news-item-meta{ font-size:12px; opacity:.75; }
.er-news-item-title{ font-weight:800; font-size:14px; }
.er-news-item-msg{ font-size:14px; white-space:pre-wrap; }
.er-news-item-actions{ display:flex; gap:6px; }
.er-news-del{
  padding:4px 8px !important;
  min-height: 28px !important;
  font-size: 12px !important;
}

/* Small button variant (used for compact actions like "Создать сотрудника", logo picker, etc.) */
.er-btn.er-btn-sm{
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 12px;
  font-weight: 800;
}

/* Employees: "Создать сотрудника" must stay compact even if the theme overrides <button> styles */
.er-wrap [data-er-manage="employees"] .er-btn[data-er-manage-act="emp_new"]{
  display: inline-flex !important;
  width: auto !important;
  max-width: 220px !important;
  min-height: 32px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.18) !important;
}
.er-btn:hover{
  filter: brightness(1.02);
  box-shadow: 0 14px 34px rgba(37,99,235,.26);
}
.er-btn:active{ transform: translateY(1px); }
.er-btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18), 0 14px 34px rgba(37,99,235,.26);
}

.er-btn-secondary{
  background: linear-gradient(180deg, #334155 0%, #1f2937 100%);
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
}
.er-btn-ghost{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.10);
  color: rgba(15,23,42,.92);
  box-shadow: none;
}
.er-btn-danger{
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 24px rgba(220,38,38,.22);
}

.er-actions{ display:flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.er-hotkeys-hint{ display:inline-flex; align-items:center; font-size: 12px; opacity: .75; margin-left: 4px; }
@media (max-width: 700px){
  .er-btn{ width:100%; }
}

/* Toolbar / filters */
.er-sortbar-compact{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  padding: 12px;
  margin-bottom: 10px;
}
.er-filters-row{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items:flex-end;
}
.er-field-inline{ min-width: 210px; flex: 1 1 210px; }
.er-field-actions{ flex: 0 0 auto; min-width: 200px; }
@media (max-width: 700px){
  .er-field-inline, .er-field-actions{ min-width: 100%; }
}

/* Dashboard */
.er-dashboard{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 980px){
  .er-dashboard{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .er-dashboard{ grid-template-columns: 1fr; }
}

.er-metric{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(2,6,23,.08);
}
.er-metric-label{
  font-size: 12px;
  color: var(--er-text-2);
  margin-bottom: 6px;
}
.er-metric-value{
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}
.er-metric-small{ font-size: 13px; font-weight: 900; line-height: 1.35; }

/* Branch tag */
.er-branch-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 12px;
  font-weight: 900;
}
.er-branch-tag::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--er-branch-color, var(--er-brand));
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Tables */
.er-table-wrap{
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  background: rgba(255,255,255,.92);
}

.er-pager{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  padding:10px 12px;
  border: 1px dashed var(--er-stroke);
  border-radius: var(--er-radius);
  background: rgba(255,255,255,.75);
}
.er-pager-left{color: rgba(15,23,42,.65);font-size:13px;}
.er-pager-right{display:flex;gap:8px;align-items:center;}
.er-pager-page{
  min-width:38px;
  height:38px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.35);
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  font-weight:700;
  transition:all .15s ease;
}
.er-pager-page:hover{
  border-color:rgba(37,99,235,.45);
  color:#1d4ed8;
  box-shadow:0 4px 12px rgba(37,99,235,.10);
}
.er-pager-page.is-active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
  box-shadow:0 6px 16px rgba(37,99,235,.20);
}
.er-pager-page:disabled,
.er-pager .er-btn[disabled]{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}
.er-pager-dots{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  color:rgba(15,23,42,.5);
  font-weight:700;
}

.er-table{
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 1.25;
  /* Ширина столбцов зависит от контента */
  table-layout: auto;
}

.er-table th,
.er-table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--er-stroke-2);
  vertical-align: middle;
  /* Avoid per-letter breaks ("поехавший" текст). */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Records table: keep key short fields readable on one line */
.er-table-records th:nth-child(1), .er-table-records td:nth-child(1),
.er-table-records th:nth-child(2), .er-table-records td:nth-child(2),
.er-table-records th:nth-child(3), .er-table-records td:nth-child(3),
.er-table-records th:nth-child(6), .er-table-records td:nth-child(6),
.er-table-records th:nth-child(7), .er-table-records td:nth-child(7),
.er-table-records th:nth-child(8), .er-table-records td:nth-child(8),
.er-table-records th:nth-child(10), .er-table-records td:nth-child(10),
.er-table-records th:nth-child(11), .er-table-records td:nth-child(11),
.er-table-records th:nth-child(12), .er-table-records td:nth-child(12),
.er-table-records th:nth-child(13), .er-table-records td:nth-child(13){
  white-space: nowrap;
  overflow-wrap: normal;
}


.er-record-date{font-weight:700; line-height:1.25;}
.er-record-time{margin-top:4px; font-size:12px; line-height:1.2; color:rgba(15,23,42,.65); white-space:nowrap;}

.er-table thead th{
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.er-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(248,250,252,.95);
  font-size: 12px;
  font-weight: 950;
  color: rgba(15,23,42,.92);
  border-bottom: 1px solid rgba(15,23,42,.16);
}

.er-table tbody tr{
  background: rgba(255,255,255,.92);
}
.er-table tbody tr:nth-child(even){
  background: rgba(241,245,249,.62);
}
.er-table tbody tr:hover{
  background: rgba(37,99,235,.10);
}

.er-table tbody tr:hover td{
  background: transparent;
}

/* sticky columns with correct row background */
.er-table th:first-child,
.er-table td:first-child{
  position: sticky;
  left: 0;
  z-index: 3;
  background: inherit;
  box-shadow: 1px 0 0 rgba(15,23,42,.06);
}
.er-table thead th:first-child{ background: rgba(248,250,252,.95); }

.er-table th.er-col-actions,
.er-table td.er-col-actions{
  position: sticky;
  right: 0;
  z-index: 3;
  background: inherit;
  box-shadow: -1px 0 0 rgba(15,23,42,.06);
}
.er-table thead th.er-col-actions{ background: rgba(248,250,252,.95); }

/* Branch cash cards */
.er-branch-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.er-branch-card{ padding: 12px; }
.er-branch-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248,250,252,.75);
  border: 1px solid rgba(15,23,42,.06);
 }
.er-branch-card-title{ font-weight:950; font-size:14px; }
.er-branch-card-meta{ font-size:12px; opacity:.72; }
.er-muted{ opacity:.6; font-weight:700; }
@media (max-width: 980px){
  .er-branch-cards{ grid-template-columns: 1fr; }
}

.er-num{ text-align:right; font-variant-numeric: tabular-nums; }

/* Agent cabinet: highlight record status */
[data-er-view="agent_records"] .er-table tbody tr.er-status-confirmed{ background: rgba(34,197,94,.08); }
[data-er-view="agent_records"] .er-table tbody tr.er-status-rejected{ background: rgba(239,68,68,.08); }
[data-er-view="agent_records"] .er-table tbody tr.er-status-pending{ background: rgba(148,163,184,.10); }

/* Fee hint shown next to price */
.er-fee{ font-size:12px; color:#64748b; font-weight:500; }

/* Actions in table */
.er-actions-inline{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap: wrap;
}

.er-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  cursor:pointer;
  text-decoration:none;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.10);
  color: rgba(29,78,216,1);
}
.er-link:hover{ background: rgba(37,99,235,.14); }

.er-link-danger{
  border-color: rgba(220,38,38,.22);
  background: rgba(220,38,38,.10);
  color: rgba(220,38,38,1);
}
.er-link-danger:hover{ background: rgba(220,38,38,.14); }

/* Branches table */
.er-branches-table .er-media-thumb{display:inline-flex;align-items:center;justify-content:center;}
.er-branches-table .er-media-thumb img{width:38px;height:38px;object-fit:cover;border-radius:10px;border:1px solid rgba(15,23,42,.10);background:#fff;}
.er-branches-table td{vertical-align:middle;}

@media (max-width: 700px){
  .er-actions-inline{ flex-direction: column; align-items: stretch; }
  .er-actions-inline .er-link{ width: 100%; }
}

/* Wrap long values on mobile (VIN/notes) */
@media (max-width: 560px){
  .er-table td{
    white-space: normal;
    overflow-wrap:anywhere;
  }
}

/* Drawer */
.er-drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.62);
  z-index: 999999;
  display:flex;
  /* Drawer used as details/edit window: keep on top with a visible gap */
  align-items:flex-start;
  justify-content:center;
  /* Top gap under WP admin bar */
  padding: 56px 14px 14px;

  /* If content is taller than viewport, scroll the backdrop (NOT the window itself) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.er-drawer{
  /* Make details windows large enough so all blocks fit on screen */
  width: min(1280px, 96vw);
  max-height: calc(100vh - 70px);
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  box-shadow: var(--er-shadow);
  padding: 14px;

  /* Do NOT zoom here (zoom caused content to be cut off without scroll). */
  zoom: 1;
  display:flex;
  flex-direction:column;
  box-sizing: border-box;
}

/* Agent drawer: make content much more compact so it fits within the window */
[data-er-drawer="backdrop"].er-drawer-agent .er-drawer{
  width: min(1320px, 96vw);
}


[data-er-drawer="backdrop"].er-drawer-agent .er-card{ padding: 8px; margin: 6px 0; }
[data-er-drawer="backdrop"].er-drawer-agent .er-block-head h3{ font-size: 13px; }
[data-er-drawer="backdrop"].er-drawer-agent .er-row{ padding: 6px 10px; }
[data-er-drawer="backdrop"].er-drawer-agent input,
[data-er-drawer="backdrop"].er-drawer-agent select{
  height: 32px;
  font-size: 12px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Compact category price table inside agent form */
[data-er-drawer="backdrop"].er-drawer-agent table{
  font-size: 12px;
}
[data-er-drawer="backdrop"].er-drawer-agent table th,
[data-er-drawer="backdrop"].er-drawer-agent table td{
  padding: 6px 8px;
}

.er-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.er-drawer-title{
  font-weight: 950;
  font-size: 14px;
}

.er-drawer-close{
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.88);
  color: rgba(15,23,42,.86);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  font-size: 13px;
  font-weight: 950;
  min-height: var(--er-btn-h);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease, filter .15s ease, transform .08s ease;
}
.er-drawer-close:hover{ filter: brightness(1.02); }
.er-drawer-close:active{ transform: translateY(1px); }

.er-drawer-body .er-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

/*
  Drawer body:
  Keep the drawer itself inside viewport. If content still doesn't fit (small screens),
  scroll the BODY area while keeping header/buttons reachable.
*/
.er-drawer-body{
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

/* Sticky actions inside drawers so buttons are always reachable */
.er-drawer-body .er-actions{
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  margin-top: 10px;
  border-top: 1px solid rgba(2,6,23,.08);
}
@media (max-width: 980px){
  .er-drawer-body .er-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px){
  .er-drawer-body .er-grid{ grid-template-columns: 1fr; }
}

/* Drawer/Modal compact mode: fit everything on screen without clipping */
.er-drawer .er-card{
  padding: 10px;
  margin: 8px 0;
}
.er-drawer .er-block-head{ margin-bottom: 8px; }
.er-drawer .er-block-head h3{ font-size: 14px; }
.er-drawer .er-hint{ font-size: 12px; }
.er-drawer .er-record-title{ font-size: 15px; }
.er-drawer .er-record-sub{ font-size: 11px; }
.er-drawer .er-badge{ padding: 5px 9px; font-size: 11px; }
.er-drawer .er-kv{ gap: 8px 10px; }
.er-drawer .er-k{ font-size: 10px; margin-bottom: 3px; }
.er-drawer .er-v{ font-size: 13px; }

/* If the viewport height is limited, tighten spacing further */
@media (max-height: 860px){
  .er-drawer-backdrop{ padding: 50px 10px 10px; }
  .er-drawer{ padding: 10px; border-radius: 18px; max-height: calc(100vh - 60px); }
  .er-drawer-head{ margin-bottom: 8px; }
  .er-drawer-close{ padding: 8px 10px; font-size: 12px; }
  .er-drawer-body .er-grid{ gap: 10px; }
  .er-drawer .er-card{ padding: 9px; margin: 6px 0; }
  .er-drawer .er-block-head{ margin-bottom: 6px; }
  .er-drawer .er-block-head h3{ font-size: 13px; }
  .er-drawer .er-kv{ gap: 6px 8px; }
  .er-drawer .er-v{ font-size: 12px; }
}

@media (max-height: 760px){
  .er-drawer-body{ padding-right: 4px; }
  .er-drawer .er-card{ padding: 8px; }
  .er-drawer .er-badges{ gap: 6px; }
  .er-drawer .er-badge{ padding: 4px 8px; font-size: 10px; }
  .er-drawer .er-record-title{ font-size: 14px; }
}

/* ===== Record edit: block + rows (no short inputs) ===== */
.er-form-rows .er-rows{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.er-form-rows .er-row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}

.er-form-rows .er-row-label{
  width: 220px;
  min-width: 180px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(15,23,42,.72);
}

.er-form-rows .er-row-control{
  flex: 1;
  min-width: 0;
}

.er-form-rows .er-row-control input,
.er-form-rows .er-row-control select,
.er-form-rows .er-row-control textarea{
  width: 100% !important;
  max-width: 100% !important;
}

.er-form-rows .er-row-textarea{
  align-items:flex-start;
}
.er-form-rows .er-row-textarea .er-row-label{ padding-top: 8px; }

@media (max-width: 700px){
  .er-form-rows .er-row{
    flex-direction: column;
    align-items: stretch;
  }
  .er-form-rows .er-row-label{
    width: auto;
    min-width: 0;
  }
  .er-form-rows .er-row-textarea .er-row-label{ padding-top: 0; }
}

/* Actions modal */
.er-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 1000000;
  display:flex;
  align-items:center;
  justify-content:center;
  /* Top gap under WP admin bar */
  padding: 32px 16px 16px;
  overflow: auto;
}

.er-modal{
  /* Wider modal so edit forms fit without scrolling in most cases */
  width: min(980px, 96vw);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(2,6,23,.32);
  overflow:hidden;

  /* Do NOT zoom: it visually shrinks but keeps layout size, causing cut off. */
  zoom: 1;
}

.er-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.er-modal-title{ font-weight: 950; font-size: 14px; }

.er-modal-close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.9);
  color: rgba(15,23,42,.86);
  cursor:pointer;
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease, filter .15s ease, transform .08s ease;
}

.er-modal-body{ padding: 14px; }

/* Make edit forms fit the screen without scrolling: compact rows/controls inside modals */
.er-modal{
  /* keep modal fully inside viewport even on small screens */
  max-height: calc(100vh - 32px);
  display:flex;
  flex-direction:column;
}

.er-modal-body{
  /* Keep buttons reachable on small screens: scroll BODY area if content doesn't fit */
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Sticky actions inside modals so bottom buttons are always reachable */
.er-modal-body .er-actions{
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  margin-top: 10px;
  border-top: 1px solid rgba(2,6,23,.08);
}

/* Compact "row blocks" in record edit modal */
.er-modal .er-form-rows .er-rows{ gap: 6px; }
.er-modal .er-form-rows .er-row{
  padding: 6px 10px;
  gap: 10px;
  border-radius: 14px;
}
.er-modal .er-form-rows .er-row-label{
  width: 190px;
  min-width: 160px;
  font-size: 11px;
}

/* Smaller controls inside modal */
.er-modal input,
.er-modal select{
  height: 34px;
  font-size: 13px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.er-modal textarea{
  font-size: 13px;
  min-height: 84px;
}

/* Modal compact mode for short viewports (try to avoid scrolling) */
@media (max-height: 860px){
  .er-modal-backdrop{ padding: 28px 12px 12px; }
  .er-modal{ border-radius: 18px; max-height: calc(100vh - 24px); }
  .er-modal-head{ padding: 10px 12px; }
  .er-modal-title{ font-size: 13px; }
  .er-modal-close{ width: 36px; height: 36px; border-radius: 12px; }
  .er-modal-body{ padding: 8px; }

  .er-modal .er-form-rows .er-rows{ gap: 5px; }
  .er-modal .er-form-rows .er-row{ padding: 5px 8px; gap: 8px; }
  .er-modal .er-form-rows .er-row-label{ width: 170px; min-width: 140px; }

  .er-modal input,
  .er-modal select{ height: 30px; font-size: 12px; padding-top: 5px; padding-bottom: 5px; }
  .er-modal textarea{ font-size: 12px; min-height: 72px; }
}

@media (max-height: 760px){
  .er-modal .er-form-rows .er-row-label{ width: 150px; min-width: 120px; }
  .er-modal textarea{ min-height: 64px; }
}

/* Record edit modal: pack fields into 2 columns so everything fits without scrolling */
.er-modal [data-er-modal-body] form[data-er-form="record_edit"] .er-form-rows .er-rows{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.er-modal [data-er-modal-body] form[data-er-form="record_edit"] .er-form-rows .er-row{
  width: 100%;
}
.er-modal [data-er-modal-body] form[data-er-form="record_edit"] .er-form-rows .er-row-textarea{
  /* Комментарий уводим в правую колонку для более плотного вида (как просили) */
  grid-column: 2 / 3;
}
.er-modal [data-er-modal-body] form[data-er-form="record_edit"] textarea{
  min-height: 60px;
}

@media (max-width: 860px){
  /* На узких экранах возвращаем комментарий на всю ширину */
  .er-modal [data-er-modal-body] form[data-er-form="record_edit"] .er-form-rows .er-row-textarea{
    grid-column: 1 / -1;
  }
}
/* В модалке редактирования убираем внутренний скролл: пытаемся уместить контент целиком */
[data-er-modal="actions"].er-modal-record-edit .er-modal-body{
  overflow: visible;
}

/* === Drawer/Modal extra compactness (>=30% denser) === */
.er-drawer .er-card{ padding: 8px; margin: 6px 0; min-width: 0; }
.er-drawer-head{ margin-bottom: 8px; }
.er-drawer{ padding: 12px; }
.er-drawer .er-block-head{ margin-bottom: 6px; }
.er-drawer .er-block-head h3{ font-size: 13px; }
.er-drawer .er-hint{ font-size: 11px; }
.er-drawer input,
.er-drawer select{ height: 30px; font-size: 12px; padding-top: 5px; padding-bottom: 5px; }
.er-drawer textarea{ font-size: 12px; }

.er-modal{ box-sizing: border-box; }
.er-modal-body{ min-width: 0; }
.er-modal .er-card{ padding: 8px; margin: 6px 0; min-width: 0; }
.er-modal-head{ padding: 10px 12px; }
.er-modal-body{ padding: 8px; }
.er-modal input,
.er-modal select{ height: 30px; font-size: 12px; padding-top: 5px; padding-bottom: 5px; }
.er-modal textarea{ font-size: 12px; min-height: 64px; }

/* Record edit: put Comment card into right column on wide screens */
.er-drawer-body form[data-er-form="record_edit"] .er-card-comment,
.er-modal-backdrop.er-modal-record-edit form[data-er-form="record_edit"] .er-card-comment{
  grid-column: 2 / 3;
}
@media (max-width: 980px){
  .er-drawer-body form[data-er-form="record_edit"] .er-card-comment,
  .er-modal-backdrop.er-modal-record-edit form[data-er-form="record_edit"] .er-card-comment{
    grid-column: 1 / -1;
  }
}

/* Active field highlight (blue) */
.er-is-active-field{
  border-color: rgba(37,99,235,.85) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.16) !important;
}
.er-is-active-row{
  outline: 2px solid rgba(37,99,235,.28);
  outline-offset: 2px;
  background: rgba(37,99,235,.06);
}

/* Toast */
.er-toast-container{
  position: fixed;
  right: 14px;
  top: 14px;
  /* Some themes add full-screen overlays (“curtains”) with extremely high z-index.
     Keep CRM-TO toasts always visible above any theme layer. */
  z-index: 2147483647 !important;
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 28px));
}

.er-toast{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 48px rgba(2,6,23,.24);
  transition: opacity .25s ease, transform .25s ease;
}

.er-toast--hide{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.er-toast-badge{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 auto;
}

.er-toast-msg{
  font-size: 13px;
  color: rgba(15,23,42,.92);
  line-height: 1.35;
  flex: 1 1 auto;
}

.er-toast-close{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.82);
  cursor:pointer;
  font-size: 16px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  color: rgba(15,23,42,.70);
  transition: background .15s ease, filter .15s ease, transform .08s ease;
}
.er-toast-close:hover{ background: rgba(15,23,42,.06); color: rgba(15,23,42,.92); }

.er-toast-success .er-toast-badge{ background: var(--er-ok); }
.er-toast-error .er-toast-badge{ background: var(--er-bad); }
.er-toast-info .er-toast-badge{ background: var(--er-brand); }

@media (max-width: 520px){
  .er-toast-container{ left: 10px; right: 10px; max-width:none; }
}

/* Cash closing */
.er-cash-row{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items:flex-end;
}
.er-cash-panel{
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(15,23,42,.18);
  border-radius: var(--er-radius);
  background: rgba(241,245,249,.55);
}
.er-cash-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 980px){
  .er-cash-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .er-cash-grid{ grid-template-columns: 1fr; }
}
.er-cash-item{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  padding: 10px 12px;
}
.er-cash-label{
  font-size: 12px;
  color: var(--er-text-2);
  margin-bottom: 6px;
}
.er-cash-value{
  font-weight: 950;
  font-size: 16px;
}
.er-cash-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}

/* Auth block */
/* Default: inline login (no hard background fill, no takeover) */
.er-auth-page{
  position: relative;
  inset: auto;
  z-index: 1;
  overflow: visible;

  min-height: auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 34px 14px;
  background: transparent;
}

/* Fullscreen overlay variant (used only when data-er-auth-overlay="1") */
.er-auth-page[data-er-auth-overlay="1"]{
  /* IMPORTANT: do NOT paint or takeover the page background.
     Some installs still render the auth shortcode with overlay="1".
     We keep it visually identical to the inline variant.
  */
  position: relative;
  inset: auto;
  z-index: 1;
  overflow: visible;

  min-height: auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 34px 14px;
  background: transparent !important;
}

/* When auth overlay is present, hide typical theme wrappers behind (safe no-op if selectors absent) */
body.er-body-auth header,
body.er-body-auth footer,
body.er-body-auth .site-header,
body.er-body-auth .site-footer,
body.er-body-auth #masthead,
body.er-body-auth #colophon,
body.er-body-auth header.wp-block-template-part,
body.er-body-auth footer.wp-block-template-part{
  display:none !important;
}
.er-auth-page .er-wrap{ width:100%; max-width: 560px; margin:0; }

.er-auth h2{ color: var(--er-text); }
.er-auth .er-sub{ color: var(--er-text-2); }

.er-auth{ margin: 0; padding: 18px; border-radius: 22px; }
.er-auth .er-auth-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom: 14px; }
.er-auth .er-auth-actions{ display:flex; gap:10px; align-items:center; }
.er-auth .er-auth-brand{ display:flex; gap: 12px; align-items:center; }
.er-auth .er-auth-logo{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  letter-spacing: .5px;
  color: rgba(255,255,255,.96);
  background: linear-gradient(180deg, rgba(37,99,235,1) 0%, rgba(29,78,216,1) 100%);
  box-shadow: 0 14px 34px rgba(37,99,235,.22);
}

.er-auth #loginform{ margin:0; }
.er-auth #loginform p{ margin: 0 0 10px; }
.er-auth #loginform label{ display:block; font-size: 12px; font-weight: 800; color: var(--er-text-2); margin-bottom: 6px; }
.er-auth #loginform input[type="text"],
.er-auth #loginform input[type="password"],
.er-auth #loginform input[type="email"]{
  width:100%;
  min-height: var(--er-control-h);
  padding: 10px 12px;
  border-radius: var(--er-radius-sm);
  border: 1px solid var(--er-stroke);
  background: rgba(255,255,255,.96);
  color: var(--er-text);
}
.er-auth #loginform input:focus{ border-color: rgba(37,99,235,.45); box-shadow: 0 0 0 4px rgba(37,99,235,.16); outline:none; }
.er-auth #loginform .forgetmenot{ display:flex; align-items:center; gap:8px; }
.er-auth #loginform .forgetmenot label{ margin:0; font-weight:800; }
.er-auth #loginform .forgetmenot input[type="checkbox"]{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--er-stroke);
  accent-color: rgba(37,99,235,1);
}

.er-auth #loginform p.submit,
.er-auth #loginform p.login-submit{ margin-top: 12px; }
.er-auth #loginform p.submit input[type="submit"],
.er-auth #loginform p.login-submit input[type="submit"]{
  width:100%;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(37,99,235,1) 0%, rgba(29,78,216,1) 100%);
  color:#fff;
  border-radius: 16px;
  min-height: var(--er-btn-h);
  padding: 10px 14px;
  cursor:pointer;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}
.er-auth #loginform p.submit input[type="submit"],
.er-auth #loginform p.login-submit input[type="submit"]{
  border: 1px solid transparent !important;
  background: linear-gradient(180deg, rgba(37,99,235,1) 0%, rgba(29,78,216,1) 100%) !important;
  color:#fff !important;
}
.er-auth #loginform p.submit input[type="submit"]:hover,
.er-auth #loginform p.login-submit input[type="submit"]:hover{
  filter: brightness(1.03);
  box-shadow: 0 16px 38px rgba(37,99,235,.26);
}
.er-auth #loginform p.submit input[type="submit"]:active,
.er-auth #loginform p.login-submit input[type="submit"]:active{
  transform: translateY(1px);
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}

/* Submit row: place "На главную" near "Войти" */
.er-auth #loginform p.submit,
.er-auth #loginform p.login-submit{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.er-auth #loginform p.submit input[type="submit"],
.er-auth #loginform p.login-submit input[type="submit"]{ width:auto; flex: 1 1 220px; }

.er-auth #loginform p.submit .er-auth-home-inline,
.er-auth #loginform p.login-submit .er-auth-home-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: var(--er-btn-h);
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--er-stroke);
  text-decoration:none;
  color: var(--er-text);
  background: rgba(15,23,42,.02);
  font-weight: 950;
  flex: 1 1 180px;
}
.er-auth #loginform p.submit .er-auth-home-inline:hover,
.er-auth #loginform p.login-submit .er-auth-home-inline:hover{
  background: rgba(15,23,42,.05);
}

/* Mobile: card and buttons */
@media (max-width: 520px){
  .er-auth{ padding: 14px; border-radius: 18px; }
  .er-auth .er-auth-head{ flex-direction: column; align-items:flex-start; gap:10px; }
  .er-auth .er-auth-actions{ width:100%; justify-content:flex-start; }
  .er-auth #loginform p.submit,
  .er-auth #loginform p.login-submit{ justify-content:stretch; }
  .er-auth #loginform p.submit input[type="submit"],
  .er-auth #loginform p.login-submit input[type="submit"],
  .er-auth #loginform p.submit .er-auth-home-inline,
  .er-auth #loginform p.login-submit .er-auth-home-inline{ flex: 1 1 100%; width:100%; }
}
.er-auth #loginform p.submit input[type="submit"]:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18), 0 16px 38px rgba(37,99,235,.22);
}

.er-auth #loginform .login-remember,
.er-auth #loginform .forgetmenot{ margin-top: 2px; }


.er-auth-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.er-auth-home{
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 520px){
  .er-auth .er-auth-head{ align-items: flex-start; }
  .er-auth-actions{ align-items:flex-start; }
  .er-auth-home{ padding: 0 10px; height: 38px; }
}

.er-auth-foot{ margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(2,6,23,.08); }
.er-auth-note{ font-size: 12px; color: var(--er-text-2); line-height: 1.35; }

@media (max-width: 420px){
  .er-auth{ padding: 14px; }
  .er-auth .er-auth-logo{ width: 40px; height: 40px; border-radius: 14px; }
}

.er-auth #loginform p.submit input[type="submit"]{
  appearance:none;
  -webkit-appearance:none;
}

/* Harden against theme styles */
.er-auth #loginform input[type="text"],
.er-auth #loginform input[type="password"],
.er-auth #loginform input[type="email"]{
  box-sizing: border-box !important;
}
.er-auth #loginform p.submit input[type="submit"]{
  border-radius: 16px !important;
}

.er-toolbar-compact{
  margin-top: 10px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  padding: 12px;
}
.er-toolbar-compact .er-toolbar-row{ display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; }

/* Agent booking form (cabinet agent): compact and responsive */
.er-agent-booking{
  margin-top: 10px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--er-stroke);
  border-radius: var(--er-radius);
  padding: 12px;
}
.er-agent-booking .er-toolbar-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.er-agent-booking .er-field{ min-width: 160px; flex: 1; }
.er-agent-booking .er-field-calendar{ flex: 0 0 380px; min-width: 320px; max-width: 420px; align-self:flex-start; }
.er-agent-booking .er-field-calendar .er-calendar{ width: 100%; }
.er-agent-booking .er-field-wide{ flex: 1 1 100%; min-width: 100%; }
.er-agent-booking label{ font-size: 12px; margin-bottom: 4px; }
.er-agent-booking input,
.er-agent-booking select{
  padding: 10px 12px;
  border-radius: 14px;
}
.er-agent-booking .er-field-actions{ min-width: 180px; flex: 0 0 auto; }

@media (max-width: 860px){
  .er-agent-booking .er-field{ min-width: 140px; }
  .er-agent-booking .er-field-calendar{ flex: 1 1 100%; max-width: none; }
}

@media (max-width: 520px){
  .er-agent-booking{ padding: 10px; }
  .er-agent-booking .er-field{ min-width: 100%; }
  .er-agent-booking .er-field-actions{ width: 100%; }
}

/* ---------------- Agent wizard (Calendly-like) ---------------- */
.er-agent-booking[data-er-wizard="1"]{
  /* Keep the wizard centered on wide screens for comfortable filling */
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.er-agent-booking[data-er-wizard="1"] .er-toolbar-row{ align-items: stretch; }
.er-wizard-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 4px 0 14px;
}
.er-wizard-step{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border: 1px solid var(--er-stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: var(--er-text-2);
  font-size: 12px;
  line-height: 1;
}
.er-wizard-step .er-wiz-num{
  width: 20px;
  height: 20px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: rgba(2,6,23,.08);
  font-weight: 900;
  color: var(--er-text);
}
.er-wizard-step.is-active{ color: var(--er-text); border-color: rgba(59,130,246,.35); box-shadow: 0 10px 24px rgba(2,6,23,.06); }
.er-wizard-step.is-active .er-wiz-num{ background: rgba(59,130,246,.15); }
.er-wizard-step.is-done{ color: var(--er-text); }
.er-wizard-step.is-done .er-wiz-num{ background: rgba(34,197,94,.18); }

.er-wizard-panel{ display:none; }
.er-wizard-panel.is-active{ display:block; }
.er-wizard-title{ font-weight: 950; font-size: 14px; margin: 2px 0 10px; }
.er-wizard-note{ margin-top: 8px; font-size: 12px; color: var(--er-text-2); }

.er-wizard-actions{ display:flex; justify-content:space-between; gap:10px; margin-top: 12px; }
.er-wizard-actions .er-btn{ min-width: 140px; }
.er-btn.er-btn-ghost{ background: transparent; border: 1px solid var(--er-stroke); color: var(--er-text); }
.er-btn.er-btn-ghost:hover{ background: rgba(2,6,23,.04); }

.er-wizard-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.er-wizard-card{
  border: 1px solid var(--er-stroke);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  min-height: 320px;
  display:flex;
  flex-direction:column;
}
.er-wizard-card-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom: 10px; }
.er-wizard-card-title{ font-weight: 950; font-size: 14px; color: var(--er-text); }
.er-wizard-card-sub{ font-size: 12px; color: var(--er-text-2); }
.er-agent-booking[data-er-wizard="1"] .er-slots{ flex: 1 1 auto; max-height: 100%; overflow:auto; padding-right: 6px; }

@media (max-width: 980px){
  .er-wizard-grid{ grid-template-columns: 1fr; }
  .er-wizard-card{ min-height: 260px; }
  .er-wizard-actions .er-btn{ min-width: 120px; }
}

/* Calendar typography hardening inside agent wizard */
.er-agent-booking[data-er-wizard="1"] .er-cal-day{ white-space: nowrap; font-variant-numeric: tabular-nums; }
.er-agent-booking[data-er-wizard="1"] .er-cal-cell{ height: 38px; }

/* Desktop polish: keep the calendar compact on wide screens */
.er-agent-booking[data-er-wizard="1"] .er-wizard-date{
  max-width: 560px;
  margin: 0 auto;
}

/* Make the 7-day grid use fixed-size cells (prevents huge gaps on desktop) */
.er-agent-booking[data-er-wizard="1"] .er-cal-week,
.er-agent-booking[data-er-wizard="1"] .er-cal-grid{
  grid-template-columns: repeat(7, 44px);
  justify-content: center;
}

.er-agent-booking[data-er-wizard="1"] .er-cal-cell{ height: 44px; }
.er-agent-booking[data-er-wizard="1"] .er-cal-day{
  height: 44px;
  width: 44px;
  padding: 0;
  line-height: 44px;
}

/* Step 2: keep content centered and readable */
.er-agent-booking[data-er-wizard="1"] [data-er-wiz-panel="2"]{ padding-bottom: 6px; }
.er-agent-booking[data-er-wizard="1"] [data-er-wiz-panel="2"] .er-wizard-actions{ margin-top: 16px; }

/* --- Agent wizard (Calendly-like): make time panel much more compact --- */
.er-agent-booking[data-er-wizard="1"] .er-wizard-grid{ gap: 12px; }
.er-agent-booking[data-er-wizard="1"] .er-wizard-card{ padding: 14px; }
.er-agent-booking[data-er-wizard="1"] .er-wizard-card-head{ margin-bottom: 8px; }

/* Slots container: smaller, cleaner */
.er-agent-booking[data-er-wizard="1"] .er-slots{ min-height: 180px; max-height: 360px; padding-right: 4px; }
.er-agent-booking[data-er-wizard="1"] .er-slots-section{ margin-top: 8px; }
.er-agent-booking[data-er-wizard="1"] .er-slots-section-title{ margin: 0 0 6px 2px; font-size: 11px; letter-spacing: .02em; }

/* Slot grid: more columns and tighter spacing on desktop */
.er-agent-booking[data-er-wizard="1"] .er-slot-grid{ gap: 8px; }
@media (min-width: 1100px){
  .er-agent-booking[data-er-wizard="1"] .er-slot-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Slot buttons: smaller height and typography */
.er-agent-booking[data-er-wizard="1"] .er-slot{
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 10px;
}

/* Keep selected state, but a bit thinner to look lighter */
.er-agent-booking[data-er-wizard="1"] .er-slot.is-selected{ outline-width: 2px; }

/* Safety: some themes print the same shortcode output twice (content + duplicated template part).
   Hide the second cabinet instance on the same page to avoid "duplicate cabinet" at the bottom. */
.er-app[data-er-role="agent"] + .er-app[data-er-role="agent"]{ display:none !important; }


.er-dashboard-breakdown{ margin-top: 12px; }
.er-branch-break{ background: rgba(255,255,255,.92); border: 1px solid var(--er-stroke); border-radius: var(--er-radius); padding: 12px; box-shadow: 0 10px 24px rgba(2,6,23,.08); }
.er-branch-break-head{ display:flex; flex-direction:column; gap:8px; }
.er-branch-break-title{ font-weight: 950; font-size: 14px; color: var(--er-text); }
.er-branch-break-metrics{ display:flex; flex-wrap:wrap; gap:10px 14px; color: var(--er-text-2); font-size: 12px; }
.er-branch-break-metrics b{ color: var(--er-text); }

/* App overrides */
.er-app .er-wrap{max-width:none;margin:0;padding:0;background:transparent;}
.er-app .er-header{display:none;}

/* Floating menu button (mobile) */
.er-fab-menu{
  position: fixed;
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--er-stroke);
  background: rgba(255,255,255,.92);
  color: var(--er-text);
  box-shadow: 0 10px 30px rgba(2,6,23,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999990;
}
.er-fab-menu:active{ transform: translateY(1px); }

@media (max-width: 980px){
  .er-fab-menu{ display: inline-flex; width:56px; height:56px; border-radius:20px; font-size:22px; }
}

/* --- Agent autocomplete --- */
.er-suggest{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin-top: 0;
  /* Must be above drawers/modals of themes and WP admin bars */
  z-index: 9999;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  background: var(--er-card-bg, #fff);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

/* Suggest dropdown rendered in a portal (document.body) to avoid clipping inside modals/cards */
.er-suggest--portal{
  position: fixed;
  z-index: 1000005;
}
.er-suggest-item{
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.er-suggest-item:last-child{ border-bottom: 0; }
.er-suggest-item:hover{ background: rgba(15,23,42,.04); }
.er-suggest-item.is-active{ background: rgba(15,23,42,.08); }

/* --- Records status highlighting --- */
.er-table-records tr.er-record-pending{ background: rgba(245, 158, 11, .12); }
.er-table-records tr.er-record-active{ background: rgba(34, 197, 94, .10); }
.er-table-records tr.er-record-rejected{ background: rgba(239, 68, 68, .10); }
.er-table-records tr.er-record-deleted{ background: rgba(239, 68, 68, .18); }
.er-table-records tr.er-record-deleted td{ color: #991b1b; }
.er-table-records tr.er-record-deleted .er-status{ color: #991b1b; font-weight: 800; }
.er-table-records tr.er-record-duplicate-exact{
  box-shadow: inset 4px 0 0 rgba(220,38,38,.72);
}
.er-table-records tr.er-record-duplicate-exact td{
  background: rgba(251, 146, 60, .18);
}
.er-table-records tr.er-record-duplicate-possible{
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, .55);
}
.er-table-records tr.er-record-duplicate-possible td{
  background: rgba(251, 191, 36, .12);
}
.er-record-duplicate-badge{
  display:inline-flex;
  align-items:center;
  margin-top:4px;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(220,38,38,.14);
  color:#991b1b;
  font-size:11px;
  font-weight:700;
}
.er-record-duplicate-percent{
  margin-left:6px;
  font-weight:800;
}

.er-duplicate-popup-open{
  overflow: hidden;
}
.er-duplicate-popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.58);
  z-index: 100500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.er-duplicate-popup{
  width: min(680px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 24px 64px rgba(15,23,42,.35);
  padding: 18px;
}
.er-duplicate-popup--exact{
  border-top: 5px solid #dc2626;
}
.er-duplicate-popup--possible{
  border-top: 5px solid #f59e0b;
}
.er-duplicate-popup-title{
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.er-duplicate-popup-body{
  font-size: 14px;
  line-height: 1.45;
  color: #0f172a;
  white-space: normal;
}
.er-duplicate-popup-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.er-duplicate-popup-ok{
  min-width: 170px;
  font-weight: 700;
}

.er-duplicate-popup-branch{
  margin-bottom: 8px;
  font-size: 14px;
  color: #0f172a;
}
.er-duplicate-popup-gap-dates{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245,158,11,.12);
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
}
.er-duplicate-popup-hint{
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.er-duplicate-popup-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.er-status{ font-weight: 600; }

/* --- Agent booking: inline calendar + time slots --- */
.er-agent-meta{margin-top:10px; padding-top:10px; border-top:1px dashed rgba(15,23,42,.15); opacity:.75;}

/* Agent booking: дата + время как два соседних "календаря" */
.er-booking-pick{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.er-booking-col{
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.62);
}
.er-booking-head{
  display:flex;
  align-items:baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.er-booking-title{font-weight:800; font-size:13px;}
.er-booking-sub{font-size:12px; color: rgba(15,23,42,.62);}

@media (max-width: 980px){
  .er-booking-pick{ grid-template-columns: 1fr; }
}

/* --- Agent booking datepicker (jQuery UI) --- */
.er-field-calendar{flex:0 0 420px; max-width:420px;}
@media (max-width: 900px){.er-field-calendar{flex:1 1 100%; max-width:100%;}}

.er-calendar .ui-datepicker{width:100%; border:1px solid rgba(15,23,42,.15); border-radius:16px; padding:12px; box-shadow:none;}
.er-calendar .ui-datepicker-header{border:0; background:transparent; padding:0 0 8px 0;}
.er-calendar .ui-datepicker-title{font-weight:700;}
.er-calendar .ui-datepicker-prev,.er-calendar .ui-datepicker-next{top:8px; width:32px; height:32px; border-radius:10px;}
.er-calendar .ui-datepicker-prev-hover,.er-calendar .ui-datepicker-next-hover{border:0; background:rgba(15,23,42,.06);} 
.er-calendar .ui-datepicker table{margin:8px 0 0 0;}
.er-calendar .ui-datepicker th{font-weight:600; color:rgba(15,23,42,.65); padding:6px 0;}
.er-calendar .ui-datepicker td{padding:4px;}
.er-calendar .ui-datepicker td a,.er-calendar .ui-datepicker td span{display:flex; align-items:center; justify-content:center; height:34px; border-radius:12px; border:1px solid rgba(15,23,42,.10); background:#fff;}
.er-calendar .ui-datepicker td a:hover{background:rgba(59,130,246,.08);}
.er-calendar .ui-datepicker td.ui-datepicker-current-day a{background:rgba(59,130,246,.16); border-color:rgba(59,130,246,.35);} 
.er-calendar .ui-datepicker td.ui-datepicker-today a{outline:2px solid rgba(59,130,246,.25);} 
.er-calendar .er-dp-closed span{background:rgba(15,23,42,.04); border-color:rgba(15,23,42,.08); color:rgba(15,23,42,.35);} 
.er-calendar .er-dp-disabled span{background:rgba(15,23,42,.04); border-color:rgba(15,23,42,.08); color:rgba(15,23,42,.35);} 

.er-calendar{border:1px solid rgba(15,23,42,.12); border-radius:14px; padding:10px; background: rgba(255,255,255,.65);}
.er-cal-head{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px;}
.er-cal-title{font-weight:700; font-size:14px; line-height:1.2;}
.er-cal-nav{width:32px; height:32px; border-radius:10px; border:1px solid rgba(15,23,42,.12); background:rgba(255,255,255,.7); cursor:pointer;}
.er-cal-nav:hover{background:rgba(15,23,42,.04);}

.er-cal-week{display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:6px;}
.er-cal-w{font-size:12px; text-align:center; opacity:.65;}

.er-cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:6px;}
.er-cal-cell{height:34px;}
.er-cal-empty{border:0; background:transparent;}
.er-cal-day{border:1px solid rgba(15,23,42,.12); border-radius:10px; background:rgba(255,255,255,.8); cursor:pointer; font-weight:600;}
.er-cal-day:hover{background:rgba(15,23,42,.04);}
.er-cal-day.is-selected{outline:2px solid rgba(59,130,246,.55); background:rgba(59,130,246,.08);}
.er-cal-day.is-disabled{background:rgba(148,163,184,.25); color:rgba(15,23,42,.4); cursor:not-allowed;}
.er-cal-day.is-disabled:hover{background:rgba(148,163,184,.25);}

.er-slots{min-height: 290px;}
.er-slots-empty{padding:10px; font-size:12px; color: rgba(15,23,42,.62);}

/* Amelia-like time sections */
.er-slots-section{margin-top:10px;}
.er-slots-section:first-child{margin-top:0;}
.er-slots-section-title{font-size:12px; font-weight:800; color:rgba(15,23,42,.62); margin:2px 0 8px 2px;}

.er-slot-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 1100px){
  .er-slot-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .er-slot-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.er-slot{
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  padding: 0;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.85);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.er-slot:hover{background:rgba(15,23,42,.04);}
.er-slot.is-selected{outline:2px solid rgba(34,197,94,.55); background:rgba(34,197,94,.10);}

/* === Agent booking UI (Amelia-like) overrides === */
.er-agent-booking .er-booking-pick{
  display:grid;
  /* Дата и время одинаковые по размеру */
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  align-items: stretch;
}
@media (max-width: 980px){
  .er-agent-booking .er-booking-pick{ grid-template-columns: 1fr; }
}

.er-agent-booking .er-booking-col{
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  min-height: 430px;
  display:flex;
  flex-direction: column;
}

/* внутри карточек: календарь/слоты занимают оставшееся место */
.er-agent-booking .er-calendar{flex:1 1 auto;}
.er-agent-booking .er-slots{flex:1 1 auto; max-height: 100%; overflow:auto; padding-right: 4px;}

.er-agent-booking .er-booking-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.er-agent-booking .er-booking-title{
  font-weight: 950;
  font-size: 13px;
  color: rgba(15,23,42,.92);
}
.er-agent-booking .er-booking-sub{
  font-size: 12px;
  color: rgba(15,23,42,.55);
}

/* ensure theme does not hide button text */
.er-agent-booking button,
.er-agent-booking .er-cal-day,
.er-agent-booking .er-slot{
  color: rgba(15,23,42,.92) !important;
}

/* Calendar (custom) */
.er-agent-booking .er-calendar{ border:0; padding:0; background:transparent; }
.er-agent-booking .er-cal-head{ margin-bottom: 10px; }
.er-agent-booking .er-cal-title{ font-size: 14px; }
.er-agent-booking .er-cal-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  line-height: 1;
}
.er-agent-booking .er-cal-week{ gap: 8px; margin-bottom: 8px; }
.er-agent-booking .er-cal-grid{ gap: 8px; }
.er-agent-booking .er-cal-cell{ height: 38px; }
.er-agent-booking .er-cal-day{
  height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.12);
  font-size: 13px;
}
.er-agent-booking .er-cal-day.is-selected{
  outline: none;
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
  background: rgba(59,130,246,.08);
}
.er-agent-booking .er-cal-day.is-disabled{
  background: rgba(148,163,184,.18);
  border-color: rgba(148,163,184,.22);
  color: rgba(15,23,42,.35) !important;
}

/* Slots */
.er-agent-booking .er-slots{
  min-height: 310px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}
.er-agent-booking .er-slots-empty{
  padding: 10px 8px;
  background: rgba(15,23,42,.03);
  border: 1px dashed rgba(15,23,42,.15);
  border-radius: 14px;
}

.er-agent-booking .er-slots-section-title{
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 8px 0 8px 2px;
}

.er-agent-booking .er-slot-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1200px){
  .er-agent-booking .er-slot-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .er-agent-booking .er-slot-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .er-agent-booking .er-slot-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.er-agent-booking .er-slot{
  height: 40px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,.95);
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.er-agent-booking .er-slot:hover{ transform: translateY(-1px); }
.er-agent-booking .er-slot.is-selected{
  outline: none;
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  background: rgba(34,197,94,.10);
}

/* Make following rows align nicely under booking blocks */
.er-agent-booking .er-toolbar-row{ margin-top: 10px; }

/* =============================
   Public booking (shortcode)
   ============================= */
.er-public-card{
  max-width: 980px;
  margin: 24px auto;
  padding: 0 14px;
}
.er-public-shell{
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(2,6,23,.10);
  padding: 22px;
}
.er-public-head{
  align-items: flex-start;
}
.er-public-head h3{ font-size: 18px; }
.er-public-head .er-hint{ margin-top: 2px; }
.er-public-card .er-form{ margin-top: 10px; }

/* Strong resets for public shortcode (themes often override form controls heavily) */
.er-wrap[data-er-role="public"] .er-public-shell,
.er-wrap[data-er-role="public"] .er-public-shell *{
  box-sizing: border-box;
}
.er-wrap[data-er-role="public"] .er-public-shell .er-form{
  background: transparent !important;
}
.er-wrap[data-er-role="public"] .er-public-shell .er-field input,
.er-wrap[data-er-role="public"] .er-public-shell .er-field select,
.er-wrap[data-er-role="public"] .er-public-shell .er-field textarea{
  width: 100% !important;
  min-height: var(--er-control-h) !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: none !important;
  outline: none !important;
}
.er-wrap[data-er-role="public"] .er-public-shell .er-field input:focus,
.er-wrap[data-er-role="public"] .er-public-shell .er-field select:focus,
.er-wrap[data-er-role="public"] .er-public-shell .er-field textarea:focus{
  border-color: rgba(59,130,246,.55) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
}
.er-wrap[data-er-role="public"] .er-public-shell button.er-btn{
  border-radius: 14px !important;
}

/* Remove any decorative overlays (some blocks use pseudo-elements that look like a strange oval on white pages) */
.er-wrap[data-er-role="public"] .er-block::before,
.er-wrap[data-er-role="public"] .er-public-shell::before,
.er-wrap[data-er-role="public"] .er-public-shell::after,
.er-wrap[data-er-role="public"] .er-public-panel::before,
.er-wrap[data-er-role="public"] .er-public-panel::after{
  display: none !important;
  content: none !important;
}

/* Hard stop: some themes inject big SVG/oval decorations via pseudo-elements.
   We disable ALL pseudo-elements inside the public booking widget only. */
.er-wrap[data-er-role="public"] .er-public-card *::before,
.er-wrap[data-er-role="public"] .er-public-card *::after{
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Some themes draw large outlines / SVG overlays around blocks — hard-reset for public shortcode */
.er-wrap[data-er-role="public"] .er-public-shell,
.er-wrap[data-er-role="public"] .er-public-panel,
.er-wrap[data-er-role="public"] .er-public-datetime,
.er-wrap[data-er-role="public"] .er-public-slots,
.er-wrap[data-er-role="public"] .er-public-card{
  background-image: none !important;
  outline: none !important;
}
.er-wrap[data-er-role="public"] *{
  outline: none !important;
}

/* Public wizard actions */
.er-wrap[data-er-role="public"] .er-public-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.er-wrap[data-er-role="public"] .er-public-actions-right{ justify-content: flex-end; }
.er-wrap[data-er-role="public"] .er-public-actions-between{ justify-content: space-between; }

/* Make Back/Next buttons visually balanced */
.er-wrap[data-er-role="public"] .er-public-actions-between .er-btn{
  min-width: 160px;
}

/* Buttons: consistent height, no theme oddities */
.er-wrap[data-er-role="public"] .er-public-shell .er-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
}
.er-wrap[data-er-role="public"] .er-public-shell .er-btn.er-btn-ghost{
  height: 44px !important;
  line-height: 44px !important;
}

@media (max-width: 520px){
  .er-wrap[data-er-role="public"] .er-public-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .er-wrap[data-er-role="public"] .er-public-actions-between{ justify-content: stretch; }
  .er-wrap[data-er-role="public"] .er-public-actions-between .er-btn{ width: 100% !important; }
}

/* Step 1 grid should be 2 columns (not 3 like internal cabinets) */
.er-form .er-grid.er-public-grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.er-wizard-step{display:none;}
.er-wizard-step.is-active{display:block;}

.er-public-datetime{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch;}
.er-public-panel{border:1px solid rgba(15,23,42,.10);border-radius:18px;padding:14px;min-height:360px;display:flex;flex-direction:column;background:rgba(255,255,255,.60);}
.er-public-panel-title{font-weight:700;margin-bottom:10px;}

/* jQuery UI datepicker inside public panels */
.er-public-panel .ui-datepicker{width:100% !important;border:0 !important;background:transparent !important;padding:0 !important;}
.er-public-panel .ui-datepicker table{width:100% !important;border-collapse:separate !important;border-spacing:6px !important;}
.er-public-panel .ui-datepicker th{font-weight:600;font-size:12px;color:rgba(15,23,42,.6);padding:0 0 2px 0;}
.er-public-panel .ui-datepicker td{padding:0 !important;}
.er-public-panel .ui-datepicker td a,
.er-public-panel .ui-datepicker td span{
  display:flex !important;align-items:center;justify-content:center;
  width:44px;height:38px;line-height:38px;border-radius:12px;
  border:1px solid rgba(15,23,42,.08) !important;
  background:rgba(255,255,255,.6) !important;
  color:var(--er-text) !important;
  white-space:nowrap !important;
  font-variant-numeric: tabular-nums;
  text-decoration:none !important;
}
.er-public-panel .ui-datepicker td.ui-state-disabled span{opacity:.35;background:rgba(15,23,42,.03) !important;}
.er-public-panel .ui-datepicker td a.ui-state-hover{background:rgba(59,130,246,.10) !important;}
.er-public-panel .ui-datepicker td a.ui-state-active{background:rgba(59,130,246,.16) !important;border-color:rgba(59,130,246,.35) !important;}
.er-public-panel .ui-datepicker .ui-datepicker-title{font-weight:700;}
.er-public-panel .ui-datepicker .ui-datepicker-prev,
.er-public-panel .ui-datepicker .ui-datepicker-next{top:6px !important;}

/* Replace Prev/Next plain text with arrows (when jQuery UI theme styles are missing) */
.er-wrap[data-er-role="public"] .er-public-panel .ui-datepicker .ui-datepicker-prev,
.er-wrap[data-er-role="public"] .er-public-panel .ui-datepicker .ui-datepicker-next{
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  background: rgba(255,255,255,.95) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  overflow: hidden !important;
}
.er-wrap[data-er-role="public"] .er-public-panel .ui-datepicker .ui-datepicker-prev span,
.er-wrap[data-er-role="public"] .er-public-panel .ui-datepicker .ui-datepicker-next span{
  display: none !important;
}
.er-wrap[data-er-role="public"] .er-public-panel .ui-datepicker .ui-datepicker-prev:before{content:"‹";font-size:18px;line-height:1;}
.er-wrap[data-er-role="public"] .er-public-panel .ui-datepicker .ui-datepicker-next:before{content:"›";font-size:18px;line-height:1;}

.er-public-slots{flex:1;min-height:0;overflow:auto;padding:6px;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;align-content:start;}
.er-slot-btn{
  display:flex;align-items:center;justify-content:center;
  height:34px;border-radius:12px;border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.7);color:var(--er-text);
  font-weight:600;cursor:pointer;user-select:none;
}
.er-slot-btn:hover{background:rgba(59,130,246,.08);}
.er-slot-btn.is-selected{background:rgba(59,130,246,.16);border-color:rgba(59,130,246,.35);}
.er-slot-btn.is-disabled{opacity:.4;cursor:not-allowed;}

@media (max-width: 900px){
  .er-public-datetime{grid-template-columns:1fr;}
  .er-public-panel{min-height:auto;}
}

@media (max-width: 780px){
  .er-public-shell{ padding: 14px; border-radius: 20px; }
  .er-form .er-grid.er-public-grid-2{ grid-template-columns: 1fr; }
  .er-public-head{ flex-direction: column; gap: 6px; }
}

/* ===== Branch editor (rewritten) ===== */
.er-branch-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;align-items:start;}
.er-branch-list-item{background:var(--er-card);border:1px solid rgba(15,23,42,.08);padding:12px;border-radius:16px;}
.er-branch-list-item{background:var(--er-branch-card, rgba(255,255,255,.8));}
.er-branch-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.er-branch-list-body{margin-top:8px;display:flex;flex-direction:column;gap:4px;}
.er-branch-list-actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;}

/* Филиалы: отображение строками (не карточками-сеткой) */
.er-branch-list.er-branch-list-rows{display:flex;flex-direction:column;gap:10px;}
.er-branch-row{background:var(--er-branch-card, rgba(255,255,255,.86));border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:12px;display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;}
.er-branch-row-main{min-width:0;}
.er-branch-row-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.er-branch-row-meta{margin-top:8px;display:flex;gap:10px 14px;flex-wrap:wrap;line-height:1.25;}
.er-branch-row-meta > span{display:inline-flex;gap:6px;align-items:baseline;}
.er-branch-row-media{display:flex;gap:12px;align-items:center;justify-content:flex-end;}
.er-branch-row-media-item{display:grid;grid-template-columns:auto auto;gap:8px;align-items:center;}
.er-branch-row-actions{display:flex;justify-content:flex-end;}

@media (max-width: 980px){
  .er-branch-row{grid-template-columns:1fr auto;grid-template-areas:
    "main actions"
    "media media";}
  .er-branch-row-main{grid-area:main;}
  .er-branch-row-media{grid-area:media;justify-content:flex-start;flex-wrap:wrap;}
  .er-branch-row-actions{grid-area:actions;}
}

@media (max-width: 560px){
  .er-branch-row{grid-template-columns:1fr;grid-template-areas:
    "main"
    "media"
    "actions";}
  .er-branch-row-actions{justify-content:flex-start;}
}

.er-checklist{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto;padding:8px;border:1px solid rgba(15,23,42,.08);border-radius:12px;background:rgba(255,255,255,.6);}
.er-checklist-row{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:10px;}
.er-checklist-row:hover{background:rgba(15,23,42,.04);}
.er-checklist-row input{margin-top:2px;}
/* Fix huge checkboxes in some themes/browsers */
.er-checklist-row input[type="checkbox"]{
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin-top: 3px;
  accent-color: var(--er-brand);
}

/* Branch media thumbs (route scheme + QR) */
.er-branch-media{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:6px;}
.er-branch-media-item{display:inline-flex;gap:6px;align-items:center;}
.er-media-thumb{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;overflow:hidden;border:1px solid rgba(15,23,42,.12);background:rgba(255,255,255,.7);}
.er-media-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.er-media-thumb:hover{filter:brightness(.98);transform:translateY(-1px);}

.er-branch-editor{max-width:920px;}
.er-branch-editor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.er-branch-editor-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;}
.er-mode-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-weight:600;}

.er-media-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.er-media-row input[type="number"]{width:180px;}
.er-media-preview{margin-top:10px;}
.er-media-preview-img{max-width:280px;height:auto;border:1px solid rgba(15,23,42,.12);border-radius:12px;display:block;}
.er-media-preview-img-qr{max-width:220px;}

/* Branch settings: compact route/QR previews in one row */
.er-media-preview-compact .er-media-preview-img{width:56px;height:56px;max-width:none;object-fit:cover;border-radius:10px;}
.er-media-preview-compact .er-media-preview-img.er-media-preview-img-qr{width:56px;height:56px;object-fit:contain;background:#fff;}
.er-branch-media-row{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap;margin-top:10px;}
.er-branch-media-item{display:flex;flex-direction:column;gap:6px;min-width:160px;}
.er-branch-media-label{font-size:12px;font-weight:700;color:rgba(15,23,42,.8);}
.er-branch-media-meta{font-size:12px;color:rgba(15,23,42,.65);}

.er-week-grid{display:flex;flex-direction:column;gap:10px;}
.er-week-row{display:grid;grid-template-columns:60px 1fr 1fr 120px;gap:10px;align-items:center;}
.er-week-row input[type="time"]{height:38px;border-radius:12px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:rgba(255,255,255,.9);}
.er-week-day{font-weight:800;}
.er-week-closed{display:flex;align-items:center;gap:8px;font-weight:600;}

.er-rep-list{display:flex;flex-direction:column;gap:8px;margin-bottom:8px;}
.er-rep-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.er-rep-row input[type="date"],
.er-rep-row input[type="time"]{height:38px;border-radius:12px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:rgba(255,255,255,.9);}
.er-special-row{display:grid;grid-template-columns:160px 130px 130px 120px 1fr;gap:10px;align-items:center;}
.er-special-closed{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap;}

.er-schedule-sublabel{font-weight:800;margin:12px 0 8px 0;}

@media (max-width: 900px){
  .er-branch-editor-grid{grid-template-columns:1fr;}
  .er-branch-editor-cols{grid-template-columns:1fr;}
  .er-week-row{grid-template-columns:52px 1fr 1fr 120px;}
  .er-special-row{grid-template-columns:1fr 1fr;}
}

@media (max-width: 520px){
  .er-week-row{grid-template-columns:52px 1fr;}
  .er-week-row input[type="time"]{width:100%;}
  .er-week-closed{grid-column:1/-1;}
}

.er-modal-close:hover{ background: rgba(15,23,42,.06); }
.er-modal-close:active{ transform: translateY(1px); }

/* ===== Record view/edit layout (Admin/Manager) ===== */
.er-cards{ display:grid; gap:14px; }
.er-cards-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.er-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 14px;
}
.er-card-title{
  font-weight: 900;
  font-size: 13px;
  color: rgba(15,23,42,.75);
  margin-bottom: 10px;
}
.er-grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.er-record-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}
.er-record-title{ font-weight: 950; font-size: 16px; }
.er-record-sub{ margin-top: 2px; font-size: 12px; }

.er-badges{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.er-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.85);
}
.er-badge-strong{ background: rgba(11,107,58,.12); color:#0b6b3a; }
.er-badge-ok{ background: rgba(11,107,58,.12); color:#0b6b3a; }
.er-badge-warn{ background: rgba(245,158,11,.16); color:#92400e; }
.er-badge-danger{ background: rgba(239,68,68,.14); color:#991b1b; }
.er-badge-info{ background: rgba(59,130,246,.14); color:#1d4ed8; }
.er-badge-muted{ background: rgba(148,163,184,.18); color:#475569; }

.er-kv{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px 14px; }
.er-kv-wide{ grid-column: 1 / -1; }
.er-k{ font-size: 11px; font-weight: 800; color: rgba(15,23,42,.55); margin-bottom: 4px; }
.er-v{ font-size: 14px; color: rgba(15,23,42,.95); }

.er-form-sections{ display:grid; gap:14px; }

.er-form-col{ display:flex; flex-direction:column; gap:14px; min-width:0; }


/* === Record edit form: 2 cards per row (drawer + modal) === */
.er-drawer-body form[data-er-form="record_edit"] .er-form-sections,
.er-modal-backdrop.er-modal-record-edit form[data-er-form="record_edit"] .er-form-sections{
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* Wide cards (e.g. Comment) should span both columns */
.er-drawer-body form[data-er-form="record_edit"] .er-card-wide,
.er-modal-backdrop.er-modal-record-edit form[data-er-form="record_edit"] .er-card-wide{
  grid-column: 1 / -1;
}

/* On narrow screens fall back to 1 column */
@media (max-width: 980px){
  .er-drawer-body form[data-er-form="record_edit"] .er-form-sections,
  .er-modal-backdrop.er-modal-record-edit form[data-er-form="record_edit"] .er-form-sections{
    grid-template-columns: 1fr;
  }
}



@media (max-width: 900px){
  .er-cards-2{ grid-template-columns: 1fr; }
  .er-grid-2{ grid-template-columns: 1fr; }
  .er-record-head{ flex-direction: column; }
  .er-badges{ justify-content:flex-start; }
  .er-kv{ grid-template-columns: 1fr; }
}



/* === Mobile readable tables (card layout) === */
@media (max-width: 720px){
  .er-table-wrap{overflow: visible;}
  table.er-table{border:0; background:transparent;}
  table.er-table thead{display:none;}
  table.er-table tbody{display:block;}
  table.er-table tr{display:block; margin:0 0 10px; padding:10px; border:1px solid rgba(0,0,0,.08); border-radius:12px; background:#fff;}
  table.er-table td{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; width:100%; padding:6px 0; border:0; border-bottom:1px dashed rgba(0,0,0,.08);}
  table.er-table td:last-child{border-bottom:0;}
  table.er-table td::before{
    content: attr(data-label);
    flex: 0 0 46%;
    max-width: 46%;
    font-weight: 600;
    opacity: .85;
    padding-right: 10px;
    white-space: normal;
    word-break: break-word;
  }
  table.er-table td[data-label=""]::before{content:"";}
  table.er-table td > *{max-width: 54%;}
  table.er-table td .er-btn, table.er-table td button, table.er-table td a.er-btn{
    min-height: 38px;
  }
}



/* Employees table: even more compact rows + small action buttons */
.er-table--employees th,
.er-table--employees td{
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: middle;
}
.er-table--employees .er-btn-sm{
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.1;
  border-radius: 10px;
}

/* Pager */
.er-page-btn{
  border: 1px solid var(--er-stroke);
  background: var(--er-surface);
  color: var(--er-text);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  border-radius: 10px;
  cursor: pointer;
}
.er-page-btn:hover{ filter: brightness(0.98); }
.er-page-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}
.er-page-btn.is-active{
  background: rgba(30, 90, 255, .12);
  border-color: rgba(30, 90, 255, .25);
}
.er-page-dots{
  color: var(--er-text-2);
  padding: 0 2px;
}


/* === HOTFIX 2.4.2: ensure sidebar clickable on themes that add overlays === */
.er-app{ position: relative; isolation:isolate; }
.er-sidebar{ position: relative; z-index: 50; pointer-events: auto; }
.er-sidebar *{ pointer-events: auto; }
.er-content, .er-main, .er-page{ position: relative; z-index: 1; }
.er-mobile-backdrop{ z-index: 40; }

/* Make top action buttons compact (prevent theme from stretching) */
.er-toolbar .er-btn,
.er-toolbar button.er-btn,
.er-toolbar a.er-btn,
.er-actions .er-btn,
.er-actions button.er-btn,
.er-actions a.er-btn{
  display:inline-flex !important;
  width:auto !important;
  max-width: 220px;
  padding: 8px 12px !important;
  min-height: 34px !important;
  line-height: 1.1 !important;
  font-size: 13px !important;
}

/* Compact nav items (thin) */
.er-nav-item{
  padding: 5px 8px !important;
  min-height: 30px !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}
.er-nav-ico{ width: 20px; font-size: 16px !important; }

/* Compact sidebar spacing (new themes tend to inflate blocks) */
.er-sidebar{ padding: 4px !important; gap: 4px !important; width: var(--er-sidebar-width, 240px) !important; flex: 0 0 var(--er-sidebar-width, 240px) !important; }
.er-sidebar-placeholder{ width: var(--er-sidebar-width, 240px) !important; flex: 0 0 var(--er-sidebar-width, 240px) !important; }
.er-sidebar-portal{ width: var(--er-sidebar-width, 240px) !important; }
.er-nav{ gap: 4px !important; }
.er-nav-group{ padding: 6px 8px 4px !important; font-size: 11px !important; }
.er-nav-sep{ margin: 6px 0 !important; }

/* Popup content uses real font sizes; geometry lives in er-workspace-ui.css. */
:root{--er-popup-compact:1;--er-popup-compact-head:1;}

/* Make sure cards/tables never overflow horizontally after scaling */
.er-drawer .er-card,
.er-modal .er-card,
.er-drawer table,
.er-modal table{
  max-width: 100%;
}



/* === Mobile fix: calendar overflow + compact time slots === */
@media (max-width: 767px){
  .er-agent-booking .er-field-calendar,
  .er-field-calendar{
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .er-agent-booking .er-calendar,
  .er-calendar{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 6px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .er-calendar .ui-datepicker{
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px !important;
    box-sizing: border-box;
  }

  .er-calendar .ui-datepicker table{
    width: 100% !important;
    table-layout: fixed;
    margin: 4px 0 0 0;
  }

  .er-calendar .ui-datepicker th{
    font-size: 11px;
    padding: 4px 0;
  }

  .er-calendar .ui-datepicker td{
    padding: 2px;
  }

  .er-calendar .ui-datepicker td a,
  .er-calendar .ui-datepicker td span{
    height: 30px;
    min-height: 30px;
    font-size: 12px;
    border-radius: 8px;
    padding: 0;
  }

  .er-calendar .ui-datepicker-prev,
  .er-calendar .ui-datepicker-next{
    width: 28px;
    height: 28px;
    top: 4px;
  }

  .er-agent-booking .er-slots,
  .er-slots{
    min-height: auto;
    max-height: none;
    padding-right: 0;
  }

  .er-agent-booking .er-slot-grid,
  .er-slot-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .er-agent-booking .er-slot,
  .er-slot{
    min-height: 34px;
    height: 34px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.1;
    border-radius: 8px;
  }

  .er-agent-booking .er-slots-section-title,
  .er-slots-section-title{
    font-size: 11px;
    margin: 0 0 6px 2px;
  }
}


/* League experts */
.er-league-card{ margin-top:16px; background:linear-gradient(180deg,#fff8e8 0%,#fffdf7 100%); border:1px solid #f3d58a; box-shadow:0 10px 24px rgba(180,134,25,.08); }
.er-league-card .er-block-head{ padding:10px 12px; margin:-1px -1px 14px; border-radius:16px 16px 0 0; background:linear-gradient(180deg,rgba(255,224,130,.28) 0%,rgba(255,248,225,.7) 100%); border-bottom:1px solid #f3d58a; }
.er-league-controls{ display:flex; justify-content:flex-start; margin-bottom:12px; }
.er-seg{ display:inline-flex; gap:8px; flex-wrap:wrap; }
.er-seg-btn, .er-tab-btn{ border:1px solid var(--er-border,#d8dee8); background:#fff; color:#123; border-radius:12px; padding:9px 14px; cursor:pointer; font-weight:600; }
.er-seg-btn.is-active, .er-tab-btn.is-active{ background:#0b3a6e; color:#fff; border-color:#0b3a6e; }
.er-league-summary{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.er-league-mini-card{ border:1px solid var(--er-border,#d8dee8); border-radius:16px; padding:14px; background:#f8fafc; }
.er-league-mini-card-wide{ grid-column:span 1; }
.er-league-mini-label{ font-size:12px; color:#5b687a; margin-bottom:6px; }
.er-league-mini-value{ font-size:22px; font-weight:800; line-height:1.1; }
.er-league-mini-text{ font-size:14px; line-height:1.35; }
.er-league-tabs{ display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.er-league-panel{ display:none; }
.er-league-panel.is-active{ display:block; }
.er-league-table tbody tr.is-current td{ background:rgba(15,98,254,.08); }
@media (max-width: 900px){ .er-league-summary{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px){ .er-league-summary{ grid-template-columns:1fr; } .er-seg{ width:100%; } .er-seg-btn,.er-tab-btn{ flex:1 1 auto; text-align:center; } }

.er-league-admin{margin:16px 0 14px;padding:14px;border:1px solid #e7ece9;border-radius:14px;background:#fafcfb}
.er-league-admin-head{margin-bottom:10px}
.er-league-form{align-items:end}
.er-field-span-2{grid-column:span 2}
.er-league-events-list{margin-top:12px}
.er-league-mini-value.is-pos,.er-table .is-pos{color:#0f7b45}
.er-league-mini-value.is-neg,.er-table .is-neg{color:#b42318}
.er-btn-small{padding:6px 10px;font-size:12px;line-height:1.2}
@media (max-width: 900px){.er-field-span-2{grid-column:span 1}}

.er-league-rules{margin-top:16px;padding:16px;border:1px solid #e7ece9;border-radius:16px;background:#fcfdfd}
.er-league-rules h4{margin:0 0 12px;font-size:18px;line-height:1.2}
.er-league-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.er-league-rule-card{border:1px solid #e7ece9;border-radius:14px;background:#fff;padding:14px}
.er-league-rule-title{font-weight:800;margin-bottom:8px}
.er-league-rule-card ul{margin:0;padding-left:18px}
.er-league-rule-card li+li{margin-top:6px}
@media (max-width: 900px){.er-league-rules-grid{grid-template-columns:1fr}}

.er-league-advice-card{margin:16px 0;padding:16px;border:1px solid #f0c36a;border-radius:16px;background:linear-gradient(180deg,#fff8e8 0%,#fffdf7 100%);box-shadow:0 8px 20px rgba(180,134,25,.08)}
.er-league-advice-title{font-size:18px;font-weight:900;margin-bottom:6px;color:#172033}
.er-league-advice-sub{font-size:13px;color:#5b687a;margin-bottom:10px;line-height:1.35}
.er-league-advice-list{margin:0 0 12px;padding-left:22px;line-height:1.45}
.er-league-advice-list li+li{margin-top:8px}
.er-league-advice-table-wrap{margin-top:10px}
.er-league-advice-table td:last-child{white-space:normal;line-height:1.35}


.er-shift-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;}
.er-shift-day{border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:10px;background:#fff;}
.er-shift-day.is-work{background:rgba(34,197,94,.10);}
.er-shift-day.is-off{background:rgba(148,163,184,.10);}
.er-shift-day-date{font-weight:800;font-size:13px;}
.er-shift-day-wd{font-size:12px;opacity:.75;margin-top:2px;}
.er-shift-day-state{margin-top:8px;font-weight:700;font-size:12px;}
.er-shift-day-note{margin-top:6px;font-size:11px;opacity:.8;}


.er-shift-week-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;}
.er-shift-week-title{font-size:18px;font-weight:800;line-height:1.2;}
.er-shift-week-actions{display:flex;gap:8px;flex-wrap:wrap;}
.er-shift-week-range{font-weight:700;margin-bottom:12px;}
.er-shift-week-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px;}
.er-shift-admin-toolbar{margin-bottom:4px;}
.er-shift-mini-week{display:flex;gap:6px;flex-wrap:wrap;}
.er-shift-mini-day{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid rgba(15,23,42,.08);}
.er-shift-mini-day.is-work{background:rgba(34,197,94,.10);}
.er-shift-mini-day.is-off{background:rgba(148,163,184,.10);}
@media (max-width: 900px){
  .er-shift-week-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 640px){
  .er-shift-week-grid{grid-template-columns:1fr;}
}


.er-shift-month-card{max-width:420px;border:1px solid rgba(15,23,42,.10);border-radius:16px;padding:16px 14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06);}
.er-shift-month-title{text-align:center;font-size:18px;font-weight:800;margin-bottom:12px;}
.er-shift-month-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:0;margin-bottom:4px;}
.er-shift-month-weekday{text-align:center;font-weight:700;color:rgba(15,23,42,.52);padding:6px 0;}
.er-shift-month-grid{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid rgba(15,23,42,.12);border-left:1px solid rgba(15,23,42,.12);}
.er-shift-month-cell{min-height:48px;position:relative;display:flex;align-items:flex-start;justify-content:flex-start;padding:6px 8px;border-right:1px solid rgba(15,23,42,.12);border-bottom:1px solid rgba(15,23,42,.12);background:#eef1f4;color:#35516b;font-weight:700;}
.er-shift-month-cell.is-work{background:#eef1f4;color:#35516b;}
.er-shift-month-cell.is-off{background:#ffffff;color:#35516b;}
.er-shift-month-cell.is-empty{background:#fff;min-height:48px;}
.er-shift-month-cell.is-today{outline:2px solid rgba(37,99,235,.30);outline-offset:-2px;z-index:1;}
.er-shift-month-cell.has-override{box-shadow:inset 0 0 0 2px rgba(245,158,11,.35);}
.er-shift-month-cell.is-gap-branch{background:#ffedd5 !important;color:#9a3412 !important;box-shadow:inset 0 0 0 2px rgba(249,115,22,.38) !important;}
.er-shift-month-cell.is-gap-branch .er-shift-month-note{color:rgba(154,52,18,.82) !important;}
.er-shift-month-daynum{font-size:14px;line-height:1;}
.er-shift-month-note{position:absolute;left:4px;right:4px;bottom:4px;font-size:9px;line-height:1.15;color:rgba(15,23,42,.6);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.er-shift-month-stats{padding-top:12px;text-align:center;font-size:16px;line-height:1.45;font-weight:500;}
.er-shift-month-stats strong{font-weight:800;}
@media (max-width: 640px){
  .er-shift-month-card{max-width:100%;padding:14px 10px;}
  .er-shift-month-cell{min-height:42px;padding:5px 6px;}
  .er-shift-month-note{display:none;}
}


.er-app[data-er-role="employee"] [data-er-shift-schedule-wrap="1"]{
  max-width: 1080px;
  margin: 0 auto;
}
.er-app[data-er-role="employee"] .er-card.er-block{
  padding: 18px 20px 22px;
}
.er-app[data-er-role="employee"] .er-card.er-block .er-block-head{
  margin-bottom: 18px;
  align-items: flex-start;
}
.er-app[data-er-role="employee"] .er-card.er-block .er-block-head h3{
  font-size: 17px;
}
.er-employee-shift-layout{
  display: grid;
  gap: 20px;
}
.er-employee-shift-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding: 16px 18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:linear-gradient(180deg,#ffffff 0%,rgba(248,250,252,.96) 100%);
}
.er-employee-shift-intro{
  display:grid;
  gap:6px;
  max-width: 560px;
}
.er-employee-shift-summary{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:#1d4ed8;
  font-size:13px;
  font-weight:800;
}
.er-employee-shift-actions{
  justify-content:flex-end;
}
.er-employee-shift-content{
  display:grid;
  grid-template-columns:minmax(320px, 430px) minmax(260px, 1fr);
  gap:20px;
  align-items:stretch;
}
.er-employee-shift-calendar{
  display:flex;
  justify-content:center;
}
.er-employee-shift-side{
  display:grid;
  gap:10px;
  align-content:start;
}
.er-employee-shift-panel{
  padding:16px 18px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.er-employee-shift-panel-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(15,23,42,.48);
  margin-bottom:4px;
}
.er-employee-shift-panel-value{
  font-size:22px;
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
  margin-bottom:4px;
}
.er-employee-shift-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.er-employee-shift-stat{
  padding:18px 16px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
  display:grid;
  gap:10px;
}
.er-employee-shift-stat.is-work{background:linear-gradient(180deg,rgba(239,246,255,.96) 0%,#fff 100%);}
.er-employee-shift-stat.is-off{background:linear-gradient(180deg,rgba(248,250,252,.96) 0%,#fff 100%);}
.er-employee-shift-stat-label{
  font-size:13px;
  font-weight:700;
  color:rgba(15,23,42,.62);
}
.er-employee-shift-stat strong{
  font-size:32px;
  line-height:1;
  font-weight:900;
  color:#0f172a;
}
.er-employee-shift-tip .er-hint{font-size:13px;line-height:1.5;}

.er-shift-month-card{
  width:100%;
  max-width:420px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:20px;
  padding:18px 16px 14px;
  background:#fff;
  box-shadow:0 16px 34px rgba(15,23,42,.07);
}
.er-shift-month-title{text-align:center;font-size:28px;font-weight:900;line-height:1.1;margin-bottom:14px;}
.er-shift-month-weekday{text-align:center;font-weight:800;color:rgba(15,23,42,.48);padding:8px 0;font-size:12px;}
.er-shift-month-cell{min-height:54px;position:relative;display:flex;align-items:flex-start;justify-content:flex-start;padding:7px 9px;border-right:1px solid rgba(15,23,42,.10);border-bottom:1px solid rgba(15,23,42,.10);background:#eef3f8;color:#27445f;font-weight:800;transition:transform .15s ease, box-shadow .15s ease;}
.er-shift-month-cell.is-work{background:#dff6e6;color:#166534;}
.er-shift-month-cell.is-off{background:#ffffff;color:#294762;}
.er-shift-month-cell.is-empty{background:#fff;min-height:54px;}
.er-shift-month-cell.is-today{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px;z-index:1;box-shadow:inset 0 0 0 1px rgba(37,99,235,.18);}
.er-shift-month-cell.has-override{box-shadow:inset 0 0 0 2px rgba(245,158,11,.35);}
.er-shift-month-daynum{font-size:15px;line-height:1;}
.er-shift-month-stats{padding-top:14px;text-align:center;font-size:17px;line-height:1.5;font-weight:600;display:grid;gap:2px;}
.er-shift-month-legend{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;padding-top:10px;font-size:12px;color:rgba(15,23,42,.62);font-weight:700;}
.er-shift-month-legend span{display:inline-flex;align-items:center;gap:7px;}
.er-shift-month-legend i{display:inline-block;width:12px;height:12px;border-radius:4px;border:1px solid rgba(15,23,42,.12);background:#fff;}
.er-shift-month-legend i.is-work{background:#dff6e6;}
.er-shift-month-legend i.is-off{background:#ffffff;}
.er-shift-month-legend i.is-today{background:rgba(37,99,235,.12);border-color:rgba(37,99,235,.35);}

@media (max-width: 980px){
  .er-employee-shift-head,
  .er-employee-shift-content{grid-template-columns:1fr;display:grid;}
  .er-employee-shift-actions{justify-content:flex-start;}
  .er-employee-shift-calendar{justify-content:flex-start;}
}
@media (max-width: 640px){
  .er-app[data-er-role="employee"] .er-card.er-block{padding:14px 12px 16px;}
  .er-employee-shift-head{padding:14px;}
  .er-employee-shift-stats{grid-template-columns:1fr;}
  .er-shift-month-card{max-width:100%;padding:14px 10px;}
  .er-shift-month-title{font-size:24px;}
  .er-shift-month-cell{min-height:44px;padding:5px 6px;}
  .er-shift-month-note{display:none;}
}


.er-shift-filter-card .er-grid{align-items:end;}
.er-shift-top-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.er-shift-employee-grid{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;}
.er-shift-emp-card{flex:0 0 520px;max-width:520px;width:100%;padding:16px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.05);display:grid;gap:14px;}
.er-shift-emp-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;}
.er-shift-emp-name{font-size:16px;font-weight:800;color:#0f172a;margin-bottom:4px;}
.er-shift-emp-actions{display:flex;gap:8px;flex-wrap:wrap;}
.er-shift-emp-calendar{display:flex;justify-content:center;align-items:flex-start;}
.er-shift-emp-calendar .er-shift-month-card{width:100%;max-width:420px;margin:0 auto;box-shadow:none;border-radius:16px;padding:14px 12px 12px;}
.er-shift-emp-calendar .er-shift-month-title{font-size:22px;margin-bottom:10px;}
.er-shift-emp-calendar .er-shift-month-cell{min-height:44px;padding:6px 7px;}
@media (max-width: 640px){
  .er-shift-top-actions{width:100%;}
  .er-shift-top-actions .er-btn{flex:1 1 auto;}
}


/* =========================================================
   2.5.61 — Mobile adaptive polish
   ========================================================= */
@media (max-width: 1280px){
  .er-main-inner{
    width: 100%;
    transform: none;
  }
}

@supports not (zoom: 1) {
  @media (max-width: 1280px){
    .er-main-inner{
      transform: none;
      width: 100%;
    }
  }
}

@media (max-width: 980px){
  .er-app{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 100dvh;
  }
  .er-sidebar,
  .er-sidebar-portal,
  .er-sidebar-placeholder{
    width: min(86vw, 320px);
    flex-basis: min(86vw, 320px);
  }
  .er-main-inner{
    padding: 12px;
  }
  .er-header,
  .er-topbar,
  .er-topbar-inner,
  .er-topbar-actions,
  .er-topbar-center,
  .er-header-actions{
    flex-wrap: wrap;
    align-items: stretch;
  }
  .er-topbar-actions,
  .er-header-actions,
  .er-top-search{
    width: 100%;
  }
  .er-top-search input,
  .er-top-search .er-control{
    width: 100%;
  }
  .er-card,
  .er-block,
  .er-panel,
  .er-modal-card,
  .er-shift-filter-card,
  .er-shift-emp-card,
  .er-employee-shift-panel,
  .er-employee-shift-stat{
    border-radius: 16px;
  }
  .er-grid,
  .er-form-grid,
  .er-fields-grid,
  .er-kpi-grid,
  .er-dashboard-grid,
  .er-summary-grid,
  .er-employee-shift-content,
  .er-employee-shift-stats,
  .er-shift-employee-grid,
  .er-salary-grid,
  .er-cards-grid{
    grid-template-columns: 1fr !important;
  }
  .er-card,
  .er-block,
  .er-panel{
    padding: 12px;
  }
  .er-btn,
  button.er-btn,
  a.er-btn,
  input.er-btn,
  .er-topbar-actions .er-btn,
  .er-header-actions .er-btn,
  .er-shift-top-actions .er-btn{
    min-height: 44px;
  }
  .er-employee-shift-calendar,
  .er-shift-emp-calendar{
    justify-content: center;
  }
}

@media (max-width: 767px){
  .er-main-inner{
    padding: 10px;
  }
  .er-header h2,
  .er-page-title,
  .er-employee-shift-title{
    font-size: 24px;
    line-height: 1.15;
  }
  .er-sub,
  .er-hint,
  .er-top-meta,
  .er-employee-shift-note,
  .er-employee-shift-panel-label{
    font-size: 12px;
  }
  .er-card,
  .er-block,
  .er-panel,
  .er-modal-card,
  .er-shift-emp-card,
  .er-shift-filter-card{
    padding: 12px 10px;
    margin: 10px 0;
  }
  .er-field label,
  .er-label{
    font-size: 12px;
    margin-bottom: 6px;
  }
  .er-field input,
  .er-field select,
  .er-field textarea,
  .er-control,
  .er-input,
  .er-select,
  .er-textarea{
    min-height: 44px;
    font-size: 16px;
  }
  .er-table-wrap{
    border-radius: 14px;
  }
  .er-table{
    min-width: 100%;
  }
  .er-shift-top-actions,
  .er-topbar-actions,
  .er-header-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .er-shift-top-actions .er-btn,
  .er-topbar-actions .er-btn,
  .er-header-actions .er-btn,
  .er-shift-emp-actions .er-btn{
    width: 100%;
    justify-content: center;
  }
  .er-employee-shift-head{
    gap: 12px;
  }
  .er-employee-shift-summary{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .er-shift-month-card,
  .er-shift-emp-calendar .er-shift-month-card{
    max-width: 100%;
    padding: 14px 10px 12px;
    border-radius: 18px;
  }
  .er-shift-month-title,
  .er-shift-emp-calendar .er-shift-month-title{
    font-size: 22px;
    margin-bottom: 10px;
  }
  .er-shift-month-weekday{
    padding: 6px 0;
    font-size: 11px;
  }
  .er-shift-month-cell,
  .er-shift-emp-calendar .er-shift-month-cell{
    min-height: 42px;
    padding: 6px 6px;
  }
  .er-shift-month-daynum{
    font-size: 14px;
  }
  .er-shift-month-stats{
    font-size: 15px;
    padding-top: 12px;
  }
  .er-shift-month-legend{
    gap: 10px;
    font-size: 11px;
  }
}

@media (max-width: 520px){
  .er-sidebar,
  .er-sidebar-portal,
  .er-sidebar-placeholder{
    width: calc(100vw - 28px);
    flex-basis: calc(100vw - 28px);
  }
  .er-main-inner{
    padding: 8px;
  }
  .er-header{
    gap: 8px;
    margin-bottom: 10px;
  }
  .er-header h2,
  .er-page-title,
  .er-employee-shift-title{
    font-size: 22px;
  }
  .er-card,
  .er-block,
  .er-panel,
  .er-modal-card,
  .er-shift-emp-card,
  .er-shift-filter-card,
  .er-employee-shift-panel,
  .er-employee-shift-stat{
    border-radius: 14px;
    padding: 10px 9px;
  }
  .er-field input,
  .er-field select,
  .er-field textarea,
  .er-control,
  .er-input,
  .er-select,
  .er-textarea,
  .er-btn,
  button.er-btn,
  a.er-btn{
    border-radius: 12px;
  }
  .er-shift-month-title,
  .er-shift-emp-calendar .er-shift-month-title{
    font-size: 20px;
  }
  .er-shift-month-cell,
  .er-shift-emp-calendar .er-shift-month-cell{
    min-height: 38px;
    padding: 5px 5px;
  }
  .er-shift-month-daynum{
    font-size: 13px;
  }
  .er-shift-month-stats{
    font-size: 14px;
  }
  .er-shift-month-legend{
    justify-content: flex-start;
  }
}


/* =========================================================
   2.5.62 — Mobile UX rebuild
   ========================================================= */
@media (max-width: 900px){
  .er-wrap{
    margin: 0 auto 28px;
    padding: 0 8px;
  }
  .er-app{
    border-radius: 0 !important;
    min-height: 100dvh;
    box-shadow: none;
  }
  .er-main{
    min-width: 0;
  }
  .er-main-inner{
    padding: 10px 10px 18px !important;
  }
  .er-card,
  .er-block,
  .er-panel,
  .er-modal,
  .er-drawer,
  .er-shift-emp-card,
  .er-shift-filter-card,
  .er-employee-shift-panel,
  .er-employee-shift-stat{
    border-radius: 16px !important;
  }
  .er-block-head,
  .er-header,
  .er-topbar-inner,
  .er-topbar-actions,
  .er-header-actions,
  .er-kpi-head,
  .er-record-head,
  .er-drawer-head,
  .er-modal-head,
  .er-shift-emp-card-head,
  .er-employee-shift-head{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .er-grid,
  .er-grid-2,
  .er-form .er-grid,
  .er-form .er-grid.er-grid-4,
  .er-dashboard,
  .er-cash-grid,
  .er-cards-grid,
  .er-drawer-body .er-grid,
  .er-public-datetime,
  .er-agent-client-grid,
  .er-wizard-grid,
  .er-booking-pick,
  .er-employee-shift-content,
  .er-employee-shift-stats{
    grid-template-columns: 1fr !important;
  }
  .er-actions,
  .er-actions-inline,
  .er-topbar-actions,
  .er-header-actions,
  .er-shift-top-actions,
  .er-shift-emp-actions{
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .er-actions .er-btn,
  .er-actions-inline .er-btn,
  .er-actions-inline .er-link,
  .er-topbar-actions .er-btn,
  .er-header-actions .er-btn,
  .er-shift-top-actions .er-btn,
  .er-shift-emp-actions .er-btn{
    width: 100%;
    justify-content: center;
  }
  .er-form-rows .er-row,
  .er-row,
  .er-kv,
  .er-record-meta,
  .er-public-head,
  .er-drawer-foot{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .er-form-rows .er-row-label{
    width: auto;
    min-width: 0;
  }
  .er-field,
  .er-form .er-field,
  .er-field-wide,
  .er-field-calendar{
    min-width: 0;
  }
  .er-field input,
  .er-field select,
  .er-field textarea,
  .er-control,
  .er-input,
  .er-select,
  .er-textarea,
  .er-btn,
  button.er-btn,
  a.er-btn,
  input.er-btn{
    min-height: 46px;
    font-size: 16px !important;
  }
  .er-table-wrap{
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .er-table,
  table.er-table{
    min-width: 100% !important;
    width: 100% !important;
    border: 0;
    background: transparent;
  }
  table.er-table thead,
  .er-table thead{
    display: none;
  }
  table.er-table tbody,
  .er-table tbody{
    display: block;
  }
  table.er-table tr,
  .er-table tbody tr{
    display: block;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
  }
  table.er-table td,
  .er-table tbody td{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 0;
    padding: 8px 0;
    border: 0 !important;
    border-bottom: 1px dashed rgba(15,23,42,.10) !important;
    white-space: normal !important;
    text-align: right;
    overflow: visible;
    text-overflow: initial;
  }
  table.er-table td:last-child,
  .er-table tbody td:last-child{
    border-bottom: 0 !important;
  }
  table.er-table td::before,
  .er-table tbody td::before{
    content: attr(data-label);
    flex: 0 0 42%;
    max-width: 42%;
    text-align: left;
    font-weight: 800;
    color: rgba(15,23,42,.70);
  }
  table.er-table td[data-label=""]::before,
  .er-table tbody td[data-label=""]::before{
    content: "";
  }
  .er-drawer-backdrop,
  .er-modal-backdrop{
    padding: 8px;
    align-items: stretch;
  }
  .er-drawer,
  .er-modal{
    width: 100% !important;
    max-height: none !important;
    min-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .er-drawer-body,
  .er-modal-body{
    overflow: auto;
    padding-right: 0;
  }
  .er-sidebar,
  .er-sidebar-portal,
  .er-sidebar-placeholder{
    width: min(88vw, 320px);
    flex-basis: min(88vw, 320px);
  }
  .er-nav-item{
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .er-employee-shift-calendar,
  .er-shift-emp-calendar{
    justify-content: center !important;
  }
}

@media (max-width: 560px){
  .er-wrap{
    padding: 0 6px;
  }
  .er-main-inner{
    padding: 8px 8px 16px !important;
  }
  .er-card,
  .er-block,
  .er-panel,
  .er-shift-emp-card,
  .er-shift-filter-card,
  .er-employee-shift-panel,
  .er-employee-shift-stat,
  table.er-table tr,
  .er-table tbody tr{
    padding: 10px;
    border-radius: 14px;
  }
  .er-header h2,
  .er-page-title,
  .er-employee-shift-title,
  .er-shift-emp-name{
    font-size: 20px !important;
    line-height: 1.15;
  }
  .er-sub,
  .er-hint,
  .er-employee-shift-panel-label,
  .er-employee-shift-stat-label{
    font-size: 12px !important;
  }
  table.er-table td,
  .er-table tbody td{
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 4px;
  }
  table.er-table td::before,
  .er-table tbody td::before{
    flex: none;
    max-width: 100%;
  }
  .er-shift-month-card,
  .er-shift-emp-calendar .er-shift-month-card{
    max-width: 100%;
    padding: 12px 8px 10px !important;
  }
  .er-shift-month-title,
  .er-shift-emp-calendar .er-shift-month-title{
    font-size: 18px !important;
    margin-bottom: 8px;
  }
  .er-shift-month-weekday{
    font-size: 10px !important;
    padding: 5px 0 !important;
  }
  .er-shift-month-cell,
  .er-shift-emp-calendar .er-shift-month-cell{
    min-height: 34px !important;
    padding: 4px !important;
  }
  .er-shift-month-daynum{
    font-size: 12px !important;
  }
  .er-shift-month-stats{
    font-size: 13px !important;
  }
  .er-shift-month-legend{
    gap: 8px;
    font-size: 10px !important;
  }
}


/* 2.5.64 — Shift bulk form polish */
.er-shift-bulk-card .er-block-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;}
.er-shift-bulk-card .er-block-head h3{margin-bottom:4px;}
.er-shift-bulk-form-grid{margin-bottom:14px;}
.er-shift-bulk-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.er-shift-group-field{display:flex;flex-direction:column;gap:8px;min-width:0;}
.er-shift-group-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;}
.er-shift-group-head label{margin:0;font-size:13px;}
.er-shift-group-foot{margin-top:6px;}
.er-shift-bulk-group{max-height:220px;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;align-content:start;background:linear-gradient(180deg,rgba(248,250,252,.98) 0%,rgba(255,255,255,.98) 100%);}
.er-shift-bulk-group .er-checklist-row{min-width:0;margin:0;padding:10px 12px;align-items:center;border:1px solid rgba(15,23,42,.08);background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.03);}
.er-shift-bulk-group .er-checklist-row span{display:block;min-width:0;overflow-wrap:anywhere;font-weight:700;color:#0f172a;line-height:1.3;}
.er-shift-bulk-group .er-checklist-row input{margin-top:0;flex:0 0 auto;}
.er-shift-bulk-actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap;}
@media (max-width: 980px){
  .er-shift-bulk-groups{grid-template-columns:1fr;}
}
@media (max-width: 700px){
  .er-shift-bulk-group{grid-template-columns:1fr;max-height:240px;}
  .er-shift-group-head{align-items:flex-start;}
  .er-shift-bulk-actions .er-btn{width:100%;}
}

/* 2.5.65 — hard mobile layout fix */
@media (max-width: 900px){
  html, body{
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .er-app{
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: hidden !important;
  }

  .er-sidebar-placeholder{
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
  }

  .er-main,
  .er-content,
  .er-page,
  .er-wrap,
  .er-root{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .er-main{
    display: block !important;
  }

  .er-main-inner{
    transform: none !important;
    transform-origin: top left !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  @supports not (zoom: 1){
    .er-main-inner{
      transform: none !important;
      width: 100% !important;
    }
  }

  .er-topbar,
  .er-header,
  .er-card,
  .er-block,
  .er-panel,
  .er-kpi,
  .er-record,
  .er-shift-bulk-card,
  .er-shift-filter-card,
  .er-shift-emp-card,
  .er-employee-shift-panel,
  .er-employee-shift-stat,
  .er-salary-card,
  .er-table-wrap,
  .er-form,
  .er-modal,
  .er-drawer{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .er-topbar{
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .er-topbar-left,
  .er-topbar-center,
  .er-topbar-actions,
  .er-header-actions{
    min-width: 0 !important;
  }

  .er-sidebar,
  .er-sidebar-portal{
    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
  }

  .er-sidebar{
    padding-bottom: 24px !important;
  }

  .er-nav-item,
  .er-nav-logout{
    min-height: 50px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .er-grid,
  .er-row-grid,
  .er-shift-bulk-form-grid,
  .er-shift-bulk-groups,
  .er-employee-shift-shell,
  .er-dashboard-grid,
  .er-summary-grid,
  .er-kpi-grid{
    grid-template-columns: 1fr !important;
    display: grid !important;
    width: 100% !important;
  }

  table.er-table,
  .er-table{
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .er-shift-month-card,
  .er-shift-emp-calendar .er-shift-month-card,
  .er-employee-shift-calendar .er-shift-month-card{
    width: min(100%, 340px) !important;
    max-width: min(100%, 340px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .er-shift-bulk-group{
    max-height: 260px !important;
  }
}

@media (max-width: 560px){
  .er-main-inner{
    padding: 10px !important;
  }

  .er-topbar{
    flex-wrap: nowrap !important;
  }

  .er-topbar-actions{
    gap: 8px !important;
  }

  .er-sidebar,
  .er-sidebar-portal{
    width: min(88vw, 300px) !important;
    max-width: min(88vw, 300px) !important;
  }

  .er-card,
  .er-block,
  .er-panel,
  .er-shift-bulk-card,
  .er-shift-filter-card,
  .er-shift-emp-card,
  .er-employee-shift-panel,
  .er-employee-shift-stat{
    padding: 12px !important;
  }
}


/* 2.5.66 — mobile sidebar viewport fix */
@media (max-width: 900px){
  html.er-mobile-sidebar-lock,
  body.er-mobile-sidebar-lock{
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .er-sidebar-portal{
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: min(88vw, 320px) !important;
    max-width: min(88vw, 320px) !important;
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 2147483647 !important;
    pointer-events: none;
  }

  .er-sidebar-portal .er-sidebar{
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.er-mobile-menu-open .er-sidebar-portal{
    transform: translateX(0) !important;
    pointer-events: auto;
  }

  body.er-mobile-menu-open .er-mobile-backdrop{
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .er-sidebar-open{
    position: fixed !important;
    left: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2147483000 !important;
  }
}


/* 2.5.68 — true mobile off-canvas sidebar */
@media (max-width: 900px){
  .er-sidebar-placeholder{
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
  }

  body .er-sidebar-portal{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 2147483646 !important;
    transform: translate3d(-110%, 0, 0) !important;
    transition: transform .24s ease !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.er-mobile-menu-open .er-sidebar-portal{
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  body .er-sidebar-portal .er-sidebar{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body .er-mobile-backdrop{
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483645 !important;
  }
}


/* 2.5.69 — Mobile sidebar final fix */
@media (max-width: 980px){
  .er-sidebar-placeholder{ display:none !important; width:0 !important; flex:0 0 0 !important; }
  .er-app{ display:block; }
  .er-main{ width:100% !important; min-width:0 !important; margin-left:0 !important; }
  .er-sidebar-portal{
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(88vw, 320px) !important;
    height: 100dvh !important;
    z-index: 100001 !important;
    pointer-events: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .er-sidebar-portal .er-sidebar,
  .er-sidebar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(88vw, 320px) !important;
    max-width: 320px !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(-104%,0,0) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
    box-shadow: none !important;
    z-index: 100002 !important;
  }
  body.er-mobile-menu-open .er-sidebar-portal{ pointer-events: auto !important; }
  body.er-mobile-menu-open .er-sidebar-portal .er-sidebar,
  body.er-mobile-menu-open .er-sidebar{ 
    transform: translate3d(0,0,0) !important;
    box-shadow: 0 20px 60px rgba(15,23,42,.28) !important;
  }
  .er-mobile-backdrop{
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .2s ease !important;
  }
  body.er-mobile-menu-open .er-mobile-backdrop{
    display:block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .er-sidebar-open{
    position: fixed !important;
    left: 18px !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    z-index: 100003 !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.18) !important;
  }
}


/* Mobile tables readability */
@media (max-width: 700px){
  .er-mini-table{
    display:block;
    width:100%;
  }
  .er-mini-table tbody,
  .er-mini-table tr{
    display:block;
    width:100%;
  }
  .er-mini-table tr{
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(2,6,23,.06);
    margin-bottom: 12px;
  }
  .er-mini-table td{
    display:block;
    width:100%;
    border-bottom: 0;
    padding: 0;
  }
  .er-mini-table td:first-child{
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    color: rgba(15,23,42,.88);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(15,23,42,.10);
  }
  .er-mini-table td:last-child{
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
    color: rgba(15,23,42,.96);
  }
  .er-mini-table .er-num{
    text-align: left;
  }

  .er-table-wrap{
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .er-table{
    min-width: 720px;
    font-size: 12px;
  }
  .er-table th,
  .er-table td{
    padding: 10px 8px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
  }
  .er-table thead th{
    position: static;
  }
  .er-table th:first-child,
  .er-table td:first-child,
  .er-table th.er-col-actions,
  .er-table td.er-col-actions{
    position: static;
    box-shadow: none;
  }
}

@media (max-width: 420px){
  .er-mini-table tr{
    padding: 12px;
    border-radius: 16px;
  }
  .er-mini-table td:first-child{
    font-size: 13px;
  }
  .er-mini-table td:last-child{
    font-size: 16px;
  }
}


/* 2.5.79 — strong confirm actions + completed status */
.er-status-complete-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 14px;
  border-radius:999px;
  background:linear-gradient(180deg,#22c55e 0%,#16a34a 100%);
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:.05em;
  text-transform:uppercase;
  box-shadow:0 10px 22px rgba(22,163,74,.22);
  border:1px solid rgba(21,128,61,.34);
  white-space:nowrap;
}
.er-link-confirm{
  border-color: rgba(249,115,22,.34);
  background: linear-gradient(180deg, rgba(251,146,60,.18) 0%, rgba(249,115,22,.24) 100%);
  color: #c2410c;
  box-shadow: 0 10px 22px rgba(249,115,22,.18);
}
.er-link-confirm:hover{ background: linear-gradient(180deg, rgba(251,146,60,.24) 0%, rgba(249,115,22,.30) 100%); }
.er-btn-confirm{
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 12px 28px rgba(249,115,22,.28);
}
.er-btn-confirm:hover{
  box-shadow: 0 16px 34px rgba(249,115,22,.34);
}
.er-pulse{
  animation: erPulseGlow 1.25s ease-in-out infinite;
}
@keyframes erPulseGlow{
  0%{ transform: scale(1); filter: brightness(1); }
  50%{ transform: scale(1.04); filter: brightness(1.08); }
  100%{ transform: scale(1); filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce){
  .er-pulse{ animation: none !important; }
}


/* 2.5.83 — confirm modal for missing fields */
.er-confirm-missing-card{
  border: 1px solid rgba(148,163,184,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.er-confirm-missing-note{
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}
.er-confirm-missing-form .er-row{
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 14px;
  background: #fff;
}
.er-confirm-missing-form .er-row.er-empty{
  border-color: rgba(249,115,22,.45);
  box-shadow: 0 0 0 4px rgba(249,115,22,.08);
}
.er-confirm-missing-form .er-actions{
  justify-content: flex-end;
}


/* 2.5.85 — confirm modal agent suggest */
.er-confirm-agent-card{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(248,250,252,.98) 0%, rgba(241,245,249,.94) 100%);
}
.er-confirm-agent-card.is-found{
  border-color:rgba(34,197,94,.28);
  background:linear-gradient(180deg, rgba(240,253,244,.98) 0%, rgba(220,252,231,.92) 100%);
}
.er-confirm-agent-card.is-missing{
  border-color:rgba(251,146,60,.30);
  background:linear-gradient(180deg, rgba(255,247,237,.98) 0%, rgba(255,237,213,.92) 100%);
}
.er-confirm-agent-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#475569;
  margin-bottom:4px;
}
.er-confirm-agent-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px 14px;
}
.er-confirm-agent-grid span{
  display:block;
  font-size:11px;
  color:#64748b;
  margin-bottom:3px;
}
.er-confirm-agent-grid b{
  display:block;
  font-size:13px;
  color:#0f172a;
  word-break:break-word;
}
@media (max-width: 640px){
  .er-confirm-agent-grid{ grid-template-columns:1fr; }
}

.er-status-sub{margin-top:4px;font-size:11px;line-height:1.2;color:#6b7280;white-space:normal;}

/* Expert create record: compact top controls and comment-only secondary block */
.er-record-create-form{
  display:grid;
  gap:12px;
}
.er-record-create-topline{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  gap:12px;
}
.er-record-create-topline-fields{
  display:grid;
  grid-template-columns: 180px minmax(280px, 360px);
  gap:12px;
  width:min(100%, 560px);
}
.er-record-create-form .er-field.er-field-compact label{
  font-size:12px;
}
.er-record-create-form .er-field.er-field-compact input,
.er-record-create-form .er-field.er-field-compact select{
  min-height:38px;
}
.er-record-comment-card .er-field{
  margin:0;
}
@media (max-width: 980px){
  .er-record-create-topline-fields{
    grid-template-columns: 1fr;
    width:100%;
  }
}


/* 2.6.08 — confirm modal grid + explicit dk4 field */
.er-confirm-missing-form .er-rows{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.er-confirm-missing-form .er-row{
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:12px 14px;
}
.er-confirm-missing-form .er-row-label{
  width:auto;
  min-width:0;
  font-size:13px;
  font-weight:800;
  color:#334155;
}
.er-confirm-missing-form .er-row-control{
  width:100%;
}
.er-confirm-missing-form .er-row-control input,
.er-confirm-missing-form .er-row-control select,
.er-confirm-missing-form .er-row-control textarea{
  width:100% !important;
}
.er-confirm-missing-form .er-row-agent-code,
.er-confirm-missing-form .er-row-full{
  grid-column:1 / -1;
}
.er-confirm-missing-form .er-row-compact{
  min-height:unset;
}
.er-confirm-missing-form .er-row [name="dk_last4"]{
  max-width:180px;
  text-align:center;
  letter-spacing:.16em;
  font-weight:800;
}
.er-confirm-missing-form .er-confirm-field-hint{
  margin-top:6px;
}
.er-confirm-missing-form .er-actions{
  justify-content:flex-end;
  gap:10px;
}
@media (max-width: 900px){
  .er-confirm-missing-form .er-rows{
    grid-template-columns:1fr;
  }
  .er-confirm-missing-form .er-row-agent-code,
  .er-confirm-missing-form .er-row-full{
    grid-column:auto;
  }
  .er-confirm-missing-form .er-row [name="dk_last4"]{
    max-width:100%;
    text-align:left;
    letter-spacing:.08em;
  }
}


/* 2.6.09 — confirm modal polish */
.er-modal-backdrop[data-er-modal="actions"] .er-modal{
  width:min(1120px, calc(100vw - 32px));
}
.er-confirm-missing-card{
  border-radius:14px;
  padding:16px 18px;
}
.er-confirm-missing-form .er-card-title{
  font-size:15px;
  line-height:1.2;
  margin-bottom:4px;
}
.er-confirm-missing-note{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(59,130,246,.08);
  color:#37517e;
  font-size:12px;
  line-height:1.35;
  margin:0 0 16px;
}
.er-confirm-missing-form .er-rows{
  gap:10px;
  align-items:start;
}
.er-confirm-missing-form .er-row{
  padding:10px 12px;
  border-radius:16px;
  border-color:rgba(203,213,225,.95);
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.er-confirm-missing-form .er-row:hover{
  border-color:rgba(148,163,184,.7);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.er-confirm-missing-form .er-row-required{
  background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,.96) 100%);
}
.er-confirm-missing-form .er-row-optional{
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(250,250,250,.94) 100%);
}
.er-confirm-missing-form .er-row-label{
  font-size:12px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#475569;
}
.er-confirm-missing-form .er-row-control input,
.er-confirm-missing-form .er-row-control select,
.er-confirm-missing-form .er-row-control textarea{
  height:44px !important;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.36);
  background:#fff;
  box-shadow:none;
}
.er-confirm-missing-form .er-row-control textarea{
  min-height:96px;
  height:auto !important;
}
.er-confirm-missing-form .er-row-control input:focus,
.er-confirm-missing-form .er-row-control select:focus,
.er-confirm-missing-form .er-row-control textarea:focus{
  border-color:rgba(37,99,235,.55);
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.er-confirm-missing-form .er-row-agent-code{
  padding-bottom:16px;
}
.er-confirm-agent-card{
  margin-top:10px;
  border-radius:14px;
  padding:10px 12px;
}
.er-confirm-agent-title{
  margin-bottom:10px;
}
.er-confirm-missing-form .er-row-dk4{
  background:linear-gradient(180deg, rgba(239,246,255,.95) 0%, rgba(255,255,255,1) 100%);
  border-color:rgba(96,165,250,.45);
}
.er-confirm-missing-form .er-row-dk4 .er-row-label{
  color:#1d4ed8;
}
.er-confirm-missing-form .er-row [name="dk_last4"]{
  max-width:100%;
  width:100% !important;
  height:52px !important;
  font-size:15px;
  line-height:1;
  text-align:center;
  letter-spacing:.28em;
  font-weight:900;
  padding:0 14px;
}
.er-confirm-missing-form .er-row-dk4 .er-confirm-field-hint{
  color:#1e40af;
}
.er-confirm-missing-form .er-confirm-field-hint{
  margin-top:8px;
  font-size:11px;
  line-height:1.35;
  color:#64748b;
}
.er-confirm-missing-form .er-confirm-field-hint-required{
  color:#b45309;
  font-weight:700;
}
.er-confirm-missing-form .er-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  margin-top:18px;
  padding:14px 18px 6px;
  border-top:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.96) 100%);
}
.er-confirm-missing-form .er-actions .er-btn{
  min-height:44px;
  padding:0 20px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.er-confirm-missing-form .er-actions .er-btn-ghost{
  min-width:96px;
}
.er-confirm-missing-form .er-actions .er-btn-confirm{
  min-width:140px;
  box-shadow:0 8px 18px rgba(249,115,22,.18);
}
@media (max-width: 900px){
  .er-modal-backdrop[data-er-modal="actions"] .er-modal{
    width:calc(100vw - 16px);
  }
  .er-confirm-missing-card{
    padding:12px;
    border-radius:16px;
  }
  .er-confirm-missing-note{
    display:flex;
    border-radius:12px;
    margin-bottom:12px;
  }
  .er-confirm-missing-form .er-rows{
    gap:10px;
  }
  .er-confirm-missing-form .er-row{
    padding:12px;
    border-radius:14px;
  }
  .er-confirm-missing-form .er-row [name="dk_last4"]{
    height:48px !important;
    font-size:22px;
    letter-spacing:.18em;
  }
  .er-confirm-missing-form .er-actions{
    padding:12px 12px 4px;
    gap:10px;
    flex-wrap:wrap;
  }
  .er-confirm-missing-form .er-actions .er-btn{
    flex:1 1 160px;
  }
}


/* 2.6.31 — confirm modal declutter */
.er-confirm-missing-form .er-rows{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.er-confirm-missing-form .er-row-top{
  min-height: 0;
}
.er-confirm-missing-form .er-row-top .er-row-control input,
.er-confirm-missing-form .er-row-top .er-row-control select{
  height: 42px !important;
}
.er-confirm-missing-form .er-row-agent-summary{
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,1) 100%);
  border-color: rgba(203,213,225,.9);
  box-shadow: none;
}
.er-confirm-missing-form .er-row-agent-summary .er-row-label{
  margin-bottom: 2px;
}
.er-confirm-agent-card-inline{
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248,250,252,.9);
}
.er-confirm-agent-inline-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px 14px;
}
.er-confirm-agent-inline-item{
  min-width: 0;
}
.er-confirm-agent-inline-item span{
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  color: #64748b;
}
.er-confirm-agent-inline-item b{
  display: block;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.er-confirm-missing-form .er-row[data-er-name="note"]{
  grid-column: 1 / -1;
}
.er-confirm-missing-form .er-row-control input,
.er-confirm-missing-form .er-row-control select,
.er-confirm-missing-form .er-row-control textarea{
  background: #ffffff;
  border-color: rgba(100,116,139,.42);
}
.er-confirm-missing-form .er-row-control input::placeholder,
.er-confirm-missing-form .er-row-control textarea::placeholder{
  color: #94a3b8;
}
@media (max-width: 1100px){
  .er-confirm-agent-inline-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 900px){
  .er-confirm-missing-form .er-rows{
    grid-template-columns: 1fr 1fr;
  }
  .er-confirm-missing-form .er-row-agent-summary,
  .er-confirm-missing-form .er-row[data-er-name="note"]{
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px){
  .er-confirm-missing-form .er-rows,
  .er-confirm-agent-inline-grid{
    grid-template-columns: 1fr;
  }
}

/* 2.7.09 — compact bank-style agent wallet */
.er-agent-wallet-bank{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.er-agent-wallet-toolbar,
.er-agent-wallet-list{
  display:flex;
  flex-direction:column;
}
.er-agent-wallet-toolbar{
  gap:8px;
  padding:12px 14px;
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(16,24,40,.05);
}
.er-agent-wallet-toolbar__left,
.er-agent-wallet-toolbar__right{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.er-agent-wallet-toolbar__title{
  font-size:16px;
  line-height:1.2;
  font-weight:800;
  color:#101828;
}
.er-agent-wallet-toolbar__hint,
.er-agent-wallet-toolbar__label{
  font-size:12px;
  color:#667085;
}
.er-agent-wallet-toolbar__select{
  min-width:260px;
  max-width:460px;
}
.er-agent-wallet-list{
  gap:10px;
}
.er-agent-wallet-card,
.er-agent-wallet-summary-card,
.er-agent-account-panel,
.er-agent-account-hero{
  background:#fff;
  border:1px solid #e7ebf3;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(16,24,40,.05);
}
.er-agent-wallet-card{
  padding:10px 12px;
}
.er-agent-wallet-card__top,
.er-agent-wallet-card__actions,
.er-agent-account-hero,
.er-agent-transaction-item__top,
.er-agent-transaction-item__bottom,
.er-agent-branch-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.er-agent-wallet-card__title-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.er-agent-wallet-card__title,
.er-agent-account-hero__title{
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  color:#101828;
}
.er-agent-wallet-card__subtitle,
.er-agent-account-hero__subtitle,
.er-agent-wallet-card__hint,
.er-agent-account-panel__head p,
.er-agent-account-hero__eyebrow,
.er-agent-transaction-item__meta,
.er-agent-wallet-empty,
.er-agent-branch-item__meta,
.er-agent-branch-item__debt-label,
.er-agent-account-kpi__label,
.er-agent-wallet-stat__label,
.er-agent-wallet-card__debt-label{
  color:#667085;
}
.er-agent-wallet-card__badge{
  padding:4px 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:#344054;
  font-size:11px;
  font-weight:700;
}
.er-agent-wallet-card__debt,
.er-agent-account-hero__amount strong{
  min-width:140px;
  text-align:right;
}
.er-agent-wallet-card__debt-label{
  font-size:12px;
  margin-bottom:2px;
}
.er-agent-wallet-card__debt-value,
.er-agent-account-hero__amount strong{
  font-size:22px;
  line-height:1.1;
  font-weight:800;
  color:#101828;
  display:block;
}
.er-agent-wallet-card__stats,
.er-agent-wallet-summary-card__grid,
.er-agent-account-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.er-agent-wallet-summary-card__grid,
.er-agent-account-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.er-agent-wallet-stat,
.er-agent-account-kpi{
  background:#f8fafc;
  border:1px solid #eef2f6;
  border-radius:14px;
  padding:10px 12px;
}
.er-agent-account-kpi--accent{
  background:#eef4ff;
  border-color:#dbe7ff;
}
.er-agent-wallet-stat__label,
.er-agent-account-kpi__label{
  display:block;
  font-size:12px;
  margin-bottom:4px;
}
.er-agent-wallet-stat__value,
.er-agent-account-kpi__value{
  font-size:16px;
  line-height:1.2;
  font-weight:800;
  color:#101828;
}
.er-agent-wallet-card__actions{
  margin-top:12px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}
.er-agent-wallet-card__hint{
  margin-top:8px;
  font-size:12px;
}
.er-agent-wallet-details-row{
  margin-top:-4px;
}
.er-wallet-agent-details{
  padding:4px 4px 0;
}
.er-agent-wallet-summary-card{
  padding:10px 12px;
}
.er-agent-wallet-summary-card__title{
  font-size:15px;
  font-weight:800;
  color:#101828;
  margin-bottom:10px;
}
.er-agent-account-shell{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.er-agent-account-hero{
  padding:16px;
}
.er-agent-account-hero__eyebrow{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
  margin-bottom:4px;
}
.er-agent-account-hero__amount{
  min-width:170px;
  text-align:right;
  color:#667085;
  font-size:12px;
}
.er-agent-account-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:12px;
}
.er-agent-account-panel{
  padding:16px;
}
.er-agent-account-panel--primary{
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
}
.er-agent-account-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.er-agent-account-panel__head h3{
  margin:0;
  font-size:16px;
  line-height:1.2;
  color:#101828;
}
.er-agent-account-panel__head p{
  margin:6px 0 0;
  font-size:12px;
  line-height:1.4;
}
.er-agent-account-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.er-agent-account-form__field{
  margin:0 !important;
}
.er-agent-account-form__field--note{
  grid-column:1 / -1;
}
.er-agent-account-form input,
.er-agent-account-form select{
  min-height:48px;
  border-radius:14px;
  border:1px solid #d7deea;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(16,24,40,.04);
}
.er-agent-account-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.er-agent-branches-list,
.er-agent-transactions-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.er-agent-branch-item,
.er-agent-transaction-item{
  border:1px solid #edf1f6;
  border-radius:14px;
  padding:16px;
  background:#fafcff;
}
.er-agent-branch-item__main,
.er-agent-branch-item__side{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.er-agent-branch-item__title,
.er-agent-transaction-item__title{
  font-size:16px;
  font-weight:800;
  color:#101828;
}
.er-agent-branch-item__meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:13px;
}
.er-agent-branch-item__side{
  align-items:flex-end;
  min-width:190px;
}
.er-agent-branch-item__debt{
  font-size:22px;
  font-weight:800;
  color:#101828;
}
.er-agent-account-panel--history{
  padding-top:18px;
}
.er-agent-transaction-item__right{
  min-width:140px;
  text-align:right;
}
.er-agent-transaction-item__amount{
  font-size:22px;
  font-weight:800;
  color:#101828;
}
.er-agent-transaction-item__status{
  margin-top:4px;
  color:#475467;
  font-size:13px;
  font-weight:700;
}
.er-agent-transaction-item__bottom{
  margin-top:14px;
  align-items:flex-end;
}
.er-agent-transaction-item__text{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:#475467;
}
.er-agent-transaction-item__text span{
  color:#667085;
}
.er-agent-wallet-empty{
  padding:18px;
  border:1px dashed #d7deea;
  border-radius:14px;
  background:#fbfcfe;
}
[data-er-action="agent_wallet_reverse"]{
  border-color:#f0d5dd !important;
  color:#b42318 !important;
}
@media (max-width: 1100px){
  .er-agent-wallet-card__stats,
  .er-agent-wallet-summary-card__grid,
  .er-agent-account-kpis,
  .er-agent-account-form,
  .er-agent-account-grid{
    grid-template-columns:1fr 1fr;
  }
  .er-agent-account-form__field--note{
    grid-column:auto;
  }
}
@media (max-width: 760px){
  .er-agent-wallet-card,
  .er-agent-wallet-summary-card,
  .er-agent-account-panel,
  .er-agent-account-hero{
    border-radius:14px;
    padding:16px;
  }
  .er-agent-wallet-card__top,
  .er-agent-wallet-card__actions,
  .er-agent-account-hero,
  .er-agent-transaction-item__top,
  .er-agent-transaction-item__bottom,
  .er-agent-branch-item{
    flex-direction:column;
    align-items:stretch;
  }
  .er-agent-wallet-card__debt,
  .er-agent-account-hero__amount,
  .er-agent-branch-item__side,
  .er-agent-transaction-item__right{
    min-width:0;
    text-align:left;
    align-items:flex-start;
  }
  .er-agent-wallet-card__stats,
  .er-agent-wallet-summary-card__grid,
  .er-agent-account-kpis,
  .er-agent-account-form,
  .er-agent-account-grid{
    grid-template-columns:1fr;
  }
}


.er-agent-wallet-card[style*="display: none"] + .er-agent-wallet-details-row{
  display:none !important;
}
@media (min-width: 900px){
  .er-agent-wallet-toolbar{
    flex-direction:row;
    align-items:end;
    justify-content:space-between;
  }
}


/* 2.7.10 — manager wallet history cleanup */
.er-wallet-history-table th:nth-child(1),
.er-wallet-history-table td:nth-child(1),
.er-wallet-history-table th:nth-child(3),
.er-wallet-history-table td:nth-child(3),
.er-wallet-history-table th:nth-child(4),
.er-wallet-history-table td:nth-child(4),
.er-wallet-history-table th:nth-child(6),
.er-wallet-history-table td:nth-child(6){
  white-space: nowrap;
}
.er-wallet-history-table td{
  vertical-align: top;
}
.er-wallet-history-main{
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,.95);
  line-height: 1.35;
}
.er-wallet-history-sub{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(15,23,42,.58);
  line-height: 1.35;
}
.er-wallet-history-amount b{
  font-size: 13px;
}
.er-wallet-history-comment{
  min-width: 180px;
  max-width: 320px;
  color: rgba(15,23,42,.88);
  line-height: 1.4;
}
.er-wallet-history-action{
  text-align: right;
}
@media (max-width: 1200px){
  .er-wallet-history-comment{ min-width: 160px; max-width: 260px; }
}


/* 2.7.12 — faster compact agent wallet */
.er-agent-wallet-toolbar__right{
  flex-wrap:wrap;
  align-items:flex-end;
  gap:8px;
}
.er-agent-wallet-toolbar__group{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.er-agent-wallet-toolbar__search,
.er-agent-wallet-toolbar__select{
  min-height:38px;
  padding:8px 10px;
  border:1px solid #d7deea;
  border-radius:12px;
  background:#fff;
}
.er-agent-wallet-toolbar__search{
  min-width:240px;
  max-width:340px;
}
.er-agent-wallet-toolbar__select{
  min-width:220px;
  max-width:320px;
}
.er-agent-wallet-card,
.er-agent-wallet-summary-card{
  padding:8px 10px;
  border-radius:14px;
}
.er-agent-wallet-card__title,
.er-agent-wallet-summary-card__title{
  font-size:14px;
}
.er-agent-wallet-card__subtitle,
.er-agent-wallet-card__hint,
.er-agent-wallet-stat__label,
.er-agent-wallet-card__debt-label,
.er-agent-wallet-toolbar__hint,
.er-agent-wallet-toolbar__label{
  font-size:11px;
}
.er-agent-wallet-card__debt-value{
  font-size:18px;
}
.er-agent-wallet-card__stats,
.er-agent-wallet-summary-card__grid{
  gap:8px;
  margin-top:8px;
}
.er-agent-wallet-stat{
  padding:8px 10px;
  border-radius:12px;
}
.er-agent-wallet-stat__value{
  font-size:14px;
}
.er-agent-wallet-card__actions{
  margin-top:8px;
  gap:8px;
  align-items:flex-end;
}
.er-agent-wallet-card__quick{
  display:flex;
  align-items:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.er-agent-wallet-card__quick-label{
  display:block;
  width:100%;
  font-size:11px;
  color:#667085;
}
.er-agent-wallet-card__quick-input{
  width:128px;
  min-height:36px;
  padding:7px 10px;
  border:1px solid #d7deea;
  border-radius:11px;
  background:#fff;
}
.er-agent-wallet-card__actions-right{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.er-agent-wallet-card .er-btn,
.er-agent-wallet-toolbar .er-btn,
.er-agent-account-shell .er-btn{
  min-height:36px;
  padding:8px 12px;
  border-radius:11px;
  font-size:12px;
}
.er-agent-wallet-empty[data-er-agent-wallet-search-empty="1"]{
  margin-bottom:8px;
}
@media (min-width: 900px){
  .er-agent-wallet-toolbar__right{
    flex-direction:row;
    justify-content:flex-end;
  }
}
@media (max-width: 760px){
  .er-agent-wallet-card__quick,
  .er-agent-wallet-card__actions-right,
  .er-agent-wallet-toolbar__right{
    width:100%;
  }
  .er-agent-wallet-toolbar__search,
  .er-agent-wallet-toolbar__select,
  .er-agent-wallet-card__quick-input{
    width:100%;
    max-width:none;
  }
}


.er-cash-quick-head{min-width:220px;}
.er-cash-quick-cell{width:240px;}
.er-cash-quick-expense{display:flex;align-items:center;gap:8px;justify-content:flex-end;}
.er-cash-quick-expense input[data-er-cash-quick-amount="1"]{width:92px;min-width:92px;padding:8px 10px;border:1px solid rgba(148,163,184,.4);border-radius:10px;background:#fff;}
.er-cash-quick-expense .er-btn{white-space:nowrap;}
@media (max-width: 900px){
  .er-cash-quick-cell{width:auto;}
  .er-cash-quick-expense{justify-content:flex-start;flex-wrap:wrap;}
}

/* 2.7.18 — admin wallet quick transfer polish */
.er-admin-wallet-block{
  overflow:hidden;
}
.er-admin-wallet-head{
  margin-bottom:14px;
}
.er-admin-wallet-quick{
  margin:0 0 14px;
  padding:16px 16px 14px;
  border:1px solid rgba(69,104,220,.14);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%, #f7faff 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.er-admin-wallet-quick__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.er-admin-wallet-quick__eyebrow{
  display:inline-block;
  margin-bottom:6px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:#1d4ed8;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.er-admin-wallet-quick h3{
  margin:0 0 4px;
  font-size:18px;
  line-height:1.25;
}
.er-admin-wallet-form__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px 12px;
}
.er-admin-wallet-form .er-field{
  margin:0;
}
.er-admin-wallet-form .er-field-wide{
  grid-column:span 2;
}
.er-admin-wallet-form input,
.er-admin-wallet-form select,
.er-admin-wallet-form textarea{
  border-radius:12px;
}
.er-admin-wallet-form textarea{
  min-height:84px;
}
.er-admin-wallet-form__actions{
  margin-top:12px;
}
.er-admin-wallet-form__actions .er-btn{
  min-height:40px;
  padding:10px 16px;
  border-radius:12px;
}
.er-admin-wallet-kpis{
  margin-top:2px;
}
.er-admin-wallet-summary{
  border:1px solid rgba(15,23,42,.06);
  border-radius:16px;
  overflow:hidden;
}
.er-admin-wallet-history{
  margin-top:16px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.er-admin-wallet-history summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  font-weight:700;
  color:#0f172a;
}
.er-admin-wallet-history summary::-webkit-details-marker{
  display:none;
}
.er-admin-wallet-history summary small{
  font-size:12px;
  font-weight:600;
  color:rgba(15,23,42,.56);
}
.er-admin-wallet-history[open] summary{
  border-bottom:1px solid rgba(15,23,42,.08);
  background:#fafcff;
}
.er-admin-wallet-history__body{
  padding:12px 14px 14px;
}
@media (max-width: 1200px){
  .er-admin-wallet-form__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 720px){
  .er-admin-wallet-quick{
    padding:14px 12px 12px;
    border-radius:16px;
  }
  .er-admin-wallet-quick h3{
    font-size:16px;
  }
  .er-admin-wallet-form__grid{
    grid-template-columns:1fr;
  }
  .er-admin-wallet-form .er-field-wide{
    grid-column:span 1;
  }
  .er-admin-wallet-history summary{
    padding:12px 14px;
  }
  .er-admin-wallet-history__body{
    padding:10px 10px 12px;
  }
}

/* 2.7.19 — admin manager wallet top layout */
.er-manager-wallet-page{
  overflow:hidden;
}
.er-manager-wallet-topgrid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(340px,.95fr);
  gap:16px;
  align-items:start;
}
.er-manager-wallet-summary-card{
  min-width:0;
}
.er-admin-wallet-quick--manager-page{
  margin:0;
  position:sticky;
  top:12px;
}
.er-admin-wallet-quick--manager-page .er-admin-wallet-form__grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.er-admin-wallet-quick--manager-page .er-admin-wallet-form .er-field-wide{
  grid-column:span 2;
}
.er-admin-wallet-quick--manager-page .er-admin-wallet-form textarea{
  min-height:72px;
}
@media (max-width: 1180px){
  .er-manager-wallet-topgrid{
    grid-template-columns:1fr;
  }
  .er-admin-wallet-quick--manager-page{
    position:static;
  }
}
@media (max-width: 720px){
  .er-admin-wallet-quick--manager-page .er-admin-wallet-form__grid{
    grid-template-columns:1fr;
  }
  .er-admin-wallet-quick--manager-page .er-admin-wallet-form .er-field-wide{
    grid-column:span 1;
  }
}


/* 2.7.20 — unified wallet surfaces */
.er-wallet-surface{
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}
.er-manager-wallet-summary-card__head,
.er-admin-wallet-quick__head{
  min-height:72px;
}
.er-manager-wallet-summary-card__head h3,
.er-admin-wallet-quick h3{
  margin:0 0 4px;
  font-size:20px;
  line-height:1.2;
  color:#172033;
}
.er-manager-wallet-summary-card__head .er-hint,
.er-admin-wallet-quick .er-hint{
  margin:0;
  max-width:760px;
}
.er-kpis--compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.er-kpis--compact .er-kpi{
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.06);
  border-radius:16px;
  background:#fff;
}
.er-kpis--compact .er-kpi-label{
  font-size:12px;
  color:#64748b;
}
.er-kpis--compact .er-kpi-value{
  font-size:20px;
  line-height:1.2;
}
.er-manager-wallet-summary-card .er-table-wrap,
.er-admin-wallet-summary{
  margin-top:14px;
  border:1px solid rgba(15,23,42,.06);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.er-manager-wallet-page > .er-block-head{
  margin-bottom:16px;
}
.er-manager-wallet-page > .er-block-head .er-hint{
  max-width:920px;
}
.er-admin-wallet-quick--manager-page{
  padding:18px;
}
.er-admin-wallet-quick--manager-page .er-admin-wallet-form__grid{
  gap:10px 12px;
}
.er-admin-wallet-quick--manager-page .er-admin-wallet-form textarea{
  min-height:88px;
}
.er-admin-wallet-quick--manager-page .er-admin-wallet-form__actions{
  margin-top:14px;
}
@media (max-width: 1280px){
  .er-kpis--compact{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 720px){
  .er-wallet-surface{
    padding:14px;
    border-radius:16px;
  }
  .er-manager-wallet-summary-card__head h3,
  .er-admin-wallet-quick h3{
    font-size:17px;
  }
  .er-kpis--compact{
    grid-template-columns:1fr;
  }
}


.er-agent-records-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:0 0 14px 0;padding:12px 14px;border:1px solid var(--er-stroke);border-radius:16px;background:rgba(255,255,255,.78)}
.er-agent-records-toolbar__selectall{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--er-text)}
.er-agent-records-toolbar__summary{display:flex;flex-wrap:wrap;gap:14px;color:var(--er-text-2);font-size:13px}
.er-agent-records-list{display:grid;gap:10px}
.er-agent-record-item{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--er-stroke);border-radius:16px;background:rgba(255,255,255,.92)}
.er-agent-record-item.is-disabled{opacity:.72}
.er-agent-record-item__top,.er-agent-record-item__meta{display:flex;flex-wrap:wrap;gap:10px 14px}
.er-agent-record-item__top{margin-bottom:6px;color:var(--er-text)}
.er-agent-record-item__meta{font-size:12px;color:var(--er-text-2)}
.er-agent-record-item__amount{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:120px}
.er-agent-record-item__amount strong{font-size:16px;color:var(--er-text)}
.er-agent-record-item__badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(15,23,42,.08);font-size:12px;color:var(--er-text-2);white-space:nowrap}
@media (max-width: 860px){.er-agent-record-item{grid-template-columns:1fr}.er-agent-record-item__amount{align-items:flex-start}.er-agent-records-toolbar{align-items:flex-start}}


.er-agent-row-missing-manager td {
  background: #fff1f1;
}
.er-agent-warning-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.er-agent-warning-text {
  color: #c62828;
  font-weight: 700;
}

/* 2.7.36 — wallet UI cleanup */
.er-wallet-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:18px 20px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:linear-gradient(135deg,#f8fbff 0%,#ffffff 56%,#f7f8ff 100%);
}
.er-wallet-hero__main h3{
  margin:0 0 6px;
  font-size:26px;
  line-height:1.15;
  color:#111827;
}
.er-wallet-hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:#1d4ed8;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.er-wallet-hero__legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  max-width:360px;
}
.er-wallet-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.er-wallet-pill--blue{background:rgba(37,99,235,.09);color:#1d4ed8}
.er-wallet-pill--violet{background:rgba(124,58,237,.1);color:#6d28d9}
.er-wallet-pill--slate{background:rgba(15,23,42,.08);color:#334155}
.er-wallet-pill--amber{background:rgba(245,158,11,.14);color:#b45309}
.er-wallet-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,320px);
  gap:18px;
  align-items:start;
}
.er-wallet-layout--admin{
  grid-template-columns:minmax(0,1fr) minmax(250px,300px);
}
.er-wallet-layout__main{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
.er-wallet-layout__side{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
.er-wallet-section{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.er-wallet-section__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.er-wallet-section__eyebrow{
  display:inline-block;
  margin:0 0 6px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  color:#475569;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.er-wallet-section__head h3{
  margin:0 0 4px;
  font-size:20px;
  line-height:1.2;
}
.er-wallet-table-wrap{
  border:1px solid rgba(15,23,42,.06);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.er-wallet-branch-table td,
.er-wallet-agent-table td{
  vertical-align:top;
}
.er-wallet-cell-main{
  font-weight:700;
  color:#0f172a;
}
.er-wallet-cell-sub{
  margin-top:4px;
  font-size:12px;
  color:#64748b;
}
.er-wallet-sidecard{
  position:sticky;
  top:12px;
}
.er-wallet-checklist{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.er-wallet-checklist li{
  position:relative;
  padding-left:18px;
  color:#334155;
  line-height:1.45;
}
.er-wallet-checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#2563eb;
}
.er-wallet-history-card{
  margin:0;
}
.er-wallet-history-card summary span{
  font-size:16px;
}
.er-wallet-history-table{
  table-layout:fixed;
}
.er-wallet-history-table th:nth-child(2),
.er-wallet-history-table td:nth-child(2){width:32%}
@media (max-width: 1180px){
  .er-wallet-layout,
  .er-wallet-layout--admin{
    grid-template-columns:1fr;
  }
  .er-wallet-sidecard{
    position:static;
  }
}
@media (max-width: 720px){
  .er-wallet-hero{
    padding:14px;
    border-radius:18px;
    flex-direction:column;
  }
  .er-wallet-hero__main h3{
    font-size:21px;
  }
  .er-wallet-hero__legend{
    justify-content:flex-start;
    max-width:none;
  }
  .er-wallet-section__head h3{
    font-size:18px;
  }
}


/* Agent payment type badges */
.er-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  border:1px solid transparent;
  white-space:nowrap;
}
.er-badge-success{
  background:#e8f8ee;
  color:#147a3f;
  border-color:#b7ebc9;
}
.er-badge-warn{
  background:#fff8e8;
  color:#a05a00;
  border-color:#f2d28b;
}

/* 2.7.50 — redesigned manager wallet */
.er-manager-wallet-hero-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.er-manager-wallet-hero-grid--four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.er-manager-wallet-hero-card{
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.er-manager-wallet-hero-card--hands{background:linear-gradient(180deg,#eff8ff 0%,#ffffff 100%)}
.er-manager-wallet-hero-card--due{background:linear-gradient(180deg,#fff7ed 0%,#ffffff 100%)}
.er-manager-wallet-hero-card--cash{background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%)}
.er-manager-wallet-hero-card--agentdebt{background:linear-gradient(180deg,#fffbeb 0%,#ffffff 100%)}
.er-manager-wallet-hero-card__label{font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#64748b}
.er-manager-wallet-hero-card__value{font-size:32px;line-height:1.1;font-weight:800;color:#0f172a}
.er-manager-wallet-hero-card__hint{font-size:13px;color:#475569}
.er-manager-wallet-hero-card__meta{display:grid;gap:8px;font-size:13px;color:#334155}
.er-manager-wallet-hero-card__meta span{display:flex;justify-content:space-between;gap:12px}
.er-manager-wallet-hero-card__branches{
  margin-top:4px;
  padding-top:10px;
  border-top:1px dashed rgba(15,23,42,.12);
  display:grid;
  gap:8px;
}
.er-manager-wallet-hero-card__branches-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#64748b;
}
.er-manager-wallet-hero-card__branch{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  color:#334155;
}
.er-manager-wallet-hero-card__branch strong{
  white-space:nowrap;
  color:#0f172a;
}
.er-manager-wallet-mini-stats,
.er-manager-wallet-recent,
.er-manager-agent-history{display:grid;gap:8px}
.er-manager-wallet-mini-stat,
.er-manager-wallet-recent__item,
.er-manager-agent-history__item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
}
.er-manager-wallet-mini-stat span,
.er-manager-wallet-recent__meta,
.er-manager-agent-history__meta{font-size:12px;color:#64748b}
.er-manager-wallet-mini-stat strong,
.er-manager-wallet-recent__amount,
.er-manager-agent-history__amount{font-size:16px;color:#0f172a}
.er-manager-wallet-recent__title,
.er-manager-agent-history__title{font-weight:700;color:#0f172a}
.er-manager-agent-summary-card{margin:0 0 14px}
.er-manager-agents-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:#fff;font-size:14px;color:#334155}
.er-manager-agent-list{display:grid;gap:14px}
.er-manager-agent-card{overflow:hidden}
.er-manager-agent-drawer{margin-top:4px;border-top:1px dashed rgba(15,23,42,.08);padding-top:12px}
.er-manager-agent-drawer summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:700;color:#0f172a;list-style:none}
.er-manager-agent-drawer summary::-webkit-details-marker{display:none}
.er-manager-agent-drawer summary small{font-size:12px;color:#64748b;font-weight:600}
.er-manager-agent-drawer__body{padding-top:14px}
.er-manager-agent-drawer__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.er-manager-agent-panel{padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fbfdff}
.er-manager-agent-panel__head{margin:0 0 12px}
.er-manager-agent-panel__head h4{margin:0 0 4px;font-size:16px;color:#0f172a}
.er-manager-agent-panel__head p{margin:0}
.er-manager-agent-history__side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:120px}

.er-manager-wallet-page > .er-wallet-section.er-wallet-surface,
.er-manager-wallet-page > .er-admin-wallet-history{
  margin-top:18px;
}
.er-manager-wallet-page > .er-wallet-section.er-wallet-surface .er-agent-wallet-toolbar__right{
  margin-left:auto;
}
@media (max-width: 1320px){
  .er-manager-wallet-hero-grid--four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 1180px){
  .er-manager-wallet-hero-grid,
  .er-manager-wallet-hero-grid--four{grid-template-columns:1fr}
}
@media (max-width: 860px){
  .er-manager-agent-drawer__grid{grid-template-columns:1fr}
  .er-manager-wallet-mini-stat,
  .er-manager-wallet-recent__item,
  .er-manager-agent-history__item{flex-direction:column;align-items:flex-start}
  .er-manager-agent-history__side{align-items:flex-start;min-width:0}
}


.er-agent-wallet-toolbar__title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.er-manager-agents-toolbar__counter{
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;
  background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;font-size:12px;font-weight:800;
}
.er-agent-wallet-toolbar__group--actions{align-self:flex-end}
.er-manager-agent-card{
  border-radius:24px;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.er-manager-agent-card:hover{box-shadow:0 18px 44px rgba(15,23,42,.09)}
.er-agent-wallet-card__hint{margin-top:8px}
.er-agent-wallet-card__chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.er-agent-wallet-chip{
  display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;
  background:#f8fafc;border:1px solid rgba(148,163,184,.35);color:#334155;font-size:12px;font-weight:700;
}
.er-agent-wallet-chip--soft{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.er-agent-wallet-stat--accent{
  background:linear-gradient(180deg,#fff7ed 0%,#ffffff 100%);
  border-color:#fed7aa;
}
.er-agent-wallet-card__quick{
  display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:18px;
  background:#f8fafc;border:1px solid rgba(148,163,184,.2)
}
.er-agent-wallet-card__quick-input{min-width:140px}
.er-manager-agent-drawer summary{
  padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.2);
  transition:background .18s ease,border-color .18s ease;
}
.er-manager-agent-drawer[open] summary{background:#eff6ff;border-color:#bfdbfe}
.er-agent-branch-item{
  border-radius:18px;background:#fff;border:1px solid rgba(148,163,184,.18);padding:12px 14px;
  box-shadow:0 8px 22px rgba(15,23,42,.04)
}
.er-manager-agent-history__item{background:#fcfcfd}
@media (max-width: 860px){
  .er-agent-wallet-toolbar__group--actions{align-self:stretch}
  .er-agent-wallet-toolbar__group--actions .er-btn{width:100%}
  .er-agent-wallet-card__quick{align-items:stretch}
  .er-agent-wallet-card__quick-input{min-width:0;width:100%}
}

/* 2.7.51 — manager wallet row layout */
.er-manager-agent-card{
  border-radius:24px;
  overflow:hidden;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.er-manager-agent-card .er-agent-wallet-card__title{font-size:20px}
.er-manager-agent-row{
  display:grid;
  grid-template-columns:minmax(260px,1.2fr) minmax(420px,1.3fr) minmax(280px,.9fr);
  gap:14px;
  align-items:center;
}
.er-manager-agent-row__main,
.er-manager-agent-row__metrics,
.er-manager-agent-row__actions{
  min-width:0;
}
.er-manager-agent-row__main{
  display:grid;
  gap:8px;
}
.er-manager-agent-row__metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.er-manager-agent-metric{
  display:grid;
  gap:6px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
}
.er-manager-agent-metric span{
  font-size:12px;
  color:#64748b;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.er-manager-agent-metric strong{
  font-size:18px;
  line-height:1.15;
  color:#0f172a;
}
.er-manager-agent-metric--accent{
  background:linear-gradient(180deg,#fff7ed 0%,#ffffff 100%);
  border-color:#fdba74;
}
.er-manager-agent-row__actions{
  display:grid;
  grid-template-columns:minmax(110px,1fr) auto auto;
  gap:10px;
  align-items:center;
}
.er-manager-agent-row__actions .er-btn{
  min-height:46px;
  white-space:nowrap;
}
.er-manager-agent-row__actions .er-agent-wallet-card__quick-input{
  width:100%;
  min-width:0;
  min-height:46px;
}
.er-manager-agent-drawer{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed rgba(59,130,246,.2);
}
.er-manager-agent-drawer[open] + *{}
.er-manager-agent-card:has(.er-manager-agent-drawer[open]){
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
  border-color:#bfdbfe;
  box-shadow:0 20px 48px rgba(37,99,235,.08);
}
.er-manager-agent-drawer summary{
  background:#f8fafc;
}
.er-manager-agent-drawer[open] summary{
  background:#eff6ff;
  border-color:#93c5fd;
}
.er-manager-agent-drawer__grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.er-manager-agent-records,
.er-agent-branches-list{
  display:grid;
  gap:10px;
}
.er-manager-agent-records__item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
}
.er-manager-agent-records__title{
  font-weight:800;
  color:#0f172a;
}
.er-manager-agent-records__meta{
  font-size:12px;
  color:#64748b;
  margin-top:4px;
}
.er-manager-agent-records__side{
  min-width:110px;
  text-align:right;
  display:grid;
  gap:4px;
}
.er-manager-agent-records__side span{
  font-size:12px;
  color:#64748b;
}
.er-manager-agent-records__side strong{
  font-size:16px;
  color:#0f172a;
}
@media (max-width: 1400px){
  .er-manager-agent-row{
    grid-template-columns:minmax(240px,1.1fr) minmax(360px,1.2fr);
  }
  .er-manager-agent-row__actions{
    grid-column:1 / -1;
    grid-template-columns:minmax(140px,1fr) auto auto;
  }
}
@media (max-width: 1180px){
  .er-manager-agent-row,
  .er-manager-agent-drawer__grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 860px){
  .er-manager-agent-row__metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .er-manager-agent-row__actions{
    grid-template-columns:1fr;
  }
  .er-manager-agent-row__actions .er-btn,
  .er-manager-agent-row__actions .er-agent-wallet-card__quick-input{
    width:100%;
  }
  .er-manager-agent-records__item{
    flex-direction:column;
  }
  .er-manager-agent-records__side{
    text-align:left;
    min-width:0;
  }
}


/* ideal manager wallet polish */
.er-agent-wallet-page__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.er-agent-wallet-page__actions{display:flex;align-items:center;gap:10px}
.er-agent-wallet-page__kpis .er-kpi{min-height:110px}
.er-manager-agent-card{border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);border:1px solid rgba(148,163,184,.22)}
.er-manager-agent-row{align-items:center}
.er-manager-agent-row__metrics{gap:10px}
.er-manager-agent-metric{min-height:72px;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid rgba(148,163,184,.22);box-shadow:none}
.er-manager-agent-metric--accent{background:#fff8ef;border-color:#fdba74}
.er-manager-agent-drawer{margin-top:10px;padding-top:10px}
.er-manager-agent-drawer[open]{padding-top:14px}
.er-manager-agent-card:has(.er-manager-agent-drawer[open]){background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%);border-color:#93c5fd;box-shadow:0 18px 44px rgba(37,99,235,.10)}
.er-manager-agent-drawer[open] summary{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.er-manager-agent-history__item,.er-manager-agent-records__item,.er-agent-branch-item{background:#fff}
@media (max-width: 980px){
  .er-agent-wallet-page__actions{width:100%}
  .er-agent-wallet-page__actions .er-btn{width:100%}
}


/* compact admin agent wallet header */
.er-agent-wallet-page{padding-top:14px;}
.er-agent-wallet-page__head h3{margin:0 0 4px;font-size:24px;line-height:1.15;}
.er-agent-wallet-page__head .er-hint{margin:0;font-size:13px;line-height:1.35;max-width:780px;}
.er-agent-wallet-page__kpis--compact{margin-top:10px;gap:8px;}
.er-agent-wallet-page__kpis--compact .er-kpi{min-height:0;padding:10px 12px;border-radius:14px;}
.er-agent-wallet-page__kpis--compact .er-kpi-label{font-size:12px;}
.er-agent-wallet-page__kpis--compact .er-kpi-value{font-size:18px;line-height:1.15;}
@media (max-width: 980px){
  .er-agent-wallet-page__head h3{font-size:21px;}
}

/* 2.7.50 UI polish — dense working CRM standard */
.er-app{
  --er-page-bg:#f3f6fb;
  --er-surface:#ffffff;
  --er-surface-soft:#f8fbff;
  --er-stroke-strong:rgba(15,23,42,.12);
  --er-stroke-soft:rgba(15,23,42,.08);
  --er-shadow-soft:0 10px 28px rgba(15,23,42,.05);
  --er-shadow-card:0 14px 32px rgba(15,23,42,.06);
  --er-primary:#1d4ed8;
  --er-primary-hover:#1e40af;
  --er-success:#15803d;
  --er-success-hover:#166534;
  --er-danger:#b91c1c;
  --er-danger-hover:#991b1b;
}
.er-app[data-er-theme="light"],
.er-app[data-er-role]{background:var(--er-page-bg)}
.er-main,.er-main-inner{background:transparent}
.er-card,.er-panel,.er-sortbar,.er-toolbar,.er-wallet-surface,.er-wallet-sidecard,.er-kpi,.er-metric,.er-branch-list-item,.er-cash-item{
  background:var(--er-surface);
  border:1px solid var(--er-stroke-soft);
  box-shadow:var(--er-shadow-soft);
}
.er-card.er-block,
.er-panel,
.er-wallet-surface,
.er-wallet-sidecard{border-radius:18px}
.er-block-head,
.er-wallet-section__head,
.er-admin-wallet-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.er-block-head h3,
.er-wallet-section__head h3,
.er-admin-wallet-head h3{margin:0;font-size:22px;line-height:1.18;letter-spacing:-.01em}
.er-block-head--dense h3,
.er-wallet-section__head--dense h3{font-size:20px}
.er-block-head p.er-hint,
.er-wallet-section__head .er-hint,
.er-admin-wallet-head .er-hint{margin:4px 0 0;max-width:860px;font-size:13px;line-height:1.45;color:#64748b}
.er-view > .er-card.er-block:first-child{margin-top:0}
.er-toolbar,.er-sortbar{
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfdff 0%,#f8fbff 100%);
}
.er-filters-row,
.er-toolbar-row,
.er-actions,
.er-actions-inline,
.er-topbar-actions,
.er-header-actions{
  align-items:flex-end;
  gap:10px;
}
.er-field label{font-size:12px;font-weight:800;color:#334155;margin-bottom:6px}
.er-field input,
.er-field select,
.er-field textarea,
input[type="text"].er-input,
input[type="number"].er-input,
input[type="date"].er-input,
select.er-input,
textarea.er-input{
  min-height:42px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background:#fff;
  color:#0f172a;
  box-shadow:inset 0 1px 1px rgba(15,23,42,.02);
}
.er-field textarea{min-height:104px}
.er-field input:focus,
.er-field select:focus,
.er-field textarea:focus,
.er-input:focus{
  border-color:rgba(29,78,216,.50);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
  outline:none;
}
.er-field input::placeholder,
.er-field textarea::placeholder{color:#94a3b8}
.er-btn,
button.er-btn,
a.er-btn,
input.er-btn{
  min-height:42px;
  padding:10px 15px;
  border-radius:12px;
  border:1px solid #1d4ed8;
  background:linear-gradient(180deg,#2563eb 0%,#1d4ed8 100%);
  color:#fff;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
}
.er-btn:hover,
button.er-btn:hover,
a.er-btn:hover{background:linear-gradient(180deg,#1d4ed8 0%,#1e40af 100%);border-color:#1e40af;color:#fff}
.er-btn-secondary,
.er-btn.er-btn-secondary,
button.er-btn-secondary,
a.er-btn-secondary,
.er-btn.er-btn-ghost{
  border-color:rgba(15,23,42,.14);
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:#0f172a;
  box-shadow:none;
}
.er-btn-secondary:hover,
.er-btn.er-btn-secondary:hover,
.er-btn.er-btn-ghost:hover{background:#f1f5f9;border-color:rgba(15,23,42,.20);color:#0f172a}
.er-btn-danger,
.er-btn.er-btn-danger{
  border-color:#b91c1c;
  background:linear-gradient(180deg,#dc2626 0%,#b91c1c 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(220,38,38,.16);
}
.er-btn-danger:hover,
.er-btn.er-btn-danger:hover{background:linear-gradient(180deg,#b91c1c 0%,#991b1b 100%);border-color:#991b1b;color:#fff}
.er-btn-success,
.er-btn.er-btn-success,
.er-btn-confirm{
  border-color:#15803d;
  background:linear-gradient(180deg,#16a34a 0%,#15803d 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(22,163,74,.18);
}
.er-btn-success:hover,
.er-btn.er-btn-success:hover,
.er-btn-confirm:hover{background:linear-gradient(180deg,#15803d 0%,#166534 100%);border-color:#166534;color:#fff}
.er-btn[disabled],
button.er-btn[disabled],
a.er-btn[aria-disabled="true"]{opacity:.55;box-shadow:none;filter:grayscale(.08)}
.er-table-wrap{
  border:1px solid var(--er-stroke-soft);
  border-radius:16px;
  overflow-x:auto;
  overflow-y:visible;
  background:#fff;
  box-shadow:var(--er-shadow-soft);
}
.er-table{border-collapse:separate;border-spacing:0;min-width:980px}
.er-table thead th{
  background:#f8fafc;
  color:#334155;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
  border-bottom:1px solid rgba(15,23,42,.10);
}
.er-table td{background:#fff}
.er-table tbody tr:hover td{background:#f8fbff}
.er-table td,.er-table th{padding:11px 12px;vertical-align:middle}
.er-table .er-col-actions,
.er-table td:last-child{white-space:nowrap}
.er-num{font-variant-numeric:tabular-nums}
.er-badge{
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.er-badge-ok{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.er-badge-warn{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}
.er-badge-danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.er-badge-muted,.er-badge-info{background:#f8fafc;color:#475569;border:1px solid #cbd5e1}
.er-kpis,.er-dashboard,.er-cards-grid,.er-cards{gap:12px}
.er-kpi,.er-metric{padding:14px 16px;border-radius:16px;min-height:96px}
.er-kpi-label,.er-metric-label{font-size:12px;font-weight:700;color:#64748b}
.er-kpi-value,.er-metric-value{font-size:24px;line-height:1.1;letter-spacing:-.02em}
.er-wallet-hero,
.er-wallet-layout,
.er-manager-agent-row,
.er-manager-agent-drawer__grid{gap:14px}
.er-wallet-hero{padding:18px;border:1px solid rgba(59,130,246,.14);background:linear-gradient(180deg,#fbfdff 0%,#f1f7ff 100%);border-radius:18px}
.er-wallet-hero__main h3{margin:0 0 6px;font-size:24px;line-height:1.14}
.er-wallet-hero__main .er-hint{margin:0;max-width:860px}
.er-wallet-pill{border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;border:1px solid rgba(15,23,42,.08);background:#fff;color:#334155}
.er-manager-agent-card,
.er-agent-wallet-card,
.er-wallet-sidecard{overflow:hidden}
.er-manager-agent-drawer summary,
.er-admin-wallet-history summary{
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
}
.er-manager-agent-panel,
.er-admin-wallet-history__body,
.er-manager-agent-drawer__body{border-top:1px solid rgba(15,23,42,.06)}
.er-manager-agent-records__item,
.er-manager-agent-history__item,
.er-agent-branch-item{border:1px solid rgba(148,163,184,.18);border-radius:14px;padding:12px 14px;box-shadow:none}
.er-topbar{
  position:sticky;
  top:0;
  z-index:25;
  padding:14px 18px;
  border-bottom:1px solid rgba(15,23,42,.08);
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.92);
}
.er-topbar-h{font-size:24px;line-height:1.12;letter-spacing:-.02em}
.er-topbar-sub{font-size:13px;color:#64748b}
.er-admin-tools{margin-top:14px}
.er-admin-tools--compact{margin-top:16px}
.er-admin-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.er-admin-tool-card{padding:16px;border-radius:16px;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);display:flex;flex-direction:column;gap:10px;min-width:0}
.er-admin-tool-card h4{margin:0;font-size:17px;line-height:1.2;color:#0f172a}
.er-admin-tool-card p{margin:0;font-size:13px;line-height:1.5;color:#64748b;flex:1 1 auto}
.er-admin-tool-card__meta,.er-admin-tool-card__actions,.er-admin-tools-head__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.er-admin-tools-note{margin-top:12px;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px dashed rgba(15,23,42,.12);font-size:13px;line-height:1.5;color:#475569}
.er-empty,.er-error,.er-hint-block{border-radius:14px;padding:14px 16px}
.er-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
@media (max-width: 1280px){
  .er-admin-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 1024px){
  .er-block-head h3,.er-wallet-hero__main h3,.er-topbar-h{font-size:21px}
  .er-table{min-width:860px}
}
@media (max-width: 860px){
  .er-toolbar,.er-sortbar,.er-card.er-block,.er-wallet-surface,.er-wallet-sidecard{padding:12px}
  .er-block-head,.er-wallet-section__head,.er-admin-wallet-head{margin-bottom:12px}
  .er-admin-tools-grid{grid-template-columns:1fr}
  .er-topbar{padding:12px 14px}
}
@media (max-width: 640px){
  .er-kpi,.er-metric{min-height:0;padding:12px 14px}
  .er-kpi-value,.er-metric-value{font-size:20px}
  .er-block-head h3,.er-wallet-hero__main h3,.er-topbar-h{font-size:19px}
  .er-field input,.er-field select,.er-field textarea,.er-btn,button.er-btn,a.er-btn,input.er-btn{min-height:40px}
  .er-field-actions,.er-actions,.er-actions-inline,.er-topbar-actions,.er-header-actions{width:100%}
  .er-field-actions .er-btn,.er-actions .er-btn,.er-actions-inline .er-btn,.er-topbar-actions .er-btn,.er-header-actions .er-btn{width:100%}
}


/* === UI polish 2026-04-16: calmer page background + balanced top header cards === */
.er-app[data-er-theme="light"]{
  --er-bg: #edf2f7;
  --er-surface: rgba(255,255,255,.98);
  --er-surface-2: rgba(255,255,255,.90);
  --er-stroke: rgba(15,23,42,.11);
  --er-stroke-2: rgba(15,23,42,.07);
}
.er-app[data-er-theme="light"]{
  background:
    radial-gradient(1100px 520px at 18% 0%, rgba(59,130,246,.05), transparent 60%),
    radial-gradient(900px 480px at 100% 18%, rgba(16,185,129,.04), transparent 56%),
    linear-gradient(180deg, #eef3f8 0%, #e9eef5 100%);
}
.er-app[data-er-theme="light"] .er-main{
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
}
.er-app[data-er-theme="light"] .er-topbar{
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 -1px 0 rgba(15,23,42,.06);
}
.er-app[data-er-theme="light"] .er-card{
  background: rgba(255,255,255,.985);
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.er-app[data-er-theme="light"] .er-form input,
.er-app[data-er-theme="light"] .er-form select,
.er-app[data-er-theme="light"] .er-form textarea,
.er-app[data-er-theme="light"] input,
.er-app[data-er-theme="light"] select,
.er-app[data-er-theme="light"] textarea{
  background: #ffffff;
}

.er-topbar-actions{
  align-items: stretch;
}
.er-top-news,
.er-top-leader{
  align-items: stretch;
}
.er-top-news-card,
.er-top-leader-card{
  min-height: 86px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.er-top-news-card{
  --er-news-accent: #d0b256;
  --er-news-accent-soft: rgba(208,178,86,.10);
  --er-news-accent-text: #5a4208;
  min-width: 320px;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--er-news-accent);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.95));
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  color: var(--er-news-accent-text);
  position: relative;
  overflow: hidden;
}
.er-top-news-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--er-news-accent-soft), rgba(255,255,255,0) 38%);
}
.er-top-news-card > *{ position: relative; }
.er-top-news-title{
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}
.er-top-news-message{
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(15,23,42,.86);
}
.er-top-news-sub{
  margin-top: auto;
  padding-top: 8px;
  font-size: 10px;
  color: rgba(15,23,42,.56);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.er-top-news-open:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.12);
}
.er-top-leader-card{
  min-width: 320px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(214,178,94,.58);
  background: linear-gradient(135deg, rgba(255,253,245,.98) 0%, rgba(247,238,209,.98) 100%);
  box-shadow: 0 8px 22px rgba(214,178,94,.12);
  color: #4f3a06;
}
.er-top-leader-head{
  align-items: flex-start;
}
.er-top-leader-title{
  font-size: 12px;
  line-height: 1.1;
}
.er-top-leader-sub{
  font-size: 10px;
  line-height: 1.15;
  text-align: right;
}
.er-top-leader-body{
  margin-top: 6px;
  align-items: flex-start;
}
.er-top-leader-name{
  font-size: 14px;
  line-height: 1.15;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.er-top-leader-metric{
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}
.er-app[data-er-theme="light"] .er-top-leader-card{
  border-color: rgba(214,178,94,.62);
  background: linear-gradient(135deg, #fffdf5 0%, #f7eed1 100%);
  color: #4f3a06;
}
@media (max-width: 1180px){
  .er-top-news-card,
  .er-top-leader-card{
    min-height: 82px;
  }
  .er-top-news-card{ min-width: 280px; max-width: 320px; padding: 9px 12px; }
  .er-top-leader-card{ min-width: 280px; max-width: 320px; padding: 9px 12px; }
}


/* 2.7.50 — hard align employee "Новая запись" grid */
.er-record-create-form .er-critical-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  column-gap:20px !important;
  row-gap:18px !important;
  align-items:start !important;
}
.er-record-create-form .er-critical-grid > .er-field{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  align-self:start !important;
  min-width:0 !important;
  margin:0 !important;
}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(1){grid-column:1;grid-row:1;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(2){grid-column:2;grid-row:1;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(3){grid-column:3;grid-row:1;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(4){grid-column:1;grid-row:2;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(5){grid-column:2;grid-row:2;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(6){grid-column:3;grid-row:2;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(7){grid-column:1;grid-row:3;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(8){grid-column:2;grid-row:3;}
.er-record-create-form .er-critical-grid > .er-field label{
  display:flex !important;
  align-items:center !important;
  min-height:18px !important;
  line-height:18px !important;
  margin:0 0 8px 0 !important;
}
.er-record-create-form .er-critical-grid > .er-field input,
.er-record-create-form .er-critical-grid > .er-field select{
  display:block !important;
  width:100% !important;
  height:38px !important;
  min-height:38px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  vertical-align:top !important;
}
.er-record-create-form .er-critical-grid > .er-field select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-position:right 12px center;
}
@media (max-width:980px){
  .er-record-create-form .er-critical-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(1){grid-column:1;grid-row:1;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(2){grid-column:2;grid-row:1;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(3){grid-column:1;grid-row:2;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(4){grid-column:2;grid-row:2;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(5){grid-column:1;grid-row:3;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(6){grid-column:2;grid-row:3;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(7){grid-column:1;grid-row:4;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(8){grid-column:2;grid-row:4;}
}
@media (max-width:700px){
  .er-record-create-form .er-critical-grid{
    grid-template-columns:1fr !important;
  }
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(1),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(2),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(3),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(4),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(5),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(6),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(7),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(8){grid-column:1;grid-row:auto;}
}

/* 2.7.50r1 — full redesign for employee "Новая запись" */
.er-record-create-form{
  gap:16px;
}
.er-record-create-form .er-record-create-topline{
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:0 2px;
}
.er-record-create-form .er-record-create-topline-spacer{
  flex:1 1 320px;
  min-height:1px;
}
.er-record-create-form .er-record-create-topline-fields{
  grid-template-columns:180px minmax(320px, 420px);
  gap:14px;
  width:min(100%, 640px);
}
.er-record-create-form .er-field.er-field-compact{
  margin:0;
}
.er-record-create-form .er-field.er-field-compact label{
  margin-bottom:8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#475569;
}
.er-record-create-form .er-field.er-field-compact input,
.er-record-create-form .er-field.er-field-compact select{
  min-height:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.34);
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

.er-record-create-form .er-critical-card,
.er-record-create-form .er-record-comment-card{
  border:1px solid rgba(148,163,184,.22);
  border-radius:24px;
  padding:18px 18px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.96) 100%);
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}
.er-record-create-form .er-critical-card{
  border-color:rgba(244,63,94,.14);
}
.er-record-create-form .er-critical-card .er-card-title,
.er-record-create-form .er-record-comment-card .er-field > label{
  color:#0f172a;
  font-weight:900;
}
.er-record-create-form .er-critical-card .er-card-title{
  margin-bottom:6px;
  font-size:15px;
}
.er-record-create-form .er-critical-card > .er-sub{
  margin:0 0 16px;
  font-size:12px;
  line-height:1.45;
  color:#64748b;
}
.er-record-create-form .er-critical-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:16px 18px !important;
  align-items:stretch !important;
}
.er-record-create-form .er-critical-grid > .er-field{
  display:flex !important;
  flex-direction:column !important;
  align-self:stretch !important;
  min-width:0 !important;
  margin:0 !important;
  padding:12px 12px 10px !important;
  border-radius:18px !important;
  border:1px solid rgba(226,232,240,.98) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.04) !important;
}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(1){grid-column:1;grid-row:1;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(2){grid-column:2;grid-row:1;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(3){grid-column:3;grid-row:1;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(4){grid-column:1;grid-row:2;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(5){grid-column:2;grid-row:2;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(6){grid-column:3;grid-row:2;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(7){grid-column:1;grid-row:3;}
.er-record-create-form .er-critical-grid > .er-field:nth-of-type(8){grid-column:2;grid-row:3;}
.er-record-create-form .er-critical-grid > .er-field > label{
  display:flex !important;
  align-items:center !important;
  min-height:16px !important;
  margin:0 0 9px 2px !important;
  font-size:11px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
  color:#334155 !important;
}
.er-record-create-form .er-critical-grid > .er-field input,
.er-record-create-form .er-critical-grid > .er-field select{
  width:100% !important;
  height:48px !important;
  min-height:48px !important;
  margin:0 !important;
  padding:0 14px !important;
  border-radius:14px !important;
  border:1px solid rgba(244,63,94,.26) !important;
  background:#ffffff !important;
  box-shadow:none !important;
  font-size:14px !important;
  line-height:48px !important;
  box-sizing:border-box !important;
}
.er-record-create-form .er-critical-grid > .er-field select{
  padding-right:40px !important;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, #64748b 50%),linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:calc(100% - 18px) calc(50% - 1px), calc(100% - 13px) calc(50% - 1px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.er-record-create-form .er-critical-grid > .er-field input::placeholder{
  color:#94a3b8;
}
.er-record-create-form .er-critical-grid > .er-field:hover{
  border-color:rgba(148,163,184,.34) !important;
  box-shadow:0 12px 26px rgba(15,23,42,.06) !important;
}
.er-record-create-form .er-critical-grid > .er-field input:focus,
.er-record-create-form .er-critical-grid > .er-field select:focus{
  outline:none !important;
  border-color:rgba(244,63,94,.42) !important;
  box-shadow:0 0 0 4px rgba(244,63,94,.10) !important;
}
.er-record-create-form .er-critical-grid > .er-field.is-filled input,
.er-record-create-form .er-critical-grid > .er-field.is-filled select{
  border-color:rgba(34,197,94,.34) !important;
  background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,253,244,.88) 100%) !important;
}
.er-record-create-form .er-critical-grid > .er-field.is-filled input:focus,
.er-record-create-form .er-critical-grid > .er-field.is-filled select:focus{
  border-color:rgba(34,197,94,.48) !important;
  box-shadow:0 0 0 4px rgba(34,197,94,.12) !important;
}
.er-record-create-form .er-critical-grid > .er-field[data-er-critical="client_phone"],
.er-record-create-form .er-critical-grid > .er-field[data-er-critical="dk_last4"]{
  max-width:none !important;
}
.er-record-create-form .er-record-comment-card{
  margin-top:0 !important;
  padding-top:16px;
}
.er-record-create-form .er-record-comment-card .er-field{
  margin:0 !important;
}
.er-record-create-form .er-record-comment-card .er-field > label{
  display:block;
  margin:0 0 10px 2px;
  font-size:12px;
  line-height:1.15;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.er-record-create-form .er-record-comment-card textarea.er-note-small{
  min-height:112px !important;
  padding:14px 16px !important;
  border-radius:16px !important;
  border:1px solid rgba(148,163,184,.32) !important;
  background:#fff !important;
  box-shadow:none !important;
  resize:vertical;
}
.er-record-create-form .er-record-comment-card textarea.er-note-small:focus{
  outline:none !important;
  border-color:rgba(59,130,246,.40) !important;
  box-shadow:0 0 0 4px rgba(59,130,246,.10) !important;
}
.er-record-create-form .er-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:0 2px;
}
.er-record-create-form .er-actions .er-btn{
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  font-weight:800;
}
.er-record-create-form .er-hotkeys-hint{
  font-size:12px;
  color:#64748b;
}

@media (max-width: 1180px){
  .er-record-create-form .er-record-create-topline-fields{
    grid-template-columns:170px minmax(260px, 1fr);
    width:min(100%, 560px);
  }
  .er-record-create-form .er-critical-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(1){grid-column:1;grid-row:1;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(2){grid-column:2;grid-row:1;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(3){grid-column:1;grid-row:2;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(4){grid-column:2;grid-row:2;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(5){grid-column:1;grid-row:3;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(6){grid-column:2;grid-row:3;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(7){grid-column:1;grid-row:4;}
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(8){grid-column:2;grid-row:4;}
}
@media (max-width: 760px){
  .er-record-create-form{
    gap:14px;
  }
  .er-record-create-form .er-record-create-topline{
    align-items:stretch;
  }
  .er-record-create-form .er-record-create-topline-fields{
    grid-template-columns:1fr;
    width:100%;
  }
  .er-record-create-form .er-critical-card,
  .er-record-create-form .er-record-comment-card{
    border-radius:20px;
    padding:14px;
  }
  .er-record-create-form .er-critical-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(1),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(2),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(3),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(4),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(5),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(6),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(7),
  .er-record-create-form .er-critical-grid > .er-field:nth-of-type(8){grid-column:1;grid-row:auto;}
  .er-record-create-form .er-critical-grid > .er-field{
    padding:10px;
    border-radius:16px !important;
  }
  .er-record-create-form .er-critical-grid > .er-field input,
  .er-record-create-form .er-critical-grid > .er-field select,
  .er-record-create-form .er-field.er-field-compact input,
  .er-record-create-form .er-field.er-field-compact select{
    height:46px !important;
    min-height:46px !important;
  }
  .er-record-create-form .er-actions .er-btn{
    flex:1 1 100%;
    width:100%;
  }
}


.er-created-by{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.er-created-by__name{
  line-height:1.1;
  font-size:12px;
  margin:0;
}
.er-created-by__meta{
  display:flex;
  align-items:center;
  gap:0;
  flex-wrap:nowrap;
  min-width:0;
  margin:0;
}
.er-created-by__email{
  display:inline-flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
  max-width:182px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:#1d4ed8;
  font-size:12.5px;
  line-height:1.14;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.er-created-by__email--copy{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  box-shadow:none;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
  transition:background-color .15s ease, color .15s ease, opacity .15s ease;
}
.er-created-by__email--copy:hover,
.er-created-by__email--copy:focus{
  background:rgba(37,99,235,.12);
  color:#1e40af;
}


.er-records-bulk-card{margin:12px 0 16px;padding:16px 18px;border:1px solid rgba(37,99,235,.14);border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);box-shadow:0 10px 28px rgba(15,23,42,.05)}.er-records-bulk-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:14px}.er-records-bulk-card__title{font-size:18px;line-height:1.2;font-weight:800;color:#0f172a}.er-records-bulk-card__subtitle{margin-top:4px;font-size:13px;line-height:1.45;color:#475569;max-width:760px}.er-records-bulk-card__counter{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(37,99,235,.08);color:#1d4ed8;font-weight:800}.er-records-bulk-card__body{display:grid;grid-template-columns:minmax(260px,auto) minmax(420px,1fr);gap:16px;align-items:end}.er-records-bulk-card__toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.er-records-bulk-card__form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,1.2fr) auto;gap:12px;align-items:end}.er-records-bulk-card__field{display:flex;flex-direction:column;gap:6px}.er-records-bulk-card__label{font-size:12px;font-weight:700;color:#334155}.er-records-bulk-card__form select{width:100%;min-height:44px;border-radius:12px}.er-records-bulk-card__submit{display:flex;align-items:end}.er-records-bulk-card__submit .er-btn{min-height:44px;padding-left:18px;padding-right:18px}.er-col-check{width:44px;text-align:center}.er-col-check .er-check{justify-content:center}@media (max-width: 1100px){.er-records-bulk-card__body{grid-template-columns:1fr}.er-records-bulk-card__form{grid-template-columns:1fr 1fr auto}}@media (max-width: 760px){.er-records-bulk-card{padding:14px}.er-records-bulk-card__counter{width:100%;justify-content:center}.er-records-bulk-card__toolbar,.er-records-bulk-card__form{grid-template-columns:1fr;display:grid}.er-records-bulk-card__toolbar .er-btn,.er-records-bulk-card__submit .er-btn{width:100%}}


/* Professional operation template picker */
.er-template-picker{display:grid;gap:14px;padding:14px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 10px 26px rgba(15,23,42,.05)}
.er-template-picker__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.er-template-picker__title{font-size:16px;font-weight:800;color:#0f172a;line-height:1.2}
.er-template-picker__sub{margin-top:4px;font-size:13px;line-height:1.45;color:#64748b;max-width:720px}
.er-template-picker__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.er-template-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;padding:14px 14px 13px;border:1px solid rgba(148,163,184,.35);border-radius:16px;background:#fff;color:#0f172a;text-align:left;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.er-template-card:hover{border-color:#94a3b8;box-shadow:0 12px 24px rgba(15,23,42,.08);transform:translateY(-1px)}
.er-template-card.is-active{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12),0 14px 28px rgba(37,99,235,.16);background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%)}
.er-template-card__title{font-size:15px;font-weight:800;line-height:1.3}
.er-template-card__meta{display:flex;gap:8px;flex-wrap:wrap}
.er-template-card__pill{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#f8fafc;border:1px solid rgba(148,163,184,.35);font-size:12px;font-weight:700;color:#334155}
.er-template-card__pill--accent{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.er-template-summary{display:grid;gap:6px;padding:12px 14px;border-radius:16px;border:1px solid rgba(37,99,235,.15);background:#eff6ff}
.er-template-summary.is-empty{border-color:rgba(148,163,184,.30);background:#f8fafc}
.er-template-summary__label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.er-template-summary__title{font-size:16px;font-weight:800;color:#0f172a;line-height:1.2}
.er-template-summary__meta{display:flex;gap:8px;flex-wrap:wrap;color:#334155;font-size:13px;font-weight:700}
.er-template-summary__meta span{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid rgba(148,163,184,.28)}
@media (max-width: 1120px){.er-template-picker__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 767px){.er-template-picker{padding:12px;border-radius:16px}.er-template-picker__grid{grid-template-columns:1fr}.er-template-card{padding:12px}.er-template-summary__meta{flex-direction:column}.er-template-summary__meta span{width:100%}}

.er-template-quickbar{
  border:1px solid #dbe4f0;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.er-template-quickbar__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.er-template-quickbar__title{font-size:15px;font-weight:900;color:#1f2a44;}
.er-template-quickbar__sub{font-size:12px;line-height:1.45;color:#667085;max-width:760px;}
.er-template-quickbar__buttons{display:flex;flex-wrap:wrap;gap:10px;}
.er-template-quickbar__btn{border-radius:999px;min-height:38px;padding:0 16px;font-weight:800;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.06);}
.er-template-quickbar__btn:hover{transform:translateY(-1px);}
.er-manual-tx-divider{display:flex;flex-direction:column;gap:4px;padding:8px 4px 0;}
.er-manual-tx-divider span{font-size:16px;font-weight:900;color:#1f2a44;}
.er-manual-tx-divider small{font-size:12px;color:#667085;}
.er-template-modal-form .er-grid{margin-top:12px;}
.er-template-modal-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px;}
.er-template-modal-preview__row{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;}
.er-template-modal-preview__row span{font-size:12px;color:#667085;}
.er-template-modal-preview__row strong{font-size:14px;color:#0f172a;line-height:1.35;}
@media (max-width: 900px){
  .er-template-modal-preview{grid-template-columns:1fr;}
}


.er-template-saved-block{
  border:1px solid #c9d6ea;
  background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%);
  border-radius:20px;
  padding:18px;
  box-shadow:0 10px 28px rgba(37,99,235,.08);
}
.er-template-saved-block__head{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;}
.er-template-saved-block__eyebrow{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#2f5fb7;}
.er-template-saved-block__title{font-size:20px;font-weight:900;color:#172554;line-height:1.1;}
.er-template-saved-block__sub{font-size:13px;line-height:1.45;color:#4b5b79;max-width:820px;}
.er-template-quickbar__buttons--big{gap:14px;}
.er-template-quickbar__btn--big{
  appearance:none;
  border:1px solid #1d4ed8;
  background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
  color:#fff;
  border-radius:18px;
  min-height:64px;
  padding:14px 18px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(37,99,235,.22);
}
.er-template-quickbar__btn--big:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(37,99,235,.26);}
.er-template-quickbar__btn-title{font-size:16px;line-height:1.1;}
.er-template-quickbar__btn-price{font-size:13px;line-height:1.1;opacity:.95;white-space:nowrap;}
.er-manual-tx-section{
  border-top:2px dashed #d3dce9;
  margin-top:6px;
  padding-top:18px;
}
.er-manual-tx-divider{
  background:#fff;
  border:1px solid #d9e2f0;
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.er-manual-tx-divider span{font-size:20px;line-height:1.1;}
.er-manual-tx-divider small{font-size:13px;line-height:1.45;max-width:760px;}
.er-manual-tx-grid-note{
  font-size:12px;
  color:#667085;
  background:#f8fafc;
  border:1px dashed #d7deea;
  border-radius:14px;
  padding:10px 12px;
}
@media (max-width: 980px){
  .er-template-quickbar__btn--big{width:100%;}
}

/* v2.7.77 operation templates top/manual layout */
.er-template-top-panel{
  margin:0 0 18px;
  padding:18px 18px 16px;
  background:linear-gradient(180deg,#eef4ff 0%,#e7f0ff 100%);
  border:1px solid #bfd2ff;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(28,72,147,.08);
}
.er-template-top-panel__head{margin-bottom:14px;}
.er-template-top-panel__title{
  font-size:22px;
  line-height:1.2;
  font-weight:800;
  color:#17315c;
  margin-bottom:4px;
}
.er-template-top-panel__sub{
  font-size:13px;
  line-height:1.45;
  color:#4b5b7b;
}
.er-template-top-panel__list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.er-template-top-panel__item{
  display:grid;
  grid-template-columns:minmax(280px,420px) minmax(260px,1fr);
  gap:16px;
  align-items:stretch;
}
.er-template-top-panel__btn{
  width:100%;
  min-height:66px;
  border:1px solid #1f56d8;
  border-radius:16px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(135deg,#2f6dff 0%,#2457d5 100%);
  color:#fff;
  font-weight:800;
  box-shadow:0 6px 16px rgba(37,99,235,.18);
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.er-template-top-panel__btn:hover{transform:translateY(-1px);filter:brightness(1.02);box-shadow:0 8px 20px rgba(37,99,235,.24);}
.er-template-top-panel__btn:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px;}
.er-template-top-panel__btn-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.er-template-top-panel__btn-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.24);
  font-size:11px;
  line-height:1;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.er-template-top-panel__btn-title{font-size:19px;line-height:1.15;text-align:left;}
.er-template-top-panel__btn-hint{
  font-size:12px;
  line-height:1.35;
  text-align:left;
  color:rgba(255,255,255,.86);
}
.er-template-top-panel__btn-side{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.er-template-top-panel__btn-price{font-size:18px;white-space:nowrap;opacity:.98;}
.er-template-top-panel__btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  color:#1f56d8;
  font-size:12px;
  font-weight:800;
  line-height:1;
}
.er-template-top-panel__conditions{
  border:1px solid #cddbf8;
  border-radius:16px;
  background:#fff;
  padding:14px 16px;
  box-shadow:0 4px 14px rgba(28,72,147,.06);
}
.er-template-top-panel__conditions-title{
  font-size:14px;
  font-weight:800;
  color:#1f3f79;
  margin-bottom:10px;
}
.er-template-top-panel__conditions-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-top:1px dashed #e2e9f7;
  color:#526481;
}
.er-template-top-panel__conditions-row:first-of-type{border-top:0;padding-top:0;}
.er-template-top-panel__conditions-row strong{color:#1f2b46;font-weight:800;}
.er-manual-tx-panel-head{
  margin:2px 0 4px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #dde5f3;
  border-radius:16px;
}
.er-manual-tx-panel-head__title{
  font-size:22px;
  line-height:1.2;
  font-weight:800;
  color:#1f2b46;
  margin-bottom:4px;
}
.er-manual-tx-panel-head__sub{
  font-size:13px;
  line-height:1.45;
  color:#6a7691;
}
.er-manual-tx-grid-note{
  padding:10px 14px;
  background:#f7f9fd;
  border:1px dashed #d6deee;
  border-radius:12px;
  color:#66748f;
}
@media (max-width: 767px){
  .er-template-top-panel__item{grid-template-columns:1fr;}
  .er-template-top-panel__btn{min-width:100%;min-height:64px;padding:14px 15px;}
  .er-template-top-panel__btn-title{font-size:17px;}
  .er-template-top-panel__btn-price{font-size:15px;}
  .er-template-top-panel__btn-hint{font-size:11px;}
  .er-template-top-panel__btn-side{align-items:flex-start;}
  .er-template-top-panel__title,.er-manual-tx-panel-head__title{font-size:18px;}
}


.er-template-top-panel__btn{min-height:84px;padding:14px 18px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}
.er-template-top-panel__btn.is-loading{opacity:.88;pointer-events:none}
.er-template-top-panel__btn-main{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.er-template-top-panel__btn-badge{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:rgba(255,255,255,.18);padding:4px 8px;border-radius:999px}
.er-template-top-panel__btn-title{font-size:21px;font-weight:800;line-height:1.15}
.er-template-top-panel__btn-hint{font-size:12px;opacity:.95}
.er-template-top-panel__btn-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.er-template-top-panel__btn-price{font-size:20px;font-weight:800}
.er-template-top-panel__btn-cta{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:999px;background:#ffffff;color:#1f4ed8;font-size:13px;font-weight:800;min-width:112px}
.er-template-top-panel__item{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:16px;align-items:stretch;margin-top:14px}
.er-template-top-panel__conditions{background:#fff;border:1px solid #d7e4ff;border-radius:18px;padding:14px 18px}
.er-template-top-panel__conditions-title{font-size:14px;font-weight:800;color:#193a77;margin-bottom:10px}
.er-template-top-panel__conditions-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px dashed #dbe5f4;font-size:13px}
.er-template-top-panel__conditions-row:first-of-type{border-top:0;padding-top:0}
.er-services-month-panel{margin-top:18px}
.er-services-month-stats{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.er-services-month-stat{background:#f4f7fd;border:1px solid #d7e4ff;border-radius:14px;padding:12px 16px;min-width:180px}
.er-services-month-stat__label{display:block;font-size:12px;color:#64748b;margin-bottom:6px}
.er-services-month-stat strong{font-size:22px;color:#183b78}
.er-services-employee-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:8px 0 16px}
.er-services-employee-card{background:#fff;border:1px solid #e1e9f5;border-radius:14px;padding:12px 14px}
.er-services-employee-card__name{font-weight:800;color:#173b77;margin-bottom:8px}
.er-services-employee-card__meta{font-size:13px;color:#50607a;margin-top:4px}
.er-table-services-month .er-empty-cell{text-align:center;color:#70819b;padding:16px}
@media (max-width: 980px){
  .er-template-top-panel__item{grid-template-columns:1fr}
  .er-template-top-panel__btn-title{font-size:18px}
  .er-template-top-panel__btn-price{font-size:17px}
}

/* v2.7.88: hide news author/date in topbar, show more news text */
.er-top-news-sub{display:none!important;}
.er-top-news-message{-webkit-line-clamp:3;}

/* v2.7.89: compact top news card - hide redundant label, more room for news text */
.er-top-news-title{display:none!important;}
.er-top-news-card{justify-content:center!important;padding:11px 16px!important;}
.er-top-news-message{margin-top:0!important;-webkit-line-clamp:4!important;font-size:13px!important;line-height:1.25!important;}
.er-top-news-card.is-empty .er-top-news-message,.er-top-news-card.is-loading .er-top-news-message{font-weight:800!important;color:rgba(15,23,42,.72)!important;}

/* v2.7.90: clean dashboard/news list card, no author/date, no solid color fill */
.er-news-card{
  background:#fff!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:18px!important;
  box-shadow:0 12px 34px rgba(15,23,42,.08)!important;
  padding:14px 16px 16px!important;
}
.er-news-head{
  margin-bottom:8px!important;
  align-items:center!important;
}
.er-news-title{
  font-size:15px!important;
  font-weight:900!important;
  color:#10203b!important;
}
.er-news-list{
  margin-top:8px!important;
  gap:10px!important;
}
.er-news-item{
  --er-news-item-accent:#2563eb;
  position:relative!important;
  background:linear-gradient(180deg,#ffffff,#fbfdff)!important;
  color:#111827!important;
  border:1px solid rgba(37,99,235,.18)!important;
  border-left:5px solid var(--er-news-item-accent)!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  box-shadow:0 8px 22px rgba(15,23,42,.06)!important;
  overflow:hidden!important;
}
.er-news-item::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(37,99,235,.07), transparent 42%);
  opacity:.75;
}
.er-news-item-main{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.er-news-item-copy{
  min-width:0;
  flex:1 1 auto;
}
.er-news-item-top{display:none!important;}
.er-news-item-meta{display:none!important;}
.er-news-item-title{
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#0f172a!important;
  margin:0 0 6px!important;
}
.er-news-item-msg{
  margin:0!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:600!important;
  color:#26344d!important;
  white-space:pre-wrap!important;
  word-break:break-word!important;
}
.er-news-item-actions{
  position:relative;
  flex:0 0 auto;
}
.er-news-del{
  background:#fff!important;
  border-color:rgba(15,23,42,.14)!important;
}

/* v2.7.91: hard fix dashboard news item even if old inline background is present */
.er-news-card .er-news-item,
.er-news-card .er-news-item[style]{
  background:#fff!important;
  background-image:linear-gradient(180deg,#ffffff,#fbfdff)!important;
  color:#111827!important;
  border:1px solid rgba(37,99,235,.18)!important;
  border-left:5px solid #2563eb!important;
}
.er-news-card .er-news-item-top,
.er-news-card .er-news-item-meta{display:none!important;}
.er-news-card .er-news-item-msg{color:#26344d!important;}

/* v2.7.92: попапы/окна редактирования не выходят за экран + 4 ДК в форме редактирования */
.er-drawer-backdrop,
.er-modal-backdrop{
  box-sizing: border-box;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
}

.er-drawer,
.er-modal{
  box-sizing: border-box;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  overflow: hidden;
}

.er-modal{
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

.er-drawer-body,
.er-modal-body,
[data-er-modal="actions"].er-modal-record-edit .er-modal-body{
  overflow: auto !important;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.er-drawer-body form[data-er-form="record_edit"],
.er-modal-body form[data-er-form="record_edit"]{
  min-width: 0;
}

.er-drawer-body form[data-er-form="record_edit"] .er-form-sections,
.er-modal-backdrop.er-modal-record-edit form[data-er-form="record_edit"] .er-form-sections,
.er-drawer-body form[data-er-form="record_edit"] .er-row,
.er-modal-body form[data-er-form="record_edit"] .er-row{
  min-width: 0;
}

.er-drawer-body form[data-er-form="record_edit"] input[name="dk_last4"],
.er-modal-body form[data-er-form="record_edit"] input[name="dk_last4"]{
  letter-spacing: .08em;
  font-weight: 800;
}

@media (max-width: 980px){
  .er-drawer,
  .er-modal{
    max-width: calc(100vw - 16px);
  }
}

@media (max-height: 760px){
  .er-drawer-backdrop{ padding-top: 42px; }
  .er-modal-backdrop{ padding-top: 10px; }
  .er-drawer{ max-height: calc(100vh - 50px); max-height: calc(100dvh - 50px); }
  .er-modal{ max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
}


/* v2.7.93: record modal must always stay fully visible inside viewport */
.er-modal-backdrop{
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-top: 44px !important;
  padding-right: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 12px !important;
}

.er-modal{
  width: min(980px, calc(100vw - 24px)) !important;
  width: min(980px, calc(100dvw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-width: calc(100dvw - 24px) !important;
  max-height: calc(100vh - 56px) !important;
  max-height: calc(100dvh - 56px) !important;
  margin: 0 auto !important;
}

.er-modal-body,
[data-er-modal="actions"].er-modal-record-edit .er-modal-body{
  overflow: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  -webkit-overflow-scrolling: touch;
}

.er-modal-body form[data-er-form="record_edit"],
.er-modal-body form[data-er-form="record_edit"] .er-form-sections,
.er-modal-body form[data-er-form="record_edit"] .er-card,
.er-modal-body form[data-er-form="record_edit"] .er-row{
  min-width: 0 !important;
}

@media (max-width: 1200px){
  .er-modal{
    width: calc(100vw - 20px) !important;
    width: calc(100dvw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-width: calc(100dvw - 20px) !important;
  }
}

@media (max-height: 860px){
  .er-modal-backdrop{
    padding-top: 38px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
  }
  .er-modal{
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
  }
}


/* v2.7.94: одинаковое нормальное отображение окна "Подробнее" у эксперта, управляющего и администратора.
   В некоторых ролях оболочка кабинета/темы сжимала fixed-попап внутри контента страницы.
   Поэтому окно принудительно ведёт себя как viewport-level overlay. */
.er-drawer-backdrop,
.er-modal-backdrop{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-sizing: border-box !important;
}

.er-drawer-backdrop{
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 44px 14px 14px !important;
}

.er-drawer{
  width: min(1280px, calc(100vw - 28px)) !important;
  width: min(1280px, calc(100dvw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  max-width: calc(100dvw - 28px) !important;
  max-height: calc(100vh - 58px) !important;
  max-height: calc(100dvh - 58px) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.er-drawer-head{
  flex: 0 0 auto !important;
  display: flex !important;
}

.er-drawer-body{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 760px){
  .er-drawer-backdrop{ padding-top: 38px !important; }
  .er-drawer{
    max-height: calc(100vh - 50px) !important;
    max-height: calc(100dvh - 50px) !important;
  }
}

/* Employee-based shift schedule board v2.9.22 */
.er-shift-global-hint{margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(59,130,246,.08);color:#334155;font-weight:600;}
.er-shift-all-employees-grid{display:grid;grid-template-columns:1fr;gap:18px;}
.er-shift-employee-block{border:1px solid rgba(15,23,42,.10);border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.06);overflow:hidden;}
.er-shift-employee-block-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;border-bottom:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);}
.er-shift-employee-block-title{font-size:18px;font-weight:900;color:#0f172a;line-height:1.2;}
.er-shift-employee-block-meta{font-size:13px;color:#64748b;margin-top:4px;font-weight:650;}
.er-shift-employee-block-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.er-shift-employee-block-body{display:grid;grid-template-columns:minmax(360px,520px) 1fr;gap:18px;padding:18px;align-items:start;}
.er-shift-employee-calendar-wrap{display:grid;gap:12px;}
.er-shift-employee-calendar-wrap .er-shift-month-card{max-width:100%;width:100%;box-shadow:none;margin:0;}
.er-shift-employee-settings{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:14px;align-items:start;}
.er-shift-settings-box{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fbfdff;padding:14px;}
.er-shift-settings-box.is-accent{background:linear-gradient(180deg,rgba(236,253,245,.8),#fff);border-color:rgba(34,197,94,.22);}
.er-shift-settings-title{font-size:15px;font-weight:900;color:#0f172a;margin-bottom:10px;}
.er-shift-card-form{display:grid;gap:10px;}
.er-shift-card-form .er-field{margin:0;}
.er-shift-card-form .er-checklist{display:flex;flex-wrap:wrap;gap:6px;}
.er-shift-weekday-checks .er-checklist-row{min-width:auto;padding:7px 9px;border-radius:10px;}
.er-shift-branch-stat-table{margin-top:10px;}
.er-shift-branch-stat-table .er-table-compact th,.er-shift-branch-stat-table .er-table-compact td{padding:7px 9px;font-size:12px;}
.er-shift-branch-stat-table .er-num{text-align:right;font-weight:800;}
@media (max-width: 1280px){
  .er-shift-employee-block-body{grid-template-columns:1fr;}
  .er-shift-employee-settings{grid-template-columns:1fr 1fr;}
}
@media (max-width: 760px){
  .er-shift-employee-block-head{padding:14px;}
  .er-shift-employee-block-body{padding:14px;}
  .er-shift-employee-settings{grid-template-columns:1fr;}
}

/* 2.9.23 — Compact employee shift calendar board */
.er-shift-all-employees-grid{gap:12px;}
.er-shift-employee-block{border-radius:16px;box-shadow:0 8px 20px rgba(15,23,42,.045);}
.er-shift-employee-block-head{padding:10px 14px;align-items:center;}
.er-shift-employee-block-title{font-size:16px;}
.er-shift-employee-block-meta{font-size:12px;margin-top:2px;}
.er-shift-employee-block-body{grid-template-columns:minmax(280px,340px) 1fr;gap:12px;padding:12px;}
.er-shift-employee-calendar-wrap{gap:8px;}
.er-shift-employee-calendar-wrap .er-shift-month-card{max-width:340px;padding:8px 8px 7px;border-radius:12px;}
.er-shift-employee-calendar-wrap .er-shift-month-title{font-size:18px;margin-bottom:6px;}
.er-shift-employee-calendar-wrap .er-shift-month-weekdays{margin-bottom:2px;}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{padding:3px 0;font-size:10px;}
.er-shift-employee-calendar-wrap .er-shift-month-cell{min-height:30px;padding:4px 5px;}
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:30px;}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{font-size:12px;}
.er-shift-employee-calendar-wrap .er-shift-month-note{left:3px;right:3px;bottom:2px;font-size:7.5px;line-height:1.05;max-height:9px;}
.er-shift-employee-calendar-wrap .er-shift-month-stats{padding-top:6px;font-size:13px;line-height:1.25;grid-template-columns:repeat(2,minmax(0,1fr));}
.er-shift-employee-calendar-wrap .er-shift-month-legend{display:none;}
.er-shift-settings-box{padding:10px;border-radius:14px;}
.er-shift-settings-title{font-size:13px;margin-bottom:8px;}
.er-shift-card-form{gap:7px;}
.er-shift-card-form .er-field label{font-size:11px;margin-bottom:4px;}
.er-shift-card-form input,
.er-shift-card-form select{min-height:34px;padding:7px 10px;font-size:13px;}
.er-shift-card-form .er-btn{min-height:34px;padding:7px 10px;font-size:12px;}
.er-shift-branch-stat-table{margin-top:6px;}
.er-shift-branch-stat-table .er-table-compact th,
.er-shift-branch-stat-table .er-table-compact td{padding:5px 7px;font-size:11px;}
@media (min-width: 1281px){
  .er-shift-employee-settings{grid-template-columns:repeat(2,minmax(250px,1fr));gap:10px;}
}
@media (max-width: 1280px){
  .er-shift-employee-block-body{grid-template-columns:minmax(260px,320px) 1fr;}
  .er-shift-employee-settings{grid-template-columns:repeat(2,minmax(230px,1fr));gap:10px;}
}
@media (max-width: 980px){
  .er-shift-employee-block-body{grid-template-columns:1fr;}
  .er-shift-employee-calendar-wrap .er-shift-month-card{max-width:360px;}
}
@media (max-width: 760px){
  .er-shift-employee-block-head{padding:10px 12px;}
  .er-shift-employee-block-body{padding:10px;}
  .er-shift-employee-settings{grid-template-columns:1fr;}
  .er-shift-employee-calendar-wrap .er-shift-month-card{max-width:100%;}
}

/* 2.9.24 — Fixed shift schedule board layout: compact calendar, no overlapping tables/forms */
.er-shift-all-employees-grid{
  gap:14px !important;
}
.er-shift-employee-block{
  overflow:hidden !important;
}
.er-shift-employee-block-body{
  display:grid !important;
  grid-template-columns:260px minmax(0,1fr) !important;
  gap:14px !important;
  align-items:start !important;
  padding:12px 14px !important;
}
.er-shift-employee-calendar-wrap{
  width:260px !important;
  max-width:260px !important;
  min-width:0 !important;
  overflow:hidden !important;
  align-self:start !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-card{
  width:260px !important;
  max-width:260px !important;
  min-width:0 !important;
  padding:7px !important;
  margin:0 !important;
  border-radius:12px !important;
  box-sizing:border-box !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-title{
  font-size:16px !important;
  line-height:1.1 !important;
  margin:0 0 5px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-weekdays{
  margin-bottom:1px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{
  padding:2px 0 !important;
  font-size:9px !important;
  line-height:1.15 !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-cell,
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{
  min-height:25px !important;
  padding:3px 4px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{
  font-size:11px !important;
  line-height:1 !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-note{
  left:2px !important;
  right:2px !important;
  bottom:1px !important;
  font-size:6.5px !important;
  line-height:1 !important;
  max-height:7px !important;
  overflow:hidden !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-stats{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:4px !important;
  padding-top:5px !important;
  font-size:11px !important;
  line-height:1.15 !important;
  text-align:center !important;
}
.er-shift-branch-stat-table{
  width:260px !important;
  max-width:260px !important;
  overflow:hidden !important;
  margin-top:7px !important;
}
.er-shift-branch-stat-table table,
.er-shift-branch-stat-table .er-table,
.er-shift-branch-stat-table .er-table-compact{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
}
.er-shift-branch-stat-table th,
.er-shift-branch-stat-table td{
  padding:4px 5px !important;
  font-size:10px !important;
  line-height:1.2 !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.er-shift-branch-stat-table th:nth-child(1),
.er-shift-branch-stat-table td:nth-child(1){width:34% !important;}
.er-shift-branch-stat-table th:nth-child(2),
.er-shift-branch-stat-table td:nth-child(2){width:18% !important;text-align:center !important;}
.er-shift-branch-stat-table th:nth-child(3),
.er-shift-branch-stat-table td:nth-child(3){width:48% !important;}
.er-shift-employee-settings{
  display:grid !important;
  grid-template-columns:minmax(320px,0.95fr) minmax(360px,1.05fr) !important;
  gap:12px !important;
  min-width:0 !important;
  align-items:start !important;
}
.er-shift-settings-box{
  min-width:0 !important;
  padding:12px !important;
  border-radius:14px !important;
  overflow:hidden !important;
}
.er-shift-settings-title{
  font-size:13px !important;
  line-height:1.2 !important;
  margin-bottom:8px !important;
}
.er-shift-card-form{
  display:grid !important;
  gap:7px !important;
  min-width:0 !important;
}
.er-shift-card-form .er-field,
.er-shift-card-form .er-field-wide{
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
}
.er-shift-card-form input,
.er-shift-card-form select,
.er-shift-card-form textarea{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  min-height:32px !important;
  padding:6px 9px !important;
  font-size:12px !important;
}
.er-shift-card-form .er-btn{
  width:100% !important;
  min-height:32px !important;
  padding:6px 10px !important;
  font-size:12px !important;
}
.er-shift-weekday-checks .er-checklist-row{
  padding:5px 7px !important;
  border-radius:9px !important;
  font-size:11px !important;
}
@media (max-width: 1180px){
  .er-shift-employee-block-body{
    grid-template-columns:240px minmax(0,1fr) !important;
  }
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card,
  .er-shift-branch-stat-table{
    width:240px !important;
    max-width:240px !important;
  }
  .er-shift-employee-settings{
    grid-template-columns:1fr !important;
  }
}
@media (max-width: 760px){
  .er-shift-employee-block-body{
    grid-template-columns:1fr !important;
  }
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card,
  .er-shift-branch-stat-table{
    width:100% !important;
    max-width:100% !important;
  }
}

/* 2.9.25 — Shift schedule layout: larger readable calendar, smaller settings panels */
.er-shift-employee-block-body{
  grid-template-columns:380px minmax(0,1fr) !important;
  gap:14px !important;
  align-items:start !important;
}
.er-shift-employee-calendar-wrap{
  width:380px !important;
  max-width:380px !important;
  overflow:visible !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-card{
  width:380px !important;
  max-width:380px !important;
  padding:10px !important;
  border-radius:14px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-title{
  font-size:19px !important;
  margin:0 0 8px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{
  padding:4px 0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-cell,
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{
  min-height:40px !important;
  padding:5px 6px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{
  font-size:13px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-note{
  left:4px !important;
  right:4px !important;
  bottom:3px !important;
  font-size:8.5px !important;
  line-height:1.05 !important;
  max-height:18px !important;
  white-space:normal !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-stats{
  padding-top:7px !important;
  font-size:12px !important;
  line-height:1.2 !important;
}
.er-shift-branch-stat-table{
  width:380px !important;
  max-width:380px !important;
  margin-top:8px !important;
}
.er-shift-branch-stat-table th,
.er-shift-branch-stat-table td{
  padding:5px 6px !important;
  font-size:10.5px !important;
  line-height:1.25 !important;
}
.er-shift-employee-settings{
  display:grid !important;
  grid-template-columns:320px 420px !important;
  gap:10px !important;
  max-width:750px !important;
  min-width:0 !important;
  align-items:start !important;
  justify-content:start !important;
}
.er-shift-settings-box{
  padding:10px !important;
  border-radius:12px !important;
}
.er-shift-settings-title{
  font-size:12.5px !important;
  margin-bottom:6px !important;
}
.er-shift-card-form{
  gap:5px !important;
}
.er-shift-card-form .er-field label{
  font-size:10.5px !important;
  margin-bottom:3px !important;
}
.er-shift-card-form input,
.er-shift-card-form select,
.er-shift-card-form textarea{
  min-height:28px !important;
  padding:5px 8px !important;
  font-size:11.5px !important;
}
.er-shift-card-form textarea{
  min-height:34px !important;
  max-height:46px !important;
}
.er-shift-card-form .er-btn{
  min-height:28px !important;
  padding:5px 9px !important;
  font-size:11.5px !important;
}
@media (max-width: 1320px){
  .er-shift-employee-block-body{grid-template-columns:350px minmax(0,1fr) !important;}
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card,
  .er-shift-branch-stat-table{width:350px !important;max-width:350px !important;}
  .er-shift-employee-settings{grid-template-columns:300px 380px !important;max-width:690px !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-cell,
  .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:37px !important;}
}
@media (max-width: 1120px){
  .er-shift-employee-block-body{grid-template-columns:1fr !important;}
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card,
  .er-shift-branch-stat-table{width:100% !important;max-width:420px !important;}
  .er-shift-employee-settings{grid-template-columns:1fr 1fr !important;max-width:100% !important;}
}
@media (max-width: 760px){
  .er-shift-employee-settings{grid-template-columns:1fr !important;}
}

/* 2.9.26 — Employee shift board: readable calendar + compact controls */
.er-shift-all-employees-grid{
  gap:16px !important;
}
.er-shift-employee-block{
  border-radius:18px !important;
}
.er-shift-employee-block-head{
  padding:9px 14px !important;
}
.er-shift-employee-block-body{
  display:grid !important;
  grid-template-columns:520px minmax(540px, 720px) !important;
  gap:14px !important;
  align-items:start !important;
  padding:12px 14px 14px !important;
}
.er-shift-employee-calendar-wrap{
  width:520px !important;
  max-width:520px !important;
  overflow:visible !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-card{
  width:520px !important;
  max-width:520px !important;
  padding:12px !important;
  border-radius:16px !important;
  box-shadow:0 8px 22px rgba(15,23,42,.06) !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-title{
  font-size:22px !important;
  line-height:1.15 !important;
  margin:0 0 10px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{
  padding:5px 0 !important;
  font-size:12px !important;
  line-height:1.2 !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-cell,
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{
  min-height:54px !important;
  padding:6px 7px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{
  font-size:15px !important;
  line-height:1.05 !important;
  font-weight:900 !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-note{
  left:5px !important;
  right:5px !important;
  bottom:4px !important;
  font-size:10px !important;
  line-height:1.12 !important;
  max-height:24px !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:clip !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-stats{
  display:flex !important;
  justify-content:center !important;
  gap:26px !important;
  padding-top:8px !important;
  font-size:13px !important;
  line-height:1.2 !important;
}
.er-shift-branch-stat-table{
  width:520px !important;
  max-width:520px !important;
  margin-top:8px !important;
}
.er-shift-branch-stat-table th,
.er-shift-branch-stat-table td{
  padding:6px 8px !important;
  font-size:12px !important;
  line-height:1.3 !important;
}
.er-shift-employee-settings{
  display:grid !important;
  grid-template-columns:260px 320px !important;
  gap:10px !important;
  max-width:600px !important;
  min-width:0 !important;
  align-items:start !important;
  justify-content:start !important;
}
.er-shift-settings-box{
  padding:9px !important;
  border-radius:12px !important;
}
.er-shift-settings-title{
  font-size:12px !important;
  line-height:1.2 !important;
  margin:0 0 6px !important;
}
.er-shift-card-form{
  gap:5px !important;
}
.er-shift-card-form .er-field label{
  font-size:10px !important;
  line-height:1.15 !important;
  margin-bottom:3px !important;
}
.er-shift-card-form input,
.er-shift-card-form select,
.er-shift-card-form textarea{
  min-height:30px !important;
  padding:5px 8px !important;
  font-size:12px !important;
  border-radius:8px !important;
}
.er-shift-card-form textarea,
.er-shift-card-form input[name="override_note"]{
  min-height:30px !important;
}
.er-shift-card-form .er-btn{
  min-height:28px !important;
  padding:5px 8px !important;
  font-size:11px !important;
  border-radius:8px !important;
}
@media (max-width: 1500px){
  .er-shift-employee-block-body{grid-template-columns:500px minmax(520px, 620px) !important;}
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card,
  .er-shift-branch-stat-table{width:500px !important;max-width:500px !important;}
  .er-shift-employee-settings{grid-template-columns:250px 300px !important;max-width:560px !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-cell,
  .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:51px !important;}
}
@media (max-width: 1240px){
  .er-shift-employee-block-body{grid-template-columns:1fr !important;}
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card,
  .er-shift-branch-stat-table{width:100% !important;max-width:560px !important;}
  .er-shift-employee-settings{grid-template-columns:260px 320px !important;max-width:600px !important;}
}
@media (max-width: 760px){
  .er-shift-employee-settings{grid-template-columns:1fr !important;max-width:100% !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-cell,
  .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:46px !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-note{display:block !important;font-size:8.5px !important;}
}

/* 2.9.27 shift calendar final readability + quick actions */
.er-shift-employee-block-body{
  grid-template-columns:minmax(560px, 660px) minmax(560px, 640px) !important;
  gap:28px !important;
  align-items:start;
}
.er-shift-employee-calendar-wrap,
.er-shift-employee-calendar-wrap .er-shift-month-card{
  width:100% !important;
  max-width:640px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-card{
  padding:14px 14px 12px !important;
  border-radius:18px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-title{
  font-size:36px !important;
  margin-bottom:12px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{
  padding:8px 0 !important;
  font-size:13px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-cell,
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{
  min-height:72px !important;
  padding:7px 7px 22px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-cell{
  cursor:pointer;
}
.er-shift-employee-calendar-wrap .er-shift-month-cell:hover{
  box-shadow:inset 0 0 0 2px rgba(37,99,235,.18);
  transform:translateY(-1px);
}
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-selected{
  box-shadow:inset 0 0 0 2px rgba(37,99,235,.42) !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{
  font-size:20px !important;
}
.er-shift-employee-calendar-wrap .er-shift-month-note{
  left:5px !important;
  right:5px !important;
  bottom:5px !important;
  font-size:9px !important;
  line-height:1.12 !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:clip !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  max-height:20px;
}
.er-shift-employee-calendar-wrap .er-shift-month-stats{
  padding-top:10px !important;
  font-size:15px !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.er-shift-employee-settings{
  grid-template-columns:280px 280px !important;
  justify-content:start !important;
  align-content:start !important;
  max-width:none !important;
  margin-left:auto !important;
  gap:14px !important;
}
.er-shift-settings-box{
  padding:12px !important;
  border-radius:16px !important;
}
.er-shift-settings-title{
  font-size:14px !important;
  margin-bottom:8px !important;
}
.er-shift-card-form .er-field{
  margin-bottom:8px;
}
.er-shift-card-form .er-field label{
  font-size:12px;
}
.er-shift-card-form input,
.er-shift-card-form select{
  min-height:36px;
  font-size:13px;
}
.er-shift-quick-actions{
  margin:10px 0 2px;
  padding:12px 14px;
  border:1px solid rgba(37,99,235,.18);
  background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-radius:14px;
}
.er-shift-quick-actions-title{font-size:14px;font-weight:900;color:#0f172a;}
.er-shift-quick-actions-sub{margin-top:4px;font-size:12px;color:#64748b;}
.er-shift-day-info{display:flex;flex-direction:column;gap:10px;min-height:160px;}
.er-shift-day-info-empty{font-size:13px;line-height:1.5;color:#64748b;padding:10px 0;}
.er-shift-day-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.er-shift-day-info-item{padding:10px 12px;border:1px solid #dbe3f0;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:4px;}
.er-shift-day-info-item span{font-size:11px;line-height:1.3;text-transform:uppercase;letter-spacing:.03em;color:#64748b;font-weight:700;}
.er-shift-day-info-item strong{font-size:14px;line-height:1.45;color:#0f172a;}
.er-shift-day-info-item--wide{grid-column:1 / -1;}
.er-shift-quick-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;}
.er-shift-quick-time-grid .er-field{margin:0;}
.er-shift-quick-actions-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.er-shift-branch-stat-table .er-table td,
.er-shift-branch-stat-table .er-table th{font-size:12px;}
@media (max-width: 1680px){
  .er-shift-employee-block-body{grid-template-columns:minmax(520px, 1fr) minmax(540px, 620px) !important;}
  .er-shift-employee-settings{grid-template-columns:260px 260px !important;}
  .er-shift-quick-time-grid{grid-template-columns:1fr;}
  .er-shift-day-info-grid{grid-template-columns:1fr;}
}
@media (max-width: 1440px){
  .er-shift-employee-block-body{grid-template-columns:1fr !important;}
  .er-shift-employee-calendar-wrap,
  .er-shift-employee-calendar-wrap .er-shift-month-card{max-width:100% !important;}
  .er-shift-employee-settings{grid-template-columns:repeat(2,minmax(260px,1fr)) !important;margin-left:0 !important;}
}
@media (max-width: 960px){
  .er-shift-employee-settings{grid-template-columns:1fr !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-title{font-size:28px !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-cell,
  .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:60px !important;}
  .er-shift-employee-calendar-wrap .er-shift-month-note{font-size:8px !important;}
}

/* 2.9.29 quick branch picker in shift quick actions */
.er-shift-quick-branch-field{margin-top:10px;margin-bottom:4px;}
.er-shift-quick-branch-field label{display:block;margin-bottom:6px;font-size:12px;font-weight:700;color:#334155;}
.er-shift-quick-branch-field select{width:100%;min-height:36px;font-size:13px;}


/* ===== ER PRO improved date period picker v2.9.42 ===== */
input[type="date"].er-date-input{
  min-height:40px;
  cursor:pointer;
  font-variant-numeric:tabular-nums;
}
input[type="date"].er-date-input::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.8;
  transform:scale(1.12);
}
.er-date-quick{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:7px;
}
.er-date-quick-btn{
  appearance:none;
  border:1px solid rgba(37,99,235,.18);
  background:rgba(37,99,235,.06);
  color:#1d4ed8;
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  cursor:pointer;
}
.er-date-quick-btn:hover{
  background:rgba(37,99,235,.12);
  border-color:rgba(37,99,235,.32);
}
.er-date-quick-btn[data-er-date-preset="clear"]{
  color:#64748b;
  background:rgba(100,116,139,.07);
  border-color:rgba(100,116,139,.18);
}
@media (max-width: 760px){
  .er-date-quick{gap:5px;}
  .er-date-quick-btn{padding:7px 10px;font-size:12px;}
}

/* ER PRO visible date period controls v2.9.45 */
.er-date-input-v245,
input[type="date"].er-date-input-v245{
  min-height: 38px;
  border-color: #cbd5e1;
  background-color: #fff;
}
.er-date-period-tools,
.er-single-date-tools{
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
.er-date-period-btn,
.er-single-date-btn{
  appearance: none;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
}
.er-date-period-btn:hover,
.er-single-date-btn:hover{
  background: #eff6ff;
  border-color: #60a5fa;
}
.er-date-period-clear{
  color: #b91c1c;
  border-color: #fecaca;
}
.er-date-period-clear:hover{ background:#fff1f2; border-color:#fca5a5; }
@media (max-width: 700px){
  .er-date-period-tools,.er-single-date-tools{gap:5px;padding:7px;}
  .er-date-period-btn,.er-single-date-btn{font-size:11px;padding:6px 8px;}
}

/* ER PRO hard visible period buttons v2.9.47 */
.er-period-presets{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  width:100% !important;
  margin:8px 0 0 !important;
  padding:8px !important;
  border:1px solid #dbeafe !important;
  background:#eff6ff !important;
  border-radius:12px !important;
  box-sizing:border-box !important;
  grid-column:1 / -1 !important;
}
.er-period-preset-btn{
  appearance:none !important;
  border:1px solid #bfdbfe !important;
  background:#ffffff !important;
  color:#1d4ed8 !important;
  border-radius:999px !important;
  padding:6px 10px !important;
  font-size:12px !important;
  line-height:1.1 !important;
  font-weight:700 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
  box-shadow:none !important;
}
.er-period-preset-btn:hover{
  background:#dbeafe !important;
  border-color:#60a5fa !important;
  color:#1e40af !important;
}
.er-period-preset-clear{
  border-color:#fecaca !important;
  color:#b91c1c !important;
  background:#fff7f7 !important;
}
.er-date-input-hard{
  min-width:140px !important;
}
@media (max-width: 720px){
  .er-period-presets{gap:5px !important;padding:7px !important;}
  .er-period-preset-btn{font-size:11px !important;padding:6px 8px !important;}
}


/* 2.9.49 — график смен: текущая дата выделяется красным */
.er-shift-month-cell.is-today{
  outline:3px solid rgba(220,38,38,.92) !important;
  outline-offset:-3px !important;
  box-shadow:inset 0 0 0 2px rgba(220,38,38,.22), 0 0 0 2px rgba(220,38,38,.10) !important;
}
.er-shift-month-cell.is-today .er-shift-month-daynum{
  color:#b91c1c !important;
  font-weight:1000 !important;
}
.er-shift-month-legend i.is-today{
  background:rgba(220,38,38,.14) !important;
  border-color:rgba(220,38,38,.92) !important;
}
.er-shift-gap-alert{
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid rgba(220,38,38,.35);
  background:rgba(254,242,242,.96);
  color:#7f1d1d;
  border-radius:14px;
  font-weight:800;
}
.er-shift-gap-alert small{display:block;margin-top:4px;font-weight:700;color:#991b1b;}

/* v2.9.52: отдельная вкладка Лиги экспертов и подробная расшифровка качества CRM */
.er-league-page-card{margin-top:0;}
.er-league-admin-note{margin:10px 0 14px;padding:12px 14px;border-radius:14px;background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.18);color:#1f2937;line-height:1.45;}
.er-league-settings{margin:12px 0 14px;padding:14px;border-radius:16px;background:rgba(15,123,69,.08);border:1px solid rgba(15,123,69,.20);}
.er-checkline{display:flex;align-items:center;gap:10px;font-weight:800;line-height:1.35;}
.er-checkline input{width:18px;height:18px;flex:0 0 auto;}
.er-league-detail-card{margin:14px 0;padding:14px;border:1px solid rgba(15,23,42,.12);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06);}
.er-league-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;}
.er-league-detail-head h4{margin:0 0 4px;font-size:17px;font-weight:900;color:#111827;}
.er-league-detail-score{font-size:24px;font-weight:950;color:#0f7b45;white-space:nowrap;}
.er-league-detail-metrics{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin:10px 0 12px;}
.er-league-detail-metrics>div{padding:10px;border-radius:14px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);}
.er-league-detail-metrics span{display:block;font-size:11px;color:#64748b;font-weight:800;margin-bottom:4px;}
.er-league-detail-metrics b{font-size:15px;color:#111827;}
.er-league-detail-warning{margin:10px 0 12px;padding:10px 12px;border-radius:14px;background:#fff7ed;border:1px solid rgba(251,146,60,.35);line-height:1.45;}
.er-league-detail-table th,.er-league-detail-table td{vertical-align:middle;}
@media (max-width: 980px){.er-league-detail-head{display:block}.er-league-detail-score{margin-top:8px}.er-league-detail-metrics{grid-template-columns:1fr 1fr}.er-checkline{align-items:flex-start}}
@media (max-width: 560px){.er-league-detail-metrics{grid-template-columns:1fr}}

/* Expert League separate navigation item */
.er-nav-item-important .er-nav-ico{font-weight:900;}
.er-nav-item-important .er-nav-txt{font-weight:800;}

/* Expert League month controls and rating details */
.er-league-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;}
.er-league-month-picker{display:flex;align-items:end;gap:8px;flex-wrap:wrap;}
.er-league-month-picker label{display:block;width:100%;font-size:11px;font-weight:800;color:#64748b;margin-bottom:2px;}
.er-league-month-picker input[type="month"]{height:38px;border:1px solid var(--er-border,#d8dee8);border-radius:10px;padding:0 10px;background:#fff;}
.er-league-formula{margin:12px 0;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid rgba(15,23,42,.10);line-height:1.5;}
.er-league-formula-title{font-weight:900;margin-bottom:6px;color:#111827;}
.er-league-formula-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px;}
.er-league-formula-grid>div{padding:9px 10px;border-radius:12px;background:#fff;border:1px solid rgba(15,23,42,.08);}
.er-league-formula-grid span{display:block;font-size:11px;color:#64748b;font-weight:800;margin-bottom:3px;}
.er-league-formula-grid b{font-size:14px;color:#111827;}
@media (max-width:900px){.er-league-formula-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.er-league-formula-grid{grid-template-columns:1fr}.er-league-month-picker{width:100%}.er-league-month-picker input[type="month"],.er-league-month-picker .er-btn{width:100%}}


/* Clean settings UI */
.er-settings-clean{ max-width: none; }
.er-settings-layout{ display:flex; flex-direction:column; gap:16px; }
.er-settings-card{ border:1px solid rgba(15,23,42,.10); background:#fff; border-radius:18px; padding:18px; box-shadow:0 10px 28px rgba(15,23,42,.05); }
.er-settings-card-main{ background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%); }
.er-settings-card-telegram{ border-color:rgba(15,123,69,.20); background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%); }
.er-settings-card-max{ border-color:rgba(37,99,235,.22); background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%); }
.er-settings-max-webhook{ margin-top:12px; padding:12px; border:1px dashed rgba(37,99,235,.28); border-radius:14px; background:rgba(255,255,255,.74); }
.er-settings-max-webhook code{ display:block; margin:6px 0; padding:10px 12px; border-radius:10px; background:#0f172a; color:#e0f2fe; white-space:normal; word-break:break-all; }
.er-settings-card-logo{ background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%); }
.er-settings-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px; }
.er-settings-card-title{ font-size:18px; line-height:1.2; font-weight:900; color:#0f172a; }
.er-settings-card-sub{ margin-top:4px; color:#64748b; font-weight:600; font-size:12px; line-height:1.35; }
.er-settings-grid{ display:grid; gap:14px; }
.er-settings-grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.er-settings-clean .er-field label{ display:block; margin:0 0 7px; font-weight:800; color:#334155; font-size:12px; }
.er-settings-clean .er-field input,
.er-settings-clean .er-field select{ width:100%; min-height:42px; border-radius:12px; border:1px solid rgba(15,23,42,.14); background:#fff; padding:0 12px; font-weight:700; box-shadow:0 1px 0 rgba(15,23,42,.03); }
.er-settings-clean .er-field input:focus,
.er-settings-clean .er-field select:focus{ outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.er-settings-clean .er-color-clean{ padding:4px!important; cursor:pointer; }
.er-settings-note{ margin-top:6px; color:#64748b; font-size:12px; font-weight:600; line-height:1.35; }
.er-settings-toggle{ margin-top:14px; display:flex; align-items:flex-start; gap:10px; padding:12px; border-radius:14px; background:#f8fafc; border:1px solid rgba(15,23,42,.08); cursor:pointer; }
.er-settings-toggle input{ margin-top:3px; width:18px; height:18px; }
.er-settings-toggle b{ display:block; color:#0f172a; font-size:13px; }
.er-settings-toggle em{ display:block; margin-top:3px; color:#64748b; font-style:normal; font-size:12px; line-height:1.35; }
.er-settings-switch{ position:relative; display:inline-flex; align-items:center; cursor:pointer; user-select:none; }
.er-settings-switch input{ position:absolute; opacity:0; pointer-events:none; }
.er-settings-switch span{ width:54px; height:30px; border-radius:999px; background:#cbd5e1; display:block; position:relative; box-shadow:inset 0 0 0 1px rgba(15,23,42,.08); transition:.18s ease; }
.er-settings-switch span:before{ content:""; position:absolute; width:24px; height:24px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(15,23,42,.20); transition:.18s ease; }
.er-settings-switch input:checked + span{ background:#16a34a; }
.er-settings-switch input:checked + span:before{ transform:translateX(24px); }
.er-settings-token-field{ position:relative; }
.er-settings-token-field input{ padding-right:86px!important; }
.er-token-eye{ position:absolute; right:7px; bottom:6px; min-height:30px; border:0; border-radius:9px; background:#eef2ff; color:#1d4ed8; font-weight:900; font-size:11px; padding:0 10px; cursor:pointer; }
.er-settings-telegram-info{ margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.er-settings-telegram-info div{ border:1px solid rgba(22,163,74,.14); background:rgba(255,255,255,.72); border-radius:14px; padding:10px 12px; color:#334155; font-size:12px; line-height:1.45; }
.er-settings-actions-inline{ margin-top:12px; }
.er-settings-logo-row{ display:flex; gap:16px; align-items:center; }
.er-settings-logo-preview{ flex:0 0 76px; width:76px; min-height:76px; display:flex; align-items:center; justify-content:center; border-radius:18px; background:#f8fafc; border:1px solid rgba(15,23,42,.08); overflow:hidden; }
.er-settings-logo-preview .er-logo-preview{ margin:0; }
.er-settings-logo-preview img{ max-width:60px; max-height:60px; object-fit:contain; }
.er-settings-logo-controls{ flex:1; min-width:0; }
.er-settings-logo-controls > label{ display:block; margin-bottom:7px; font-weight:800; color:#334155; font-size:12px; }
.er-settings-logo-inputs{ display:flex; gap:8px; align-items:center; }
.er-settings-logo-inputs input{ flex:1; min-width:0; min-height:42px; border-radius:12px; border:1px solid rgba(15,23,42,.14); padding:0 12px; font-weight:700; }
.er-settings-footer{ position:sticky; bottom:0; z-index:3; margin-top:14px; padding:12px 0 0; background:linear-gradient(180deg,rgba(255,255,255,0),#fff 38%); display:flex; justify-content:flex-start; }
.er-settings-footer .er-btn{ min-width:170px; min-height:44px; border-radius:13px; font-weight:900; }
@media (max-width:1100px){ .er-settings-grid-3{ grid-template-columns:1fr 1fr; } .er-settings-telegram-info{ grid-template-columns:1fr; } }
@media (max-width:720px){ .er-settings-grid-3{ grid-template-columns:1fr; } .er-settings-card{ padding:14px; } .er-settings-logo-row{ align-items:flex-start; } .er-settings-logo-inputs{ flex-wrap:wrap; } .er-settings-logo-inputs input{ flex-basis:100%; } }


/* === Cash system polish 2.9.69 === */
.er-cash-overview{
  background:linear-gradient(135deg,#f8fafc 0%,#eef6ff 100%);
  border:1px solid rgba(148,163,184,.28);
  border-radius:22px;
  padding:18px;
  margin:0 0 14px;
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}
.er-cash-overview__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;}
.er-cash-overview__head h3{margin:2px 0 4px;font-size:22px;line-height:1.15;}
.er-cash-overview__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.er-cash-overview__item{background:#fff;border:1px solid rgba(148,163,184,.24);border-radius:16px;padding:12px 14px;}
.er-cash-overview__item span{display:block;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px;}
.er-cash-overview__item strong{display:block;font-size:20px;line-height:1.15;color:#0f172a;}
.er-cash-overview__note{margin-top:12px;border-radius:14px;padding:10px 12px;font-weight:800;}
.er-cash-overview__note.is-ok{background:#ecfdf5;color:#047857;border:1px solid rgba(16,185,129,.22);}
.er-cash-overview__note.is-warn{background:#fff7ed;color:#c2410c;border:1px solid rgba(249,115,22,.25);}
.er-cash-branch-card{position:relative;overflow:hidden;}
.er-cash-branch-card.is-warn{box-shadow:0 16px 35px rgba(249,115,22,.08);}
.er-cash-branch-card.is-ok{box-shadow:0 16px 35px rgba(16,185,129,.06);}
.er-cash-branch-status{border-radius:999px;padding:8px 12px;font-weight:900;font-size:12px;white-space:normal;text-align:right;max-width:340px;}
.er-cash-branch-status.is-warn{background:#fff7ed;color:#c2410c;border:1px solid rgba(249,115,22,.22);}
.er-cash-branch-status.is-ok{background:#ecfdf5;color:#047857;border:1px solid rgba(16,185,129,.22);}
.er-cash-pay-label{font-weight:800;color:#0f172a;}
.er-cash-pay-hint{font-size:12px;color:#64748b;margin-top:2px;}
.er-cash-total-row{background:rgba(15,23,42,.035);}
.er-cash-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 0;}
.er-cash-guide-card{background:#fff;border:1px solid rgba(148,163,184,.25);border-radius:18px;padding:14px 16px;}
.er-cash-guide-card strong{display:block;color:#0f172a;margin-bottom:4px;}
.er-cash-guide-card span{display:block;color:#64748b;font-size:13px;line-height:1.35;}
@media(max-width:900px){.er-cash-overview__grid,.er-cash-guide-grid{grid-template-columns:1fr 1fr}.er-cash-overview__head{flex-direction:column}.er-cash-branch-status{text-align:left;max-width:none}}
@media(max-width:640px){.er-cash-overview__grid,.er-cash-guide-grid{grid-template-columns:1fr}}

/* === Cash safety UI polish 2.9.70 === */
.er-cash-flow{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:center;
  margin:14px 0 0;
}
.er-cash-flow__step{
  min-height:68px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:18px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 10px 22px rgba(15,23,42,.045);
}
.er-cash-flow__step b{
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:900;
}
.er-cash-flow__step span{font-size:13px;font-weight:800;color:#334155;line-height:1.25;}
.er-cash-flow__arrow{font-weight:900;color:#64748b;text-align:center;}
.er-cash-overview__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.er-cash-overview__item em{display:block;margin-top:5px;color:#64748b;font-size:12px;font-style:normal;font-weight:700;}
.er-cash-overview__item--total{border-color:rgba(37,99,235,.22);box-shadow:inset 0 0 0 1px rgba(37,99,235,.06);}
.er-cash-row-has-money{background:rgba(255,247,237,.42);}
.er-cash-row-empty{opacity:.62;}
.er-cash-quick-expense input:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed;}
.er-cash-quick-expense .er-btn:disabled{opacity:.45;cursor:not-allowed;}
.er-cash-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(248,250,252,.88);
  border:1px dashed rgba(100,116,139,.25);
}
.er-cash-card-footer span{font-size:12px;font-weight:800;color:#64748b;line-height:1.35;}
@media(max-width:980px){
  .er-cash-flow{grid-template-columns:1fr;}
  .er-cash-flow__arrow{display:none;}
  .er-cash-overview__actions{justify-content:flex-start;}
}
@media(max-width:640px){
  .er-cash-card-footer{align-items:flex-start;flex-direction:column;}
}

/* === Cash professional UI 2.9.73 === */
.er-cash-page{padding:20px!important;background:#fff!important;border:1px solid rgba(15,23,42,.07)!important;border-radius:20px!important;box-shadow:0 14px 36px rgba(15,23,42,.06)!important;}
.er-cash-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid rgba(15,23,42,.08);}
.er-cash-page-head h3{margin:3px 0 5px;font-size:24px;line-height:1.15;color:#0f172a;font-weight:900;letter-spacing:-.02em;}
.er-kicker{display:inline-flex;align-items:center;min-height:22px;padding:0 9px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:11px;line-height:22px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;}
.er-cash-page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.er-cash-branches-clean{margin-top:0!important;display:block!important;}
.er-cash-control-panel{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);padding:18px;margin-bottom:18px;box-shadow:0 12px 28px rgba(15,23,42,.04);}
.er-cash-control-panel__top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.er-cash-control-panel h4{margin:4px 0 0;font-size:20px;line-height:1.2;color:#0f172a;font-weight:950;letter-spacing:-.02em;}
.er-status-chip{display:inline-flex;align-items:center;justify-content:center;min-height:28px;border-radius:999px;padding:0 11px;font-size:12px;font-weight:900;white-space:nowrap;}
.er-status-chip.is-ok{background:#ecfdf5;color:#047857;border:1px solid rgba(16,185,129,.22);}
.er-status-chip.is-warn{background:#fff7ed;color:#c2410c;border:1px solid rgba(249,115,22,.28);}
.er-cash-kpi-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:12px;}
.er-cash-kpi{min-height:84px;border:1px solid rgba(15,23,42,.08);background:#fff;border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 6px 18px rgba(15,23,42,.03);}
.er-cash-kpi span{display:block;margin-bottom:6px;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;}
.er-cash-kpi strong{display:block;color:#0f172a;font-size:22px;line-height:1.08;font-weight:950;letter-spacing:-.025em;}
.er-cash-kpi--main{border-color:rgba(37,99,235,.18);background:linear-gradient(180deg,#ffffff 0%,#eef4ff 100%);box-shadow:0 10px 24px rgba(37,99,235,.08);}
.er-cash-kpi--main strong{font-size:26px;color:#1d4ed8;}
.er-cash-branch-selector-wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:18px 0 12px;padding-top:4px;}
.er-cash-branch-selector-note{color:#64748b;font-size:12px;font-weight:700;line-height:1.35;}
.er-cash-branch-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,220px));gap:12px;margin-bottom:16px;}
.er-cash-branch-tab{appearance:none;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border-radius:16px;padding:13px 14px;min-width:180px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;box-shadow:0 8px 20px rgba(15,23,42,.04);cursor:pointer;transition:.18s ease;position:relative;overflow:hidden;}
.er-cash-branch-tab:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.08);border-color:rgba(37,99,235,.16);}
.er-cash-branch-tab.is-active{border-color:rgba(37,99,235,.26);background:linear-gradient(180deg,#eef4ff 0%,#ffffff 100%);box-shadow:0 14px 30px rgba(37,99,235,.12);}
.er-cash-branch-tab__name{font-size:14px;line-height:1.2;font-weight:950;color:#0f172a;}
.er-cash-branch-tab__meta{font-size:13px;line-height:1.2;font-weight:900;color:#334155;}
.er-cash-branch-tab.is-warn .er-cash-branch-tab__meta{color:#c2410c;}
.er-cash-branch-tab.is-ok .er-cash-branch-tab__meta{color:#047857;}

.er-cash-branch-tab.is-active:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2563eb;}
.er-cash-branch-tab.is-warn:not(.is-active):before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:rgba(249,115,22,.75);}
.er-cash-branch-tab.is-ok:not(.is-active):before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:rgba(16,185,129,.65);}
.er-cash-branch-card-clean .er-kicker{margin-bottom:8px;}
.er-cash-branch-detail{margin-top:6px;}
.er-cash-branch-list{display:grid;gap:12px;}
.er-cash-branch-card-clean{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.05);overflow:hidden;}
.er-cash-branch-card-clean.is-warn{border-color:rgba(249,115,22,.2);}
.er-cash-branch-card-clean__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);border-bottom:1px solid rgba(15,23,42,.07);}
.er-cash-branch-card-clean__title h4{margin:0 0 6px;font-size:20px;line-height:1.15;color:#0f172a;font-weight:950;letter-spacing:-.02em;}
.er-cash-branch-card-clean__title p{margin:0;color:#64748b;font-size:12px;line-height:1.4;font-weight:700;}
.er-cash-branch-card-clean__summary{display:flex;align-items:flex-end;flex-direction:column;gap:8px;text-align:right;min-width:180px;}
.er-cash-branch-card-clean__summary strong{font-size:28px;line-height:1;color:#0f172a;font-weight:950;letter-spacing:-.03em;}
.er-cash-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 18px 0;background:#fbfdff;border-bottom:0;}
.er-cash-source{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid rgba(15,23,42,.08);border-radius:16px;min-width:0;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.03);}
.er-cash-source:last-child{border-right:1px solid rgba(15,23,42,.08);}
.er-cash-source.is-active{background:linear-gradient(180deg,#ffffff 0%,#fffaf4 100%);}
.er-cash-source.is-empty{background:linear-gradient(180deg,#ffffff 0%,#fafafa 100%);}
.er-cash-source.is-empty .er-cash-source__info{opacity:.62;}
.er-cash-source__info span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.045em;font-weight:900;margin-bottom:5px;}
.er-cash-source__info strong{display:block;color:#0f172a;font-size:24px;line-height:1.05;font-weight:950;letter-spacing:-.025em;}
.er-cash-source__info em{display:block;margin-top:5px;color:#94a3b8;font-style:normal;font-size:12px;font-weight:700;line-height:1.35;}
.er-cash-source__actions{display:grid;grid-template-columns:minmax(110px,1fr) auto auto;gap:8px;align-items:center;margin-top:auto;}
.er-cash-source__actions input{width:100%;min-height:38px;border-radius:12px;border:1px solid rgba(15,23,42,.12);background:#fff;padding:0 12px;font-weight:800;color:#0f172a;}
.er-cash-source__actions input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.er-cash-source__actions input:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed;}
.er-cash-source__actions .er-btn{min-height:38px;border-radius:12px;font-size:12px;font-weight:900;padding:0 12px;}
.er-cash-source__actions .er-btn:disabled{opacity:.42;cursor:not-allowed;}
.er-cash-branch-card-clean__footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px 16px;background:#fbfdff;border-top:1px solid rgba(15,23,42,.06);}
.er-cash-manual-panel{padding:0!important;overflow:hidden;border-radius:18px!important;border:1px solid rgba(15,23,42,.08)!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.045)!important;}
.er-cash-manual-panel>summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;background:#fff;}
.er-cash-manual-panel>summary::-webkit-details-marker{display:none;}
.er-cash-manual-panel>summary:after{content:"Открыть";font-size:12px;font-weight:900;color:#1d4ed8;background:#eff6ff;border:1px solid rgba(37,99,235,.14);border-radius:999px;padding:6px 10px;}
.er-cash-manual-panel[open]>summary:after{content:"Свернуть";}
.er-cash-manual-panel>summary b{display:block;color:#0f172a;font-size:16px;line-height:1.2;font-weight:950;}
.er-cash-manual-panel>summary em{display:block;margin-top:3px;color:#64748b;font-style:normal;font-size:12px;font-weight:700;}
.er-cash-manual-body{padding:0 18px 18px;border-top:1px solid rgba(15,23,42,.08);}
.er-empty-state{border:1px dashed rgba(15,23,42,.16);border-radius:14px;background:#f8fafc;padding:18px;text-align:center;color:#64748b;font-weight:800;}
@media(max-width:1280px){.er-cash-source-grid{grid-template-columns:1fr}.er-cash-source{border-right:1px solid rgba(15,23,42,.08)}.er-cash-source__actions{grid-template-columns:minmax(120px,1fr) auto auto}}
@media(max-width:900px){.er-cash-page-head,.er-cash-control-panel__top,.er-cash-branch-card-clean__head,.er-cash-branch-selector-wrap{flex-direction:column;align-items:stretch}.er-cash-page-actions{justify-content:flex-start}.er-cash-kpi-grid{grid-template-columns:1fr 1fr}.er-cash-branch-card-clean__summary{align-items:flex-start;text-align:left;min-width:0}.er-cash-branch-selector{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.er-cash-kpi-grid{grid-template-columns:1fr}.er-cash-branch-selector{grid-template-columns:1fr}.er-cash-source__actions{grid-template-columns:1fr}.er-cash-source__actions .er-btn{width:100%}}

.er-cash-branch-tab__badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;background:rgba(37,99,235,.08);color:#1d4ed8;font-size:11px;font-weight:800;line-height:1.1;}
.er-cash-employee-panel{padding:14px 18px 8px;background:linear-gradient(180deg,#fbfdff 0%,#fff 100%);border-top:1px solid rgba(15,23,42,.06);}
.er-cash-employee-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.er-cash-employee-panel__title{font-size:15px;font-weight:900;color:#0f172a;line-height:1.25;}
.er-cash-employee-panel__note{max-width:480px;font-size:12px;line-height:1.45;color:#64748b;font-weight:700;}
.er-cash-employee-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
.er-cash-employee-tab{appearance:none;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:12px 14px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:6px;box-shadow:0 8px 20px rgba(15,23,42,.04);cursor:pointer;transition:.18s ease;}
.er-cash-employee-tab:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.08);}
.er-cash-employee-tab.is-active{border-color:rgba(37,99,235,.24);background:linear-gradient(180deg,#eef4ff 0%,#fff 100%);box-shadow:0 14px 30px rgba(37,99,235,.12);}
.er-cash-employee-tab__role{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900;}
.er-cash-employee-tab__name{font-size:14px;line-height:1.25;color:#0f172a;font-weight:900;}
.er-cash-employee-tab__meta{font-size:18px;line-height:1.1;color:#0f172a;font-weight:950;letter-spacing:-.02em;}
.er-cash-employee-tab.is-warn .er-cash-employee-tab__meta{color:#c2410c;}
.er-cash-employee-tab.is-ok .er-cash-employee-tab__meta{color:#047857;}
.er-cash-active-context{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 18px 14px;padding:14px 16px;border-radius:16px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);border:1px solid rgba(37,99,235,.08);}
.er-cash-active-context__label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900;}
.er-cash-active-context__value{font-size:16px;line-height:1.25;color:#0f172a;font-weight:900;}
.er-cash-branch-card-clean__summary-note{display:block;font-size:12px;line-height:1.4;color:#64748b;font-weight:700;}
.er-cash-branch-card-clean__summary-sub{font-size:12px;line-height:1.4;color:#475569;font-weight:700;}
@media(max-width:900px){.er-cash-employee-panel__head,.er-cash-active-context{flex-direction:column;align-items:flex-start}.er-cash-employee-selector{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.er-cash-employee-selector{grid-template-columns:1fr}.er-cash-active-context{margin:0 14px 14px;padding:12px}}


/* === Cash employee split refinement 2.9.76 === */
.er-cash-employee-panel{margin:0 18px 14px;padding:16px;border:1px solid rgba(37,99,235,.10);border-radius:18px;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);}
.er-cash-employee-panel__head{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,520px);gap:14px;align-items:end;margin-bottom:14px;}
.er-cash-employee-panel__title{margin-top:8px;font-size:17px;font-weight:950;color:#0f172a;letter-spacing:-.01em;}
.er-cash-employee-panel__note{font-size:12px;line-height:1.45;color:#64748b;font-weight:700;text-align:right;}
.er-cash-employee-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;}
.er-cash-employee-tab{border:1px solid rgba(15,23,42,.09);background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 8px 20px rgba(15,23,42,.04);}
.er-cash-employee-tab.is-active{border-color:rgba(37,99,235,.32);box-shadow:0 14px 30px rgba(37,99,235,.12);background:linear-gradient(180deg,#eef4ff 0%,#fff 100%);}
.er-cash-employee-tab__meta{font-size:22px;font-weight:950;letter-spacing:-.03em;}
.er-cash-active-context{margin:0 18px 14px;padding:14px 16px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.035);}
.er-cash-active-context__sum{font-size:24px;line-height:1;font-weight:950;color:#0f172a;letter-spacing:-.03em;}
.er-cash-branch-balance-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 18px 14px;}
.er-cash-branch-balance-card{border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#fff;padding:13px 15px;box-shadow:0 6px 18px rgba(15,23,42,.03);}
.er-cash-branch-balance-card span{display:block;margin-bottom:6px;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.045em;}
.er-cash-branch-balance-card strong{display:block;font-size:20px;line-height:1.1;color:#0f172a;font-weight:950;letter-spacing:-.025em;}
.er-cash-branch-balance-card.is-muted{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);}
.er-cash-branch-balance-card.is-total{background:linear-gradient(180deg,#fff 0%,#eef4ff 100%);border-color:rgba(37,99,235,.18);}
.er-cash-source-grid{padding-top:0;}
@media(max-width:900px){.er-cash-employee-panel__head{grid-template-columns:1fr}.er-cash-employee-panel__note{text-align:left}.er-cash-branch-balance-strip{grid-template-columns:1fr}}


.er-cash-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:16px 18px 0;padding:0 0 10px;border-bottom:1px solid rgba(15,23,42,.06);}
.er-cash-section-title span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900;}
.er-cash-section-title strong{display:block;margin-top:4px;color:#0f172a;font-size:15px;line-height:1.25;font-weight:950;}
.er-cash-section-title em{font-style:normal;color:#64748b;font-size:12px;line-height:1.35;font-weight:700;text-align:right;}
.er-cash-residual-panel{margin:16px 18px 0;border:1px solid rgba(249,115,22,.20);border-radius:18px;background:linear-gradient(180deg,#fffaf5 0%,#fff 100%);overflow:hidden;box-shadow:0 8px 22px rgba(249,115,22,.045);}
.er-cash-residual-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid rgba(249,115,22,.14);}
.er-cash-residual-panel__head h5{margin:8px 0 4px;font-size:17px;line-height:1.2;color:#0f172a;font-weight:950;}
.er-cash-residual-panel__head p{margin:0;max-width:760px;font-size:12px;line-height:1.45;color:#64748b;font-weight:700;}
.er-cash-residual-panel__head>strong{font-size:24px;line-height:1.05;color:#c2410c;font-weight:950;white-space:nowrap;letter-spacing:-.02em;}
.er-cash-source-grid--residual{padding:14px!important;background:transparent!important;}
@media(max-width:900px){.er-cash-section-title,.er-cash-residual-panel__head{flex-direction:column;align-items:flex-start}.er-cash-section-title em{text-align:left}.er-cash-residual-panel__head>strong{white-space:normal}}


/* ===== Bank-style cash tab ===== */
.er-kicker--light{background:rgba(255,255,255,.16)!important;color:#dbeafe!important;border:1px solid rgba(255,255,255,.14)!important;}
.er-bank-cash-page{display:flex;flex-direction:column;gap:18px;}
.er-bank-hero{background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 58%,#60a5fa 100%);border-radius:24px;padding:22px 22px 18px;box-shadow:0 22px 50px rgba(15,23,42,.16);color:#fff;overflow:hidden;position:relative;}
.er-bank-hero:before{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.09);}
.er-bank-hero:after{content:"";position:absolute;left:-60px;bottom:-100px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.06);}
.er-bank-hero__head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;}
.er-bank-hero__head h3{margin:4px 0 8px;color:#fff;font-size:28px;line-height:1.1;font-weight:950;letter-spacing:-.03em;}
.er-bank-hero__head p{margin:0;max-width:760px;color:rgba(255,255,255,.82);font-size:13px;line-height:1.5;font-weight:700;}
.er-bank-hero__status{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.10);backdrop-filter:blur(8px);}
.er-bank-hero__status.is-ok{background:rgba(16,185,129,.18);color:#d1fae5;}
.er-bank-hero__status.is-warn{background:rgba(249,115,22,.18);color:#ffedd5;}
.er-bank-hero__grid{position:relative;z-index:1;display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:12px;}
.er-bank-balance-card{border-radius:20px;padding:18px 18px 16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);}
.er-bank-balance-card--primary{background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.10));}
.er-bank-balance-card span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:rgba(255,255,255,.74);margin-bottom:8px;}
.er-bank-balance-card strong{display:block;font-size:28px;line-height:1.05;font-weight:950;letter-spacing:-.03em;color:#fff;}
.er-bank-balance-card small{display:block;margin-top:8px;font-size:12px;line-height:1.4;color:rgba(255,255,255,.72);font-weight:700;}
.er-bank-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 2px;}
.er-bank-section-head h4{margin:4px 0 0;font-size:20px;line-height:1.2;font-weight:950;color:#0f172a;letter-spacing:-.02em;}
.er-bank-section-head__note{color:#64748b;font-size:12px;line-height:1.45;font-weight:700;text-align:right;}
.er-bank-branch-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
.er-bank-branch-tab{appearance:none;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-radius:20px;padding:16px 16px 15px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;cursor:pointer;transition:.18s ease;box-shadow:0 10px 24px rgba(15,23,42,.04);position:relative;overflow:hidden;text-align:left;}
.er-bank-branch-tab:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:transparent;}
.er-bank-branch-tab:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.08);}
.er-bank-branch-tab.is-active{border-color:rgba(37,99,235,.22);box-shadow:0 18px 36px rgba(37,99,235,.14);background:linear-gradient(180deg,#ffffff 0%,#eef4ff 100%);}
.er-bank-branch-tab.is-active:before{background:#2563eb;}
.er-bank-branch-tab.is-warn .er-bank-branch-tab__sum{color:#c2410c;}
.er-bank-branch-tab.is-ok .er-bank-branch-tab__sum{color:#047857;}
.er-bank-branch-tab__name{font-size:15px;font-weight:950;color:#0f172a;line-height:1.25;}
.er-bank-branch-tab__sum{font-size:22px;font-weight:950;line-height:1.08;letter-spacing:-.03em;}
.er-bank-branch-tab__meta{font-size:12px;color:#64748b;font-weight:800;line-height:1.35;}
.er-bank-branch-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.9fr);gap:18px;align-items:start;}
.er-bank-account-panel,.er-bank-side-panel{display:flex;flex-direction:column;gap:16px;}
.er-bank-account-panel{border:1px solid rgba(15,23,42,.08);background:#fff;border-radius:24px;padding:20px;box-shadow:0 18px 40px rgba(15,23,42,.05);}
.er-bank-account-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid rgba(15,23,42,.08);}
.er-bank-account-panel__head h4{margin:4px 0 6px;font-size:30px;line-height:1.05;font-weight:950;color:#0f172a;letter-spacing:-.03em;}
.er-bank-account-panel__head p{margin:0;color:#64748b;font-size:12px;line-height:1.45;font-weight:700;}
.er-bank-account-panel__summary{display:flex;flex-direction:column;align-items:flex-end;gap:6px;}
.er-bank-account-panel__summary span{display:inline-flex;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:900;}
.er-bank-account-panel__summary.is-warn span{background:#fff7ed;color:#c2410c;border:1px solid rgba(249,115,22,.22);}
.er-bank-account-panel__summary.is-ok span{background:#ecfdf5;color:#047857;border:1px solid rgba(16,185,129,.22);}
.er-bank-account-panel__summary strong{font-size:40px;line-height:1.02;font-weight:950;letter-spacing:-.04em;color:#0f172a;white-space:nowrap;}
.er-bank-subaccounts{border:1px solid rgba(37,99,235,.10);border-radius:20px;padding:16px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);}
.er-bank-subaccounts__head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px;}
.er-bank-subaccounts__head h5,.er-bank-active-account__head h5,.er-bank-residual-account__head h5{margin:4px 0 0;font-size:18px;line-height:1.2;font-weight:950;color:#0f172a;letter-spacing:-.02em;}
.er-bank-subaccounts__note{font-size:12px;color:#64748b;font-weight:700;line-height:1.4;text-align:right;}
.er-bank-subaccounts__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
.er-bank-subaccount-tab{appearance:none;border:1px solid rgba(15,23,42,.08);background:#fff;border-radius:18px;padding:14px 15px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transition:.18s ease;box-shadow:0 8px 22px rgba(15,23,42,.04);text-align:left;}
.er-bank-subaccount-tab:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.08);}
.er-bank-subaccount-tab.is-active{border-color:rgba(37,99,235,.22);background:linear-gradient(180deg,#eef4ff 0%,#ffffff 100%);box-shadow:0 14px 30px rgba(37,99,235,.12);}
.er-bank-subaccount-tab__label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900;}
.er-bank-subaccount-tab__name{font-size:15px;line-height:1.25;font-weight:900;color:#0f172a;}
.er-bank-subaccount-tab__sum{font-size:22px;line-height:1.08;font-weight:950;color:#c2410c;letter-spacing:-.03em;}
.er-bank-active-account{border-radius:20px;padding:18px;background:linear-gradient(135deg,#eff6ff 0%,#ffffff 68%);border:1px solid rgba(37,99,235,.12);}
.er-bank-active-account__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.er-bank-active-account__head strong{font-size:32px;line-height:1.02;font-weight:950;color:#0f172a;letter-spacing:-.03em;white-space:nowrap;}
.er-bank-active-account__meta{margin-top:8px;font-size:12px;line-height:1.45;color:#64748b;font-weight:700;}
.er-bank-transfer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.er-bank-source-card{border:1px solid rgba(15,23,42,.08);border-radius:20px;background:#fff;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.04);display:flex;flex-direction:column;gap:14px;}
.er-bank-source-card.is-ready{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);}
.er-bank-source-card.is-empty{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);opacity:.88;}
.er-bank-source-card__label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900;}
.er-bank-source-card__amount{display:block;margin-top:8px;font-size:34px;line-height:1.02;font-weight:950;color:#0f172a;letter-spacing:-.04em;}
.er-bank-source-card__hint{display:block;margin-top:6px;font-size:12px;line-height:1.4;color:#94a3b8;font-weight:700;}
.er-bank-source-card__form{display:flex;flex-direction:column;gap:10px;}
.er-bank-source-card__form input[data-er-cash-quick-amount="1"]{width:100%;height:46px;border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:0 14px;background:#fff;font-size:14px;color:#0f172a;font-weight:700;}
.er-bank-source-card__form input[data-er-cash-quick-amount="1"]:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed;}
.er-bank-source-card__actions{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;}
.er-bank-residual-account{border:1px solid rgba(249,115,22,.18);border-radius:22px;padding:18px;background:linear-gradient(180deg,#fffaf5 0%,#fff 100%);box-shadow:0 10px 24px rgba(249,115,22,.05);}
.er-bank-residual-account__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px;}
.er-bank-residual-account__head p{margin:6px 0 0;color:#64748b;font-size:12px;line-height:1.45;font-weight:700;max-width:620px;}
.er-bank-residual-account__head strong{font-size:32px;line-height:1.02;color:#c2410c;font-weight:950;letter-spacing:-.03em;white-space:nowrap;}
.er-bank-transfer-grid--residual .er-bank-source-card{box-shadow:none;border-color:rgba(249,115,22,.12);}
.er-bank-side-card{border:1px solid rgba(15,23,42,.08);border-radius:20px;background:#fff;padding:16px 16px 15px;box-shadow:0 10px 24px rgba(15,23,42,.04);}
.er-bank-side-card--total{background:linear-gradient(180deg,#ffffff 0%,#eef4ff 100%);border-color:rgba(37,99,235,.18);}
.er-bank-side-card span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:900;margin-bottom:8px;}
.er-bank-side-card strong{display:block;font-size:28px;line-height:1.05;font-weight:950;color:#0f172a;letter-spacing:-.03em;}
.er-bank-side-card small{display:block;margin-top:8px;color:#64748b;font-size:12px;line-height:1.4;font-weight:700;}
.er-bank-side-actions{display:flex;justify-content:flex-start;}
@media(max-width:1200px){.er-bank-branch-layout{grid-template-columns:1fr}.er-bank-side-panel{order:-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.er-bank-side-actions{grid-column:1 / -1}}
@media(max-width:960px){.er-bank-hero__head,.er-bank-section-head,.er-bank-subaccounts__head,.er-bank-account-panel__head,.er-bank-active-account__head,.er-bank-residual-account__head{flex-direction:column;align-items:flex-start}.er-bank-hero__grid,.er-bank-transfer-grid,.er-bank-side-panel{grid-template-columns:1fr 1fr}.er-bank-account-panel__summary{align-items:flex-start}.er-bank-subaccounts__note,.er-bank-section-head__note{text-align:left}}
@media(max-width:640px){.er-bank-cash-page{gap:14px}.er-bank-hero{padding:16px}.er-bank-hero__head h3{font-size:24px}.er-bank-hero__grid,.er-bank-transfer-grid,.er-bank-side-panel,.er-bank-branch-tabs,.er-bank-subaccounts__list{grid-template-columns:1fr}.er-bank-account-panel{padding:16px}.er-bank-account-panel__head h4{font-size:24px}.er-bank-account-panel__summary strong,.er-bank-active-account__head strong,.er-bank-residual-account__head strong,.er-bank-source-card__amount,.er-bank-side-card strong{font-size:26px}.er-bank-source-card__actions{flex-direction:column;align-items:stretch}.er-bank-source-card__actions .er-btn{width:100%}}


/* 2.9.79 — касса: чистый банковский вид + исправление читаемости */
.er-bank-cash-page{gap:16px!important;background:#f6f8fb!important;padding:18px!important;border-radius:28px!important;}
.er-bank-hero{background:linear-gradient(135deg,#0b1220 0%,#143b7d 62%,#2563eb 100%)!important;border-radius:26px!important;padding:24px!important;box-shadow:0 24px 60px rgba(15,23,42,.18)!important;}
.er-bank-hero__head h3{font-size:32px!important;letter-spacing:-.04em!important;}
.er-bank-hero__head p{font-size:14px!important;max-width:840px!important;}
.er-bank-hero__grid{grid-template-columns:1.25fr 1fr 1fr 1fr!important;gap:14px!important;}
.er-bank-balance-card{border-radius:22px!important;padding:18px!important;background:rgba(255,255,255,.14)!important;}
.er-bank-balance-card strong{font-size:30px!important;white-space:nowrap!important;}
.er-bank-section-head{padding:4px 4px 0!important;}
.er-bank-section-head h4{font-size:22px!important;}
.er-bank-branch-tabs{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:14px!important;}
.er-bank-branch-tab{border-radius:22px!important;padding:18px!important;min-height:118px!important;background:#fff!important;box-shadow:0 14px 34px rgba(15,23,42,.06)!important;}
.er-bank-branch-tab.is-active{background:linear-gradient(180deg,#eef5ff 0%,#ffffff 100%)!important;border-color:rgba(37,99,235,.34)!important;box-shadow:0 18px 42px rgba(37,99,235,.16)!important;}
.er-bank-branch-tab__name{font-size:16px!important;}
.er-bank-branch-tab__sum{font-size:25px!important;}
.er-bank-branch-layout{grid-template-columns:minmax(0,1.75fr) 340px!important;gap:18px!important;}
.er-bank-account-panel{border-radius:26px!important;padding:22px!important;box-shadow:0 18px 44px rgba(15,23,42,.07)!important;}
.er-bank-account-panel__head{align-items:center!important;}
.er-bank-account-panel__head h4{font-size:32px!important;}
.er-bank-account-panel__summary strong{font-size:42px!important;}
.er-bank-subaccounts,.er-bank-active-account,.er-bank-residual-account{border-radius:24px!important;}
.er-bank-subaccounts__list{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;}
.er-bank-subaccount-tab{border-radius:20px!important;padding:16px!important;}
.er-bank-transfer-grid{grid-template-columns:repeat(3,minmax(220px,1fr))!important;gap:14px!important;}
.er-bank-source-card{border-radius:22px!important;padding:18px!important;box-shadow:0 12px 30px rgba(15,23,42,.055)!important;}
.er-bank-source-card__amount{font-size:34px!important;white-space:nowrap!important;}
.er-bank-source-card__form input[data-er-cash-quick-amount="1"]{height:50px!important;border-radius:16px!important;font-size:15px!important;background:#fff!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.04)!important;}
.er-bank-source-card__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
.er-bank-source-card__actions .er-btn{height:42px!important;border-radius:13px!important;font-weight:900!important;}
.er-bank-side-panel{gap:14px!important;position:sticky!important;top:18px!important;}
.er-bank-side-card{border-radius:22px!important;padding:18px!important;box-shadow:0 12px 30px rgba(15,23,42,.055)!important;}
.er-bank-side-card strong{font-size:30px!important;white-space:nowrap!important;}
@media(max-width:1200px){.er-bank-branch-layout{grid-template-columns:1fr!important}.er-bank-side-panel{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.er-bank-side-actions{grid-column:1 / -1!important}.er-bank-transfer-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){.er-bank-cash-page{padding:12px!important}.er-bank-hero__grid,.er-bank-branch-tabs,.er-bank-transfer-grid,.er-bank-side-panel,.er-bank-subaccounts__list{grid-template-columns:1fr!important}.er-bank-account-panel__head{align-items:flex-start!important}.er-bank-account-panel__summary{align-items:flex-start!important}.er-bank-balance-card strong,.er-bank-account-panel__summary strong,.er-bank-source-card__amount,.er-bank-side-card strong{font-size:26px!important}.er-bank-source-card__actions{grid-template-columns:1fr!important}}

/* 2.9.80 — полностью переработанная вкладка кассы в чистом банковском стиле */
.er-cash-modern{
  --cash-blue:#2563eb;
  --cash-blue-soft:#eef4ff;
  --cash-text:#0f172a;
  --cash-muted:#64748b;
  --cash-line:rgba(15,23,42,.09);
  --cash-green:#16a34a;
  --cash-purple:#4f46e5;
  --cash-orange:#f97316;
  background:#f6f8fb!important;
  border:1px solid rgba(15,23,42,.06)!important;
  border-radius:28px!important;
  padding:22px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  box-shadow:0 18px 44px rgba(15,23,42,.055)!important;
}
.er-cash-modern__toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:2px 4px 8px;border-bottom:1px solid rgba(15,23,42,.06)}
.er-cash-modern__toolbar h3{margin:0 0 8px!important;color:var(--cash-text)!important;font-size:30px!important;line-height:1.08!important;font-weight:950!important;letter-spacing:-.035em!important}
.er-cash-modern__toolbar p{margin:0!important;color:var(--cash-muted)!important;font-size:14px!important;line-height:1.45!important;font-weight:700!important}
.er-cash-modern__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;white-space:nowrap}
.er-cash-modern__kpis{display:grid!important;grid-template-columns:1.15fr 1fr 1fr 1fr!important;gap:14px!important}
.er-cash-modern-kpi{min-height:110px;border:1px solid var(--cash-line);border-radius:22px;background:#fff;padding:18px 18px;display:flex;align-items:center;gap:16px;box-shadow:0 12px 30px rgba(15,23,42,.045)}
.er-cash-modern-kpi__icon{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex:0 0 48px;font-size:23px;font-weight:950;background:#eff6ff;color:var(--cash-blue)}
.er-cash-modern-kpi--cash .er-cash-modern-kpi__icon{background:#ecfdf5;color:var(--cash-green)}
.er-cash-modern-kpi--cashless .er-cash-modern-kpi__icon{background:#eef2ff;color:var(--cash-purple)}
.er-cash-modern-kpi--card .er-cash-modern-kpi__icon{background:#fff7ed;color:var(--cash-orange)}
.er-cash-modern-kpi span{display:block;margin-bottom:6px;color:var(--cash-muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.055em}
.er-cash-modern-kpi strong{display:block;color:var(--cash-text);font-size:27px;line-height:1.04;font-weight:950;letter-spacing:-.035em;white-space:nowrap}
.er-cash-modern-kpi small{display:block;margin-top:7px;color:var(--cash-muted);font-size:12px;line-height:1.35;font-weight:700}
.er-cash-modern__section{background:#fff;border:1px solid var(--cash-line);border-radius:24px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.04)}
.er-cash-modern__section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.er-cash-modern__section-head h4{margin:0 0 5px!important;color:var(--cash-text);font-size:20px;line-height:1.2;font-weight:950;letter-spacing:-.02em}
.er-cash-modern__section-head p,.er-cash-modern__section-head span{margin:0;color:var(--cash-muted);font-size:12px;line-height:1.45;font-weight:700}
.er-cash-modern__section-head span{text-align:right;max-width:420px}
.er-cash-modern-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.er-cash-modern-branch{position:relative;appearance:none;border:1px solid var(--cash-line);border-radius:20px;background:#fff;min-height:112px;padding:17px 18px;display:flex;align-items:center;gap:15px;text-align:left;cursor:pointer;transition:.18s ease;box-shadow:0 10px 24px rgba(15,23,42,.035)}
.er-cash-modern-branch:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.07);border-color:rgba(37,99,235,.18)}
.er-cash-modern-branch.is-active{border-color:rgba(37,99,235,.45);background:linear-gradient(180deg,#f4f8ff 0%,#fff 100%);box-shadow:0 18px 40px rgba(37,99,235,.13)}
.er-cash-modern-branch__icon{width:42px;height:42px;border-radius:14px;background:#f1f5f9;color:#64748b;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;flex:0 0 42px}
.er-cash-modern-branch.is-active .er-cash-modern-branch__icon{background:#dbeafe;color:var(--cash-blue)}
.er-cash-modern-branch__content{display:flex;flex-direction:column;gap:5px;min-width:0}
.er-cash-modern-branch__content strong{font-size:16px;line-height:1.2;color:var(--cash-text);font-weight:950}
.er-cash-modern-branch__content em{font-style:normal;font-size:25px;line-height:1.05;color:#b45309;font-weight:950;letter-spacing:-.035em;white-space:nowrap}
.er-cash-modern-branch.is-ok .er-cash-modern-branch__content em{color:#047857}
.er-cash-modern-branch__content small{color:var(--cash-muted);font-size:12px;font-weight:800;line-height:1.35}
.er-cash-modern-branch__check{position:absolute;right:14px;top:14px;width:24px;height:24px;border-radius:999px;background:var(--cash-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:950}
.er-cash-modern__workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.er-cash-modern__main{display:flex;flex-direction:column;gap:14px;min-width:0}
.er-cash-modern-branch-head{display:grid;grid-template-columns:minmax(0,1fr) auto 190px;gap:16px;align-items:center;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);border:1px solid rgba(37,99,235,.12);border-radius:24px;padding:18px;box-shadow:0 12px 30px rgba(37,99,235,.055)}
.er-cash-modern-branch-head__left{display:flex;align-items:center;gap:15px;min-width:0}
.er-cash-modern-branch-head__icon{width:54px;height:54px;border-radius:18px;background:#dbeafe;color:var(--cash-blue);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:950;flex:0 0 54px}
.er-cash-modern-branch-head span,.er-cash-modern-branch-head__sum span,.er-cash-modern-status span{display:block;color:var(--cash-muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.055em;margin-bottom:6px}
.er-cash-modern-branch-head h4{margin:0!important;color:var(--cash-text);font-size:28px;line-height:1.05;font-weight:950;letter-spacing:-.035em}
.er-cash-modern-branch-head p{margin:7px 0 0!important;color:var(--cash-muted);font-size:12px;line-height:1.4;font-weight:700}
.er-cash-modern-branch-head__sum{text-align:right;white-space:nowrap}
.er-cash-modern-branch-head__sum strong{display:block;color:var(--cash-text);font-size:36px;line-height:1;font-weight:950;letter-spacing:-.04em}
.er-cash-modern-branch-head__sum small{display:block;margin-top:8px;color:var(--cash-muted);font-size:12px;line-height:1.35;font-weight:700}
.er-cash-modern-status{border:1px solid var(--cash-line);background:#fff;border-radius:18px;padding:14px 15px;box-shadow:0 8px 18px rgba(15,23,42,.035)}
.er-cash-modern-status strong{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:950;color:#166534;background:#dcfce7}
.er-cash-modern-status.is-open strong{color:#9a3412;background:#ffedd5}
.er-cash-modern-status small{display:block;margin-top:8px;color:var(--cash-muted);font-size:12px;font-weight:700}
.er-cash-modern-subaccounts,.er-cash-modern-account{background:#fff;border:1px solid var(--cash-line);border-radius:24px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.04)}
.er-cash-modern-subaccounts__head{margin-bottom:14px}
.er-cash-modern-subaccounts__head h5,.er-cash-modern-account__head h5{margin:0 0 5px!important;color:var(--cash-text);font-size:19px;line-height:1.2;font-weight:950;letter-spacing:-.02em}
.er-cash-modern-subaccounts__head p,.er-cash-modern-account__head p{margin:0;color:var(--cash-muted);font-size:12px;line-height:1.45;font-weight:700}
.er-cash-modern-subaccounts__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.er-cash-modern-subaccount{appearance:none;border:1px solid var(--cash-line);border-radius:18px;background:#fff;padding:14px 15px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;cursor:pointer;text-align:left;box-shadow:0 8px 20px rgba(15,23,42,.035);transition:.18s ease}
.er-cash-modern-subaccount:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.07)}
.er-cash-modern-subaccount.is-active{border-color:rgba(37,99,235,.35);background:#f4f8ff;box-shadow:0 14px 30px rgba(37,99,235,.10)}
.er-cash-modern-subaccount span{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--cash-muted);font-weight:950}
.er-cash-modern-subaccount strong{font-size:15px;line-height:1.25;color:var(--cash-text);font-weight:950}
.er-cash-modern-subaccount em{font-style:normal;color:#b45309;font-size:22px;line-height:1.05;font-weight:950;letter-spacing:-.03em}
.er-cash-modern-account__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.er-cash-modern-account__head>div>span{display:block;color:var(--cash-muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.055em;margin-bottom:6px}
.er-cash-modern-account__head>strong{font-size:34px;line-height:1.02;color:var(--cash-text);font-weight:950;letter-spacing:-.04em;white-space:nowrap;text-align:right}
.er-cash-modern-account--reserve{background:linear-gradient(180deg,#fffaf5 0%,#fff 100%);border-color:rgba(249,115,22,.20)}
.er-cash-modern-account--reserve .er-cash-modern-account__head>strong{color:#c2410c}
.er-cash-modern-transfer-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.er-cash-modern .er-bank-source-card{border-radius:20px!important;border:1px solid var(--cash-line)!important;background:#fff!important;padding:16px!important;box-shadow:0 10px 24px rgba(15,23,42,.045)!important;gap:13px!important}
.er-cash-modern .er-bank-source-card__label{font-size:11px!important;color:var(--cash-muted)!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.055em!important}
.er-cash-modern .er-bank-source-card__amount{font-size:28px!important;line-height:1.03!important;color:var(--cash-text)!important;font-weight:950!important;letter-spacing:-.04em!important;white-space:nowrap!important}
.er-cash-modern .er-bank-source-card__hint{font-size:12px!important;color:var(--cash-muted)!important;font-weight:700!important}
.er-cash-modern .er-bank-source-card__form input[data-er-cash-quick-amount="1"]{height:46px!important;border-radius:14px!important;border:1px solid rgba(148,163,184,.36)!important;background:#fff!important;padding:0 14px!important;font-size:14px!important;font-weight:800!important;color:var(--cash-text)!important;width:100%!important}
.er-cash-modern .er-bank-source-card__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
.er-cash-modern .er-bank-source-card__actions .er-btn{height:40px!important;border-radius:13px!important;font-weight:950!important}
.er-cash-modern-side{position:sticky;top:18px;background:#fff;border:1px solid var(--cash-line);border-radius:24px;padding:16px;display:flex;flex-direction:column;gap:13px;box-shadow:0 14px 34px rgba(15,23,42,.055)}
.er-cash-modern-side h4{margin:0 0 2px!important;color:var(--cash-text);font-size:18px;line-height:1.2;font-weight:950;letter-spacing:-.02em}
.er-cash-modern-side-card{border:1px solid var(--cash-line);border-radius:18px;background:#fff;padding:16px;box-shadow:0 8px 18px rgba(15,23,42,.03)}
.er-cash-modern-side-card.is-total{background:linear-gradient(180deg,#fff 0%,#eef4ff 100%);border-color:rgba(37,99,235,.18)}
.er-cash-modern-side-card span{display:block;margin-bottom:8px;color:var(--cash-muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.055em}
.er-cash-modern-side-card strong{display:block;color:var(--cash-text);font-size:28px;line-height:1.05;font-weight:950;letter-spacing:-.035em;white-space:nowrap}
.er-cash-modern-side-card small{display:block;margin-top:8px;color:var(--cash-muted);font-size:12px;line-height:1.38;font-weight:700}
.er-cash-modern-history{appearance:none;border:1px solid var(--cash-line);border-radius:17px;background:#fff;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--cash-text);font-size:14px;font-weight:950;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.03)}
.er-cash-modern-history span{font-size:22px;line-height:1;color:var(--cash-muted)}
@media(max-width:1300px){.er-cash-modern__workspace{grid-template-columns:1fr}.er-cash-modern-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.er-cash-modern-side h4,.er-cash-modern-history{grid-column:1 / -1}.er-cash-modern__kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:980px){.er-cash-modern-branch-head{grid-template-columns:1fr}.er-cash-modern-branch-head__sum{text-align:left}.er-cash-modern-transfer-grid{grid-template-columns:1fr 1fr!important}.er-cash-modern__toolbar,.er-cash-modern__section-head,.er-cash-modern-account__head{flex-direction:column;align-items:flex-start}.er-cash-modern__section-head span{text-align:left}.er-cash-modern__actions{justify-content:flex-start}}
@media(max-width:700px){.er-cash-modern{padding:12px!important;border-radius:20px!important}.er-cash-modern__kpis,.er-cash-modern-transfer-grid,.er-cash-modern-side,.er-cash-modern-branches,.er-cash-modern-subaccounts__list{grid-template-columns:1fr!important}.er-cash-modern__toolbar h3{font-size:25px!important}.er-cash-modern-kpi strong,.er-cash-modern-branch-head__sum strong,.er-cash-modern-account__head>strong,.er-cash-modern-side-card strong{font-size:25px!important}.er-cash-modern .er-bank-source-card__amount{font-size:24px!important}.er-cash-modern .er-bank-source-card__actions{grid-template-columns:1fr!important}}


/* 2.9.81 — облегчённые шрифты и более аккуратный вид вкладки кассы */
.er-cash-modern{background:linear-gradient(180deg,#f8fafc 0%,#f5f7fb 100%)!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:26px!important;box-shadow:0 10px 26px rgba(15,23,42,.045)!important}
.er-cash-modern__toolbar{padding:4px 4px 12px!important;border-bottom:1px solid rgba(148,163,184,.14)!important}
.er-cash-modern__toolbar h3{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em!important}
.er-cash-modern__toolbar p{font-size:13px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern__kpis{gap:12px!important}
.er-cash-modern-kpi{min-height:102px!important;border-radius:18px!important;padding:16px!important;box-shadow:0 6px 18px rgba(15,23,42,.035)!important;border-color:rgba(148,163,184,.18)!important}
.er-cash-modern-kpi__icon{width:44px!important;height:44px!important;border-radius:14px!important;font-size:20px!important;font-weight:700!important}
.er-cash-modern-kpi span{font-size:10px!important;font-weight:700!important;letter-spacing:.06em!important;color:#667085!important}
.er-cash-modern-kpi strong{font-size:22px!important;font-weight:800!important;letter-spacing:-.02em!important}
.er-cash-modern-kpi small{font-size:12px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern__section,.er-cash-modern-subaccounts,.er-cash-modern-account,.er-cash-modern-side{border-radius:20px!important;border-color:rgba(148,163,184,.18)!important;box-shadow:0 6px 18px rgba(15,23,42,.03)!important}
.er-cash-modern__section{padding:16px!important}
.er-cash-modern__section-head h4,.er-cash-modern-subaccounts__head h5,.er-cash-modern-account__head h5,.er-cash-modern-side h4{font-weight:800!important;letter-spacing:-.015em!important}
.er-cash-modern__section-head h4{font-size:18px!important}
.er-cash-modern__section-head p,.er-cash-modern__section-head span,.er-cash-modern-subaccounts__head p,.er-cash-modern-account__head p{font-weight:500!important;color:#667085!important}
.er-cash-modern-branch{min-height:98px!important;border-radius:18px!important;padding:15px 16px!important;box-shadow:0 4px 14px rgba(15,23,42,.028)!important;border-color:rgba(148,163,184,.18)!important}
.er-cash-modern-branch:hover{transform:none!important;box-shadow:0 8px 18px rgba(15,23,42,.05)!important}
.er-cash-modern-branch.is-active{box-shadow:0 10px 20px rgba(37,99,235,.08)!important;border-color:rgba(37,99,235,.35)!important;background:linear-gradient(180deg,#f6f9ff 0%,#fff 100%)!important}
.er-cash-modern-branch__icon{width:38px!important;height:38px!important;border-radius:12px!important;font-size:18px!important;font-weight:700!important}
.er-cash-modern-branch__content{gap:4px!important}
.er-cash-modern-branch__content strong{font-size:15px!important;font-weight:700!important}
.er-cash-modern-branch__content em{font-size:18px!important;font-weight:800!important;letter-spacing:-.015em!important}
.er-cash-modern-branch__content small{font-size:11px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern-branch__check{width:22px!important;height:22px!important;right:12px!important;top:12px!important;font-size:12px!important}
.er-cash-modern__workspace{gap:14px!important}
.er-cash-modern-branch-head{padding:16px 18px!important;border-radius:20px!important;box-shadow:0 6px 18px rgba(15,23,42,.028)!important;border-color:rgba(148,163,184,.18)!important}
.er-cash-modern-branch-head__icon{width:40px!important;height:40px!important;border-radius:14px!important;font-size:18px!important;font-weight:700!important}
.er-cash-modern-branch-head__left span,.er-cash-modern-branch-head__sum span,.er-cash-modern-status span,.er-cash-modern-account__head>div>span,.er-cash-modern-side-card span,.er-bank-source-card__label{font-size:10px!important;font-weight:700!important;color:#667085!important}
.er-cash-modern-branch-head h4{font-size:20px!important;font-weight:800!important;letter-spacing:-.015em!important}
.er-cash-modern-branch-head p{font-size:12px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern-branch-head__sum strong{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em!important}
.er-cash-modern-status{border-radius:16px!important;padding:12px 14px!important;box-shadow:none!important}
.er-cash-modern-status strong{font-size:12px!important;font-weight:700!important;padding:6px 10px!important}
.er-cash-modern-status small{font-size:11px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern-subaccounts__list{gap:10px!important}
.er-cash-modern-subaccount{border-radius:16px!important;padding:13px 14px!important;gap:5px!important;box-shadow:0 4px 12px rgba(15,23,42,.025)!important;border-color:rgba(148,163,184,.18)!important}
.er-cash-modern-subaccount:hover{transform:none!important;box-shadow:0 6px 15px rgba(15,23,42,.04)!important}
.er-cash-modern-subaccount span{font-size:10px!important;font-weight:700!important;color:#667085!important}
.er-cash-modern-subaccount strong{font-size:14px!important;font-weight:700!important}
.er-cash-modern-subaccount em{font-size:18px!important;font-weight:800!important;letter-spacing:-.015em!important}
.er-cash-modern-account{padding:16px!important}
.er-cash-modern-account__head{margin-bottom:14px!important}
.er-cash-modern-account__head>strong{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em!important}
.er-cash-modern-account--reserve{background:linear-gradient(180deg,#fffdf9 0%,#fff 100%)!important;border-color:rgba(251,146,60,.22)!important}
.er-cash-modern-transfer-grid{gap:12px!important}
.er-cash-modern .er-bank-source-card{border-radius:18px!important;padding:15px!important;box-shadow:0 4px 14px rgba(15,23,42,.028)!important;border-color:rgba(148,163,184,.18)!important}
.er-cash-modern .er-bank-source-card__amount{font-size:24px!important;font-weight:800!important;letter-spacing:-.02em!important}
.er-cash-modern .er-bank-source-card__hint{font-size:11px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern .er-bank-source-card__form{gap:8px!important}
.er-cash-modern .er-bank-source-card__form input[data-er-cash-quick-amount="1"]{height:42px!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important;border-color:rgba(148,163,184,.24)!important;box-shadow:none!important}
.er-cash-modern .er-bank-source-card__actions{gap:8px!important}
.er-cash-modern .er-bank-source-card__actions .er-btn{height:38px!important;border-radius:12px!important;font-weight:700!important}
.er-cash-modern-side{padding:14px!important;gap:11px!important}
.er-cash-modern-side-card{padding:14px!important;border-radius:16px!important;box-shadow:none!important;border-color:rgba(148,163,184,.18)!important}
.er-cash-modern-side-card strong{font-size:23px!important;font-weight:800!important;letter-spacing:-.018em!important}
.er-cash-modern-side-card small{font-size:11px!important;font-weight:500!important;color:#667085!important}
.er-cash-modern-history{border-radius:15px!important;padding:13px 14px!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.er-cash-modern-history span{font-size:18px!important}


/* 2.9.82 — выбор управляющего при передаче денег из кассы */
.er-manager-pick-modal{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
.er-manager-pick-modal__dialog{width:min(460px,100%);background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.22);padding:22px}
.er-manager-pick-modal__title{font-size:24px;line-height:1.15;font-weight:800;color:#0f172a;margin-bottom:10px}
.er-manager-pick-modal__text{font-size:14px;line-height:1.5;color:#667085;margin-bottom:16px}
.er-manager-pick-modal__select{width:100%;height:46px;border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:0 14px;background:#fff;font-size:14px;color:#0f172a;margin-bottom:16px}
.er-manager-pick-modal__actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:640px){.er-manager-pick-modal__dialog{padding:18px;border-radius:18px}.er-manager-pick-modal__title{font-size:21px}.er-manager-pick-modal__actions{flex-direction:column}.er-manager-pick-modal__actions .er-btn{width:100%}}


/* 2.9.83 — кнопка обнуления переходящего остатка */
.er-cash-modern-account__head-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px;white-space:nowrap}
.er-cash-modern-account__head-right>strong{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#c2410c;line-height:1.02}
.er-cash-reset-residual-btn{height:34px!important;border-radius:12px!important;font-weight:700!important;color:#b42318!important;border-color:rgba(180,35,24,.22)!important;background:#fff7f7!important}
.er-cash-reset-residual-btn:hover{background:#fee4e2!important;border-color:rgba(180,35,24,.35)!important}
@media(max-width:980px){.er-cash-modern-account__head-right{align-items:flex-start}.er-cash-modern-account__head-right>strong{font-size:24px!important}}


/* 2.9.84 — переходящий / нераспределённый остаток убран из вкладки кассы */
.er-cash-modern-account--reserve,.er-cash-reset-residual-btn{display:none!important}


/* 2.9.85 — агентские деньги в кассе сотрудника и более аккуратный кошелёк управляющих */
.er-cash-modern-kpi--agent .er-cash-modern-kpi__icon{background:#fdf2f8!important;color:#be185d!important}
.er-cash-modern__kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.er-cash-modern-transfer-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.er-cash-modern .er-bank-source-card[data-pay-type="agent"],.er-cash-modern .er-bank-source-card:has([data-pay-type="agent"]){background:linear-gradient(180deg,#fff 0%,#fdf2f8 100%)!important;border-color:rgba(190,24,93,.18)!important}
.er-manager-wallet-page{background:linear-gradient(180deg,#f8fafc 0%,#f5f7fb 100%)!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:26px!important;box-shadow:0 10px 26px rgba(15,23,42,.045)!important;padding:18px!important}
.er-manager-wallet-page .er-wallet-hero{border-radius:22px!important;background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 100%)!important;box-shadow:0 14px 34px rgba(15,23,42,.13)!important;padding:22px!important;margin-bottom:16px!important}
.er-manager-wallet-page .er-wallet-hero__eyebrow{font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;opacity:.85!important}
.er-manager-wallet-page .er-wallet-hero h3{font-size:28px!important;font-weight:800!important;letter-spacing:-.02em!important;margin:6px 0!important}
.er-manager-wallet-page .er-wallet-hero .er-hint{font-size:13px!important;font-weight:500!important;line-height:1.45!important;max-width:760px!important;color:rgba(255,255,255,.82)!important}
.er-manager-wallet-page .er-wallet-surface,.er-manager-wallet-page .er-wallet-section,.er-manager-wallet-page .er-admin-wallet-history{border-radius:20px!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 6px 18px rgba(15,23,42,.03)!important;background:#fff!important}
.er-manager-wallet-page .er-wallet-section__eyebrow{font-size:10px!important;font-weight:700!important;color:#667085!important;letter-spacing:.06em!important;text-transform:uppercase!important}
.er-manager-wallet-page .er-wallet-section__head h3{font-size:20px!important;font-weight:800!important;letter-spacing:-.015em!important;color:#0f172a!important}
.er-manager-wallet-page .er-wallet-section__head .er-hint{font-size:12px!important;font-weight:500!important;color:#667085!important}
.er-manager-wallet-page .er-manager-wallet-hero-card,.er-manager-wallet-page .er-kpi,.er-manager-wallet-page .er-agent-wallet-card,.er-manager-wallet-page .er-manager-agent-card{border-radius:18px!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 4px 14px rgba(15,23,42,.028)!important;background:#fff!important}
.er-manager-wallet-page .er-manager-wallet-hero-card__label,.er-manager-wallet-page .er-kpi-label{font-size:10px!important;font-weight:700!important;color:#667085!important;letter-spacing:.06em!important;text-transform:uppercase!important}
.er-manager-wallet-page .er-manager-wallet-hero-card__value,.er-manager-wallet-page .er-kpi-value{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0f172a!important}
.er-manager-wallet-page .er-manager-wallet-hero-card__hint,.er-manager-wallet-page .er-manager-wallet-hero-card__meta,.er-manager-wallet-page .er-wallet-cell-sub{font-size:12px!important;font-weight:500!important;color:#667085!important}
.er-manager-wallet-page .er-table{border-radius:16px!important;overflow:hidden!important}
@media(max-width:1400px){.er-cash-modern__kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.er-cash-modern-transfer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.er-cash-modern__kpis,.er-cash-modern-transfer-grid{grid-template-columns:1fr!important}.er-manager-wallet-page{padding:12px!important}}


/* 2.9.86 — улучшенный интерфейс кошелька управляющего */
.er-manager-wallet-page{padding:16px!important;background:linear-gradient(180deg,#f8fafc 0%,#f4f7fb 100%)!important}
.er-manager-wallet-page .er-wallet-hero{display:grid!important;grid-template-columns:1.25fr 1fr!important;gap:16px!important;align-items:stretch!important;background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 60%,#2563eb 100%)!important;border:1px solid rgba(59,130,246,.24)!important;border-radius:24px!important;padding:18px!important;position:relative;overflow:hidden}
.er-manager-wallet-page .er-wallet-hero:before{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08)}
.er-manager-wallet-page .er-wallet-hero:after{content:"";position:absolute;right:130px;bottom:-90px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.05)}
.er-manager-wallet-page .er-wallet-hero__main,.er-manager-wallet-page .er-wallet-hero__legend,.er-manager-wallet-page .er-manager-wallet-topstats{position:relative;z-index:1}
.er-manager-wallet-page .er-wallet-hero__main{display:flex;flex-direction:column;justify-content:flex-start;gap:8px}
.er-manager-wallet-page .er-wallet-hero__eyebrow{display:inline-flex!important;align-self:flex-start;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.18)!important;color:#dbeafe!important;padding:6px 10px!important;border-radius:999px!important}
.er-manager-wallet-page .er-wallet-hero h3,.er-manager-wallet-page .er-wallet-hero__main h3{color:#fff!important;font-size:30px!important;line-height:1.08!important;font-weight:800!important;margin:0!important}
.er-manager-wallet-page .er-wallet-hero .er-hint,.er-manager-wallet-page .er-wallet-hero__main .er-hint{color:rgba(255,255,255,.88)!important;max-width:680px!important;font-size:14px!important;line-height:1.5!important}
.er-manager-wallet-topstats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.er-manager-wallet-topstat{background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:14px 15px;min-height:110px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.er-manager-wallet-topstat--primary{background:linear-gradient(180deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,.11) 100%);border-color:rgba(255,255,255,.22)}
.er-manager-wallet-topstat span{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#dbeafe}
.er-manager-wallet-topstat strong{font-size:28px;line-height:1.08;font-weight:800;color:#fff;letter-spacing:-.03em}
.er-manager-wallet-topstat small{font-size:12px;line-height:1.35;color:rgba(255,255,255,.8)}
.er-manager-wallet-page .er-wallet-hero__legend--manager{grid-column:1 / -1;display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding-top:2px}
.er-manager-wallet-page .er-wallet-pill{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important;box-shadow:none!important}
.er-manager-wallet-page .er-wallet-pill--blue{background:rgba(59,130,246,.22)!important}
.er-manager-wallet-page .er-wallet-pill--violet{background:rgba(139,92,246,.22)!important}
.er-manager-wallet-page .er-wallet-pill--amber{background:rgba(245,158,11,.22)!important}
.er-manager-wallet-filter-card{padding:16px 18px!important;background:#fff!important}
.er-manager-wallet-filter-card .er-wallet-section__head{margin-bottom:10px!important}
.er-manager-wallet-filter-card .er-field label{font-size:12px!important;font-weight:700!important;color:#667085!important}
.er-manager-wallet-filter-card select[data-er-manager-wallet-filter="1"]{height:44px!important;border-radius:14px!important;border:1px solid rgba(148,163,184,.24)!important;box-shadow:none!important;font-size:14px!important;font-weight:600!important}
.er-manager-wallet-page .er-wallet-layout{gap:16px!important}
.er-manager-wallet-page .er-wallet-layout__side{gap:16px!important}
.er-manager-wallet-page .er-wallet-sidecard{border-radius:20px!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 6px 18px rgba(15,23,42,.03)!important;background:#fff!important;padding:16px!important}
.er-manager-wallet-page .er-wallet-sidecard h4{font-size:15px!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0f172a!important;margin:0 0 14px!important}
.er-manager-wallet-page .er-wallet-sidecard .er-kpi{border-radius:16px!important;padding:14px!important;margin-bottom:10px!important}
.er-manager-wallet-page .er-wallet-sidecard .er-kpi:last-child{margin-bottom:0!important}
.er-manager-wallet-page .er-manager-wallet-hero-grid{gap:12px!important}
.er-manager-wallet-page .er-manager-wallet-hero-card{padding:16px!important;min-height:100%!important}
.er-manager-wallet-page .er-manager-wallet-hero-card__value{font-size:28px!important}
.er-manager-wallet-page .er-manager-wallet-hero-card__meta{margin-top:10px!important;gap:7px!important}
.er-manager-wallet-page .er-manager-wallet-hero-card__branches{margin-top:12px!important;border-top:1px dashed rgba(148,163,184,.28)!important;padding-top:12px!important}
.er-manager-wallet-page .er-wallet-section{padding:16px!important}
.er-manager-wallet-page .er-wallet-section__head{margin-bottom:14px!important}
.er-manager-wallet-page .er-table-wrap,.er-manager-wallet-page .er-wallet-table-wrap{border-radius:16px!important;overflow-x:auto!important;overflow-y:visible!important;border:1px solid rgba(148,163,184,.18)!important}
.er-manager-wallet-page .er-wallet-history-table thead th{background:#f8fafc!important}
@media(max-width:1380px){.er-manager-wallet-page .er-wallet-hero{grid-template-columns:1fr!important}.er-manager-wallet-topstats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:860px){.er-manager-wallet-topstats{grid-template-columns:1fr!important}.er-manager-wallet-page .er-wallet-hero__legend--manager{flex-direction:column!important;align-items:flex-start!important}.er-manager-wallet-page .er-wallet-hero h3,.er-manager-wallet-page .er-wallet-hero__main h3{font-size:24px!important}}


/* 2.9.87 — кнопки выбора управляющего */
.er-manager-wallet-person-picker{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.er-manager-wallet-person-btn{appearance:none;border:1px solid rgba(148,163,184,.24);background:#fff;color:#0f172a;border-radius:14px;padding:11px 14px;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer;transition:all .18s ease;box-shadow:0 2px 8px rgba(15,23,42,.03)}
.er-manager-wallet-person-btn:hover{border-color:rgba(37,99,235,.34);background:#f8fbff;box-shadow:0 6px 16px rgba(37,99,235,.08);transform:translateY(-1px)}
.er-manager-wallet-person-btn.is-active{background:linear-gradient(180deg,#2f6fed 0%,#1d4ed8 100%);border-color:#1d4ed8;color:#fff;box-shadow:0 10px 18px rgba(29,78,216,.22)}
.er-manager-wallet-person-btn.is-active:hover{background:linear-gradient(180deg,#2f6fed 0%,#1d4ed8 100%);color:#fff}
@media(max-width:760px){.er-manager-wallet-person-picker{gap:8px}.er-manager-wallet-person-btn{width:100%;text-align:left}}


/* 2.9.88 — списание из кошелька управляющего как карточки касс */
.er-wallet-section__head--collect{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:16px!important;flex-wrap:wrap!important}
.er-manager-wallet-collect-date{display:flex;flex-direction:column;gap:6px;min-width:210px}
.er-manager-wallet-collect-date label{font-size:12px;font-weight:700;color:#667085}
.er-manager-wallet-collect-date input{height:42px;border-radius:14px;border:1px solid rgba(148,163,184,.24);padding:0 12px;font-size:14px;font-weight:600;box-shadow:none;background:#fff}
.er-manager-wallet-collect-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.er-manager-wallet-collect-card{border-radius:18px!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 4px 14px rgba(15,23,42,.028)!important;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;padding:16px!important}
.er-manager-wallet-collect-card__branch{font-size:18px;font-weight:800;line-height:1.2;color:#0f172a;margin-bottom:8px}
.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__label{font-size:10px!important;font-weight:700!important;color:#667085!important;letter-spacing:.06em!important;text-transform:uppercase!important}
.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__amount{font-size:28px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0f172a!important;margin-bottom:4px!important}
.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__hint{font-size:12px!important;font-weight:500!important;color:#667085!important;min-height:34px}
.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__form{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.er-manager-wallet-page .er-manager-wallet-collect-card input[name="amount"]{height:44px;border-radius:14px;border:1px solid rgba(148,163,184,.24);padding:0 14px;font-size:14px;font-weight:600;box-shadow:none;background:#fff}
.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__actions{display:flex;gap:8px}
.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__actions .er-btn{flex:1;height:40px;border-radius:14px;font-weight:700}
@media(max-width:1280px){.er-manager-wallet-collect-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.er-wallet-section__head--collect{align-items:stretch!important}.er-manager-wallet-collect-date{min-width:0}.er-manager-wallet-collect-grid{grid-template-columns:1fr}.er-manager-wallet-page .er-manager-wallet-collect-card .er-bank-source-card__actions{flex-direction:column}}


/* 2.9.91 — безопасное упрощение кошелька управляющего */
.er-manager-wallet-page--simple{padding:16px!important;background:linear-gradient(180deg,#f8fafc 0%,#f4f7fb 100%)!important}
.er-manager-wallet-page--simple .er-manager-wallet-simple-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:18px 20px!important;border-radius:22px!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 8px 24px rgba(15,23,42,.035)!important;background:linear-gradient(135deg,#ffffff 0%,#f7faff 100%)!important;margin-bottom:16px!important}
.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__text h3{margin:6px 0 8px!important;font-size:28px!important;line-height:1.12!important;font-weight:800!important;color:#0f172a!important}
.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__text .er-hint{max-width:820px!important;color:#667085!important}
.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__amount{min-width:320px;border-radius:20px;background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%);padding:18px 20px;box-shadow:0 14px 28px rgba(37,99,235,.18)}
.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__amount span{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#dbeafe;margin-bottom:8px}
.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__amount strong{display:block;font-size:34px;line-height:1.05;font-weight:800;letter-spacing:-.03em;color:#fff}
.er-manager-wallet-page--simple .er-wallet-section{padding:16px!important;border-radius:22px!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 8px 24px rgba(15,23,42,.03)!important;background:#fff!important;margin-bottom:16px!important}
.er-manager-wallet-page--simple .er-wallet-section__head{margin-bottom:14px!important}
.er-manager-wallet-page--simple .er-wallet-section__head h3{font-size:24px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0f172a!important}
.er-manager-wallet-page--simple .er-wallet-section__head .er-hint{color:#667085!important}
.er-manager-wallet-simple-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.er-manager-wallet-simple-kpi{border:1px solid rgba(148,163,184,.18);border-radius:18px;padding:16px;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.025)}
.er-manager-wallet-simple-kpi--accent{background:linear-gradient(180deg,#f7fbff 0%,#eef5ff 100%);border-color:rgba(37,99,235,.18)}
.er-manager-wallet-simple-kpi span{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#667085;margin-bottom:8px}
.er-manager-wallet-simple-kpi strong{display:block;font-size:28px;line-height:1.08;font-weight:800;letter-spacing:-.03em;color:#0f172a;margin-bottom:6px}
.er-manager-wallet-simple-kpi small{display:block;font-size:12px;line-height:1.4;color:#667085}
.er-manager-wallet-branches-simple__grid{display:grid;grid-template-columns:1fr;gap:14px}
.er-manager-wallet-branch-card{border:1px solid rgba(148,163,184,.18);border-radius:20px;padding:16px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 6px 16px rgba(15,23,42,.025)}
.er-manager-wallet-branch-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.er-manager-wallet-branch-card__name{font-size:20px;font-weight:800;line-height:1.15;color:#0f172a}
.er-manager-wallet-branch-card__balance{font-size:30px;font-weight:800;line-height:1.05;letter-spacing:-.03em;color:#1d4ed8;text-align:right;white-space:nowrap}
.er-manager-wallet-branch-card__hint{font-size:12px;line-height:1.4;color:#667085;margin-bottom:14px}
.er-manager-wallet-branch-card__metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.er-manager-wallet-branch-metric{border:1px solid rgba(148,163,184,.16);border-radius:16px;padding:12px 13px;background:#fff}
.er-manager-wallet-branch-metric span{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#667085;margin-bottom:6px}
.er-manager-wallet-branch-metric strong{display:block;font-size:21px;line-height:1.08;font-weight:800;letter-spacing:-.02em;color:#0f172a}
@media(max-width:1260px){.er-manager-wallet-simple-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.er-manager-wallet-page--simple .er-manager-wallet-simple-hero{padding:16px!important}.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__text h3{font-size:24px!important}.er-manager-wallet-page--simple .er-manager-wallet-simple-hero__amount{min-width:0;width:100%}.er-manager-wallet-simple-kpi-grid,.er-manager-wallet-branch-card__metrics{grid-template-columns:1fr}}


/* 2.9.97 — improved admin wallet */
.er-admin-wallet-redesign{display:flex;flex-direction:column;gap:16px;}
.er-admin-wallet-dashboard{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);gap:16px;padding:18px;border:1px solid rgba(37,99,235,.16);border-radius:22px;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(255,255,255,.95));}
.er-admin-wallet-dashboard__main h3{margin:6px 0 6px;font-size:24px;line-height:1.16;color:#0f172a;}
.er-admin-wallet-dashboard__amount{margin-top:18px;padding:18px;border-radius:20px;background:#2563eb;color:#fff;box-shadow:0 16px 32px rgba(37,99,235,.22);}
.er-admin-wallet-dashboard__amount span,.er-admin-wallet-mini-card span,.er-admin-wallet-manager-card__amount span{display:block;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;opacity:.78;}
.er-admin-wallet-dashboard__amount strong{display:block;margin-top:5px;font-size:40px;line-height:1;font-weight:950;}
.er-admin-wallet-dashboard__side{display:grid;grid-template-columns:1fr;gap:10px;}
.er-admin-wallet-mini-card{padding:14px 16px;border-radius:18px;background:#fff;border:1px solid rgba(148,163,184,.24);box-shadow:0 10px 24px rgba(15,23,42,.05);}
.er-admin-wallet-mini-card--accent{border-color:rgba(37,99,235,.35);background:rgba(37,99,235,.06);}
.er-admin-wallet-mini-card strong{display:block;margin-top:4px;font-size:22px;color:#0f172a;font-weight:950;}
.er-admin-wallet-mini-card small{display:block;margin-top:3px;color:#64748b;font-weight:700;}
.er-admin-wallet-section-priority{border-color:rgba(37,99,235,.18)!important;}
.er-admin-wallet-manager-list{display:flex;flex-direction:column;gap:12px;}
.er-admin-wallet-manager-card{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border:1px solid rgba(148,163,184,.28);border-radius:20px;background:#fff;padding:16px;box-shadow:0 12px 28px rgba(15,23,42,.05);}
.er-admin-wallet-manager-card__name{font-size:18px;font-weight:950;color:#0f172a;}
.er-admin-wallet-manager-card__amount{text-align:right;min-width:180px;}
.er-admin-wallet-manager-card__amount strong{display:block;margin-top:4px;font-size:28px;line-height:1;color:#2563eb;font-weight:950;}
.er-admin-wallet-manager-card__amount small{display:block;margin-top:4px;color:#64748b;font-weight:700;}
@media (max-width: 980px){.er-admin-wallet-dashboard{grid-template-columns:1fr}.er-admin-wallet-manager-card{flex-direction:column}.er-admin-wallet-manager-card__amount{text-align:left;min-width:0}}
@media (max-width: 560px){.er-admin-wallet-dashboard__amount strong{font-size:32px}}


/* 2.9.98 — admin wallet manager mode */
.er-admin-wallet-manager-mode{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.er-admin-wallet-person-picker{
  gap:10px;
}
.er-admin-wallet-person-picker .er-manager-wallet-person-btn{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.er-admin-wallet-picker-sum{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
}
.er-admin-wallet-zero-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:12px;
  margin-top:14px;
}
.er-admin-wallet-zero-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:18px;
  background:#fff;
}
.er-admin-wallet-zero-card__main span,
.er-admin-wallet-zero-card__main small{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.er-admin-wallet-zero-card__main strong{
  display:block;
  color:#0f172a;
  font-size:16px;
  margin:4px 0;
}
.er-admin-wallet-zero-card__amount{
  font-size:22px;
  font-weight:900;
  color:#2563eb;
  white-space:nowrap;
}
.er-admin-wallet-zero-card .er-btn{
  grid-column:1 / -1;
  width:100%;
}
@media (max-width:720px){
  .er-admin-wallet-zero-card{
    grid-template-columns:1fr;
  }
  .er-admin-wallet-zero-card__amount{
    font-size:20px;
  }
}


/* 2.10.02 — manual exact cash adjustment */
.er-bank-source-card__actions{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.er-bank-source-card__actions .er-btn{
  min-width:0;
  padding-left:8px;
  padding-right:8px;
}
@media (max-width:720px){
  .er-bank-source-card__actions{
    grid-template-columns:1fr;
  }
}


/* 2.10.07 — clearer branch picker in cash screen */
.er-cash-modern__section--branch-picker{
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(219,234,254,.55));
  border:2px solid rgba(37,99,235,.28);
  box-shadow:0 18px 42px rgba(37,99,235,.10);
}
.er-cash-modern__section-head--branch-picker{
  align-items:center;
  gap:16px;
}
.er-cash-step-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  margin-bottom:8px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.er-cash-modern__section-head--branch-picker h4{
  font-size:22px;
  line-height:1.15;
  color:#0f172a;
}
.er-cash-modern__section-head--branch-picker p{
  font-size:14px;
  color:#334155;
}
.er-cash-selected-branch-mini{
  min-width:260px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(37,99,235,.25);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.er-cash-selected-branch-mini span{
  display:block;
  font-size:11px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.er-cash-selected-branch-mini strong{
  display:block;
  margin-top:4px;
  font-size:17px;
  color:#0f172a;
}
.er-cash-selected-branch-mini em{
  display:block;
  margin-top:3px;
  font-style:normal;
  font-size:20px;
  font-weight:950;
  color:#2563eb;
}
.er-cash-selected-branch-mini small{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  color:#64748b;
}
.er-cash-modern-branches--highlighted{
  gap:14px;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch{
  min-height:104px;
  border-width:2px;
  background:#fff;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(15,23,42,.10);
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active{
  background:linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color:#1d4ed8;
  box-shadow:0 18px 36px rgba(37,99,235,.25);
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active .er-cash-modern-branch__icon{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active strong,
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active em,
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active small{
  color:#fff;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active .er-cash-modern-branch__check{
  background:#fff;
  color:#2563eb;
}
@media (max-width:860px){
  .er-cash-modern__section-head--branch-picker{
    align-items:stretch;
  }
  .er-cash-selected-branch-mini{
    min-width:0;
    width:100%;
  }
  .er-cash-modern-branches--highlighted .er-cash-modern-branch{
    min-height:92px;
  }
}


/* 2.10.08 — fix active branch readability */
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active{
  background:#ffffff !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.18), 0 18px 36px rgba(37,99,235,.16) !important;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active .er-cash-modern-branch__icon{
  background:#dbeafe !important;
  color:#2563eb !important;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active strong{
  color:#0f172a !important;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active em{
  color:#1d4ed8 !important;
  font-weight:950 !important;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active small{
  color:#475569 !important;
}
.er-cash-modern-branches--highlighted .er-cash-modern-branch.is-active .er-cash-modern-branch__check{
  background:#2563eb !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(37,99,235,.25);
}

/* 2.10.16 — компактные и рабочие фильтры записей */
.er-sortbar-records{
  padding:12px 14px !important;
  margin-bottom:12px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  box-shadow:0 10px 28px rgba(15,23,42,.045) !important;
}
.er-records-filter-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px 0;
  color:#0f172a;
}
.er-records-filter-head b{display:block;font-size:15px;line-height:1.15;font-weight:850;}
.er-records-filter-head span{display:block;margin-top:3px;font-size:12px;line-height:1.25;color:#64748b;font-weight:600;}
.er-sortbar-records .er-filters-row{
  display:grid !important;
  grid-template-columns:minmax(150px,.7fr) minmax(150px,.7fr) minmax(520px,1.9fr) repeat(6,minmax(150px,1fr)) auto !important;
  gap:9px !important;
  align-items:end !important;
}
.er-sortbar-records .er-field-inline,
.er-sortbar-records .er-field-actions{
  min-width:0 !important;
  flex:initial !important;
}
.er-sortbar-records .er-field label{
  margin-bottom:5px !important;
  font-size:11px !important;
  line-height:1.1 !important;
  color:#334155 !important;
}
.er-sortbar-records input,
.er-sortbar-records select{
  min-height:38px !important;
  height:38px !important;
  border-radius:11px !important;
  font-size:13px !important;
  padding-top:7px !important;
  padding-bottom:7px !important;
}
.er-sortbar-records .er-period-presets{
  width:auto !important;
  margin:0 !important;
  padding:6px !important;
  grid-column:auto !important;
  align-self:end !important;
  min-height:38px !important;
  border-radius:12px !important;
  gap:5px !important;
  background:#eef6ff !important;
}
.er-sortbar-records .er-period-preset-btn{
  min-height:26px !important;
  padding:5px 8px !important;
  font-size:11px !important;
}
.er-sortbar-records .er-period-preset-btn.is-active{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#fff !important;
}
.er-sortbar-records .er-field-actions{
  display:flex !important;
  gap:8px !important;
  align-items:end !important;
  min-width:0 !important;
}
.er-sortbar-records .er-field-actions label{display:none !important;}
.er-sortbar-records .er-field-actions .er-btn{
  min-height:38px !important;
  height:38px !important;
  padding:0 13px !important;
  border-radius:11px !important;
  white-space:nowrap !important;
}
@media (max-width: 1500px){
  .er-sortbar-records .er-filters-row{
    grid-template-columns:repeat(4,minmax(160px,1fr)) !important;
  }
  .er-sortbar-records .er-period-presets{grid-column:span 2 !important;}
  .er-sortbar-records .er-field-actions{grid-column:span 2 !important;justify-content:flex-end !important;}
}
@media (max-width: 900px){
  .er-sortbar-records .er-filters-row{grid-template-columns:1fr 1fr !important;}
  .er-sortbar-records .er-period-presets,
  .er-sortbar-records .er-field-actions{grid-column:1 / -1 !important;}
}
@media (max-width: 640px){
  .er-sortbar-records .er-filters-row{grid-template-columns:1fr !important;}
  .er-sortbar-records .er-field-actions{display:grid !important;grid-template-columns:1fr 1fr !important;}
  .er-sortbar-records .er-field-actions .er-btn{width:100% !important;}
}


/* 2.10.17 — аккуратные фильтры записей без растянутого пустого блока */
.er-sortbar-records{
  padding:14px !important;
  margin-bottom:12px !important;
  border-radius:18px !important;
  background:#ffffff !important;
  border:1px solid #dbe5f0 !important;
  box-shadow:0 10px 26px rgba(15,23,42,.055) !important;
  min-height:0 !important;
  overflow:visible !important;
}
.er-sortbar-records .er-records-filter-head{
  margin:0 0 12px 0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
}
.er-sortbar-records .er-records-filter-head b{
  font-size:16px !important;
  line-height:1.2 !important;
  letter-spacing:-.01em !important;
}
.er-sortbar-records .er-records-filter-head span{
  margin-top:3px !important;
  font-size:12px !important;
  color:#64748b !important;
}
.er-sortbar-records .er-filters-row{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-end !important;
  gap:10px !important;
  min-height:0 !important;
}
.er-sortbar-records .er-field-inline,
.er-sortbar-records .er-field-actions{
  flex:0 1 auto !important;
  min-width:0 !important;
  width:auto !important;
}
.er-sortbar-records .er-filter-date-from,
.er-sortbar-records .er-filter-date-to{flex-basis:136px !important;}
.er-sortbar-records .er-filter-date-from input,
.er-sortbar-records .er-filter-date-to input{width:136px !important;}
.er-sortbar-records .er-period-presets{
  order:3 !important;
  flex:1 1 480px !important;
  width:auto !important;
  min-width:360px !important;
  margin:0 !important;
  padding:6px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  border-radius:13px !important;
  background:#f1f6ff !important;
  border:1px solid #d7e8ff !important;
  min-height:38px !important;
}
.er-sortbar-records .er-period-preset-btn{
  height:28px !important;
  min-height:28px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  border:1px solid #b9d7ff !important;
  background:#fff !important;
  color:#0b63ce !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-shadow:none !important;
  cursor:pointer !important;
}
.er-sortbar-records .er-period-preset-btn:hover,
.er-sortbar-records .er-period-preset-btn.is-active{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#fff !important;
}
.er-sortbar-records .er-period-preset-clear{
  border-color:#fecaca !important;
  color:#dc2626 !important;
}
.er-sortbar-records .er-period-preset-clear:hover,
.er-sortbar-records .er-period-preset-clear.is-active{
  background:#dc2626 !important;
  border-color:#dc2626 !important;
  color:#fff !important;
}
.er-sortbar-records .er-field label{
  display:block !important;
  margin:0 0 5px 0 !important;
  font-size:11px !important;
  line-height:1.1 !important;
  color:#334155 !important;
  font-weight:800 !important;
}
.er-sortbar-records input,
.er-sortbar-records select{
  height:38px !important;
  min-height:38px !important;
  border-radius:11px !important;
  font-size:13px !important;
  padding:7px 10px !important;
}
.er-sortbar-records .er-field-inline:not(.er-filter-date-from):not(.er-filter-date-to){flex-basis:150px !important;}
.er-sortbar-records .er-field-inline:not(.er-filter-date-from):not(.er-filter-date-to) input,
.er-sortbar-records .er-field-inline:not(.er-filter-date-from):not(.er-filter-date-to) select{width:150px !important;}
.er-sortbar-records .er-field-inline:nth-last-child(2) input,
.er-sortbar-records .er-field-inline:nth-last-child(2) select{width:150px !important;}
.er-sortbar-records .er-field-actions{
  order:50 !important;
  display:flex !important;
  align-items:flex-end !important;
  gap:8px !important;
  flex-basis:auto !important;
  padding-top:0 !important;
}
.er-sortbar-records .er-field-actions label{display:none !important;}
.er-sortbar-records .er-field-actions .er-btn{
  height:38px !important;
  min-height:38px !important;
  padding:0 14px !important;
  border-radius:11px !important;
  white-space:nowrap !important;
}
@media (max-width: 1280px){
  .er-sortbar-records .er-period-presets{order:0;flex-basis:100% !important;min-width:0 !important;}
  .er-sortbar-records .er-field-inline:not(.er-filter-date-from):not(.er-filter-date-to){flex:1 1 170px !important;}
  .er-sortbar-records .er-field-inline:not(.er-filter-date-from):not(.er-filter-date-to) input,
  .er-sortbar-records .er-field-inline:not(.er-filter-date-from):not(.er-filter-date-to) select{width:100% !important;}
}
@media (max-width: 720px){
  .er-sortbar-records{padding:12px !important;}
  .er-sortbar-records .er-filter-date-from,
  .er-sortbar-records .er-filter-date-to{flex:1 1 calc(50% - 8px) !important;}
  .er-sortbar-records .er-filter-date-from input,
  .er-sortbar-records .er-filter-date-to input{width:100% !important;}
  .er-sortbar-records .er-period-presets{flex-basis:100% !important;}
  .er-sortbar-records .er-field-actions{width:100% !important;}
  .er-sortbar-records .er-field-actions .er-btn{flex:1 1 0 !important;}
}


/* 2.10.20 — операции: мультивыбор сотрудников и кнопки периода в один ряд */
.er-sortbar-operations .er-period-presets{
  flex:1 1 520px !important;
  min-width:520px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  scrollbar-width:thin;
  white-space:nowrap !important;
}
.er-sortbar-operations .er-period-preset-btn{
  flex:0 0 auto !important;
  padding-left:9px !important;
  padding-right:9px !important;
}
.er-sortbar-operations .er-filter-employees-multi{
  flex-basis:220px !important;
}
.er-sortbar-operations .er-filter-employees-multi select{
  width:220px !important;
  height:38px !important;
  min-height:38px !important;
  overflow:hidden !important;
}
.er-sortbar-operations .er-filter-microhint{
  display:block !important;
  margin-top:4px !important;
  font-size:10px !important;
  line-height:1.1 !important;
  color:#64748b !important;
  font-weight:700 !important;
}
@media (max-width: 1280px){
  .er-sortbar-operations .er-period-presets{
    flex-basis:100% !important;
    min-width:0 !important;
  }
}
@media (max-width: 720px){
  .er-sortbar-operations .er-filter-employees-multi,
  .er-sortbar-operations .er-filter-employees-multi select{
    width:100% !important;
    flex-basis:100% !important;
  }
}

/* v2.10.32 — графики смен: действия прямо в предупреждении о датах без сотрудника */
.er-shift-gap-alert-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(220,38,38,.14);
}
.er-shift-gap-alert-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.er-shift-gap-alert-row small{margin-top:0 !important;}

/* 2.10.35 — cash today breakdown modal */
.er-cash-modern-side-card--clickable{
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.er-cash-modern-side-card--clickable:hover,
.er-cash-modern-side-card--clickable:focus{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(15,23,42,.12);
  outline:none;
}
.er-cash-modern-side-card__link{
  display:block;
  margin-top:8px;
  font-size:12px;
  font-style:normal;
  font-weight:700;
  color:#2563eb;
}
.er-cash-breakdown-modal{
  display:block;
  min-width:min(760px, 82vw);
}
.er-cash-breakdown-modal__meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  margin-bottom:12px;
  border:1px solid rgba(148,163,184,.35);
  border-radius:14px;
  background:rgba(248,250,252,.9);
  color:#334155;
}
.er-cash-breakdown-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-bottom:14px;
}
.er-cash-breakdown-summary__card{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.32);
  background:#fff;
}
.er-cash-breakdown-summary__card span{
  display:block;
  color:#64748b;
  font-size:12px;
  margin-bottom:5px;
}
.er-cash-breakdown-summary__card strong{
  display:block;
  color:#0f172a;
  font-size:18px;
}
.er-cash-breakdown-summary__card.is-total{
  border-color:rgba(37,99,235,.35);
  background:rgba(37,99,235,.06);
}
.er-cash-breakdown-empty,
.er-cash-breakdown-loading,
.er-cash-breakdown-error{
  padding:18px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.35);
  background:#f8fafc;
  color:#475569;
  text-align:center;
}
.er-cash-breakdown-error{
  border-color:rgba(220,38,38,.24);
  background:rgba(254,242,242,.95);
  color:#991b1b;
}
.er-cash-breakdown-error strong,
.er-cash-breakdown-error small{
  display:block;
}
.er-cash-breakdown-error small{
  margin-top:8px;
  color:#7f1d1d;
  word-break:break-word;
}
.er-cash-breakdown-table-wrap{
  max-height:52vh;
  overflow:auto;
}
.er-cash-breakdown-table td.is-positive{
  color:#047857;
  font-weight:700;
}
.er-cash-breakdown-table td.is-negative{
  color:#b91c1c;
  font-weight:700;
}
@media (max-width: 760px){
  .er-cash-breakdown-modal{ min-width:0; }
  .er-cash-breakdown-summary{ grid-template-columns:1fr; }
  .er-cash-breakdown-modal__meta{ align-items:flex-start; flex-direction:column; }
}

/* ===== CRM-TO 2.10.36 — cash history multi filters ===== */
.er-sortbar-cash-history .er-filters-row{
  align-items:flex-end !important;
  gap:10px !important;
}
.er-sortbar-cash-history .er-filter-branches-multi,
.er-sortbar-cash-history .er-filter-employees-multi,
.er-sortbar-cash-history .er-filter-cash-types{
  flex:1 1 210px !important;
  min-width:190px !important;
}
.er-sortbar-cash-history select[multiple]{
  width:100% !important;
  min-height:74px !important;
  height:74px !important;
  padding:7px 9px !important;
  border-radius:12px !important;
  line-height:1.25 !important;
  overflow:auto !important;
}
.er-sortbar-cash-history select[multiple] option{
  padding:4px 6px !important;
  border-radius:7px !important;
}
.er-sortbar-cash-history .er-field-actions{
  flex:0 0 auto !important;
}
@media (max-width:1280px){
  .er-sortbar-cash-history .er-period-presets{flex-basis:100% !important;min-width:0 !important;}
  .er-sortbar-cash-history .er-filter-branches-multi,
  .er-sortbar-cash-history .er-filter-employees-multi,
  .er-sortbar-cash-history .er-filter-cash-types{flex:1 1 calc(33.333% - 10px) !important;}
}
@media (max-width:760px){
  .er-sortbar-cash-history .er-filter-branches-multi,
  .er-sortbar-cash-history .er-filter-employees-multi,
  .er-sortbar-cash-history .er-filter-cash-types,
  .er-sortbar-cash-history .er-field-actions{flex:1 1 100% !important;width:100% !important;}
  .er-sortbar-cash-history .er-field-actions .er-btn{width:100% !important;}
}

/* ===== CRM-TO 2.10.37 — readable cash history filters ===== */
.er-sortbar-cash-history.er-cash-history-filter-panel{
  padding:14px 14px 12px !important;
  overflow:visible !important;
}
.er-sortbar-cash-history .er-filters-row{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:12px !important;
}
.er-cash-history-top-row{
  display:grid !important;
  grid-template-columns:150px 150px minmax(420px, 1fr) auto !important;
  gap:12px !important;
  align-items:end !important;
  width:100% !important;
}
.er-cash-history-top-row .er-field{
  min-width:0 !important;
  width:100% !important;
}
.er-cash-history-top-row input[type="date"]{
  width:100% !important;
  min-height:40px !important;
}
.er-cash-history-top-row .er-period-presets{
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:8px !important;
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:6px !important;
}
.er-cash-history-top-row .er-period-preset-btn{
  white-space:nowrap !important;
}
.er-cash-history-actions{
  justify-self:end !important;
  min-width:160px !important;
}
.er-cash-history-actions-row{
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
}
.er-cash-history-picker-grid{
  display:grid !important;
  grid-template-columns:minmax(220px, .8fr) minmax(320px, 1.2fr) minmax(320px, 1.2fr) !important;
  gap:12px !important;
  width:100% !important;
}
.er-cash-history-picker-grid-employee{
  grid-template-columns:minmax(220px, .8fr) minmax(420px, 1.4fr) !important;
}
.er-cash-check-panel{
  background:#f8fafc !important;
  border:1px solid rgba(148,163,184,.38) !important;
  border-radius:16px !important;
  padding:10px !important;
  min-width:0 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72) !important;
}
.er-cash-check-title{
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  color:#334155 !important;
  margin:0 0 8px !important;
}
.er-cash-check-options{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  max-height:116px !important;
  overflow:auto !important;
  padding:1px 2px 2px !important;
}
.er-cash-check-option{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  min-height:32px !important;
  padding:6px 10px !important;
  border:1px solid rgba(148,163,184,.45) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.15 !important;
  cursor:pointer !important;
  user-select:none !important;
  transition:background .12s ease,border-color .12s ease,box-shadow .12s ease !important;
}
.er-cash-check-option:hover{
  border-color:rgba(37,99,235,.5) !important;
  background:#eff6ff !important;
}
.er-cash-check-option input{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  margin:0 !important;
  cursor:pointer !important;
}
.er-cash-check-option:has(input:checked){
  background:#eaf2ff !important;
  border-color:#60a5fa !important;
  box-shadow:0 0 0 2px rgba(96,165,250,.16) !important;
}
.er-cash-check-all{
  background:#eef2ff !important;
}
.er-cash-fixed-value{
  min-height:36px !important;
  display:flex !important;
  align-items:center !important;
  padding:7px 10px !important;
  border-radius:12px !important;
  background:#fff !important;
  border:1px solid rgba(148,163,184,.38) !important;
  color:#0f172a !important;
  font-size:13px !important;
  font-weight:800 !important;
}
.er-sortbar-cash-history select[multiple]{
  display:none !important;
}
@media (max-width:1420px){
  .er-cash-history-top-row{
    grid-template-columns:150px 150px 1fr !important;
  }
  .er-cash-history-actions{
    grid-column:1 / -1 !important;
    justify-self:start !important;
  }
  .er-cash-history-actions-row{
    justify-content:flex-start !important;
  }
  .er-cash-history-picker-grid{
    grid-template-columns:1fr 1fr !important;
  }
  .er-cash-history-picker-grid .er-filter-cash-types{
    grid-column:1 / -1 !important;
  }
}
@media (max-width:900px){
  .er-cash-history-top-row,
  .er-cash-history-picker-grid,
  .er-cash-history-picker-grid-employee{
    grid-template-columns:1fr !important;
  }
  .er-cash-history-actions-row{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .er-cash-history-actions-row .er-btn{
    width:100% !important;
  }
  .er-cash-check-options{
    max-height:180px !important;
  }
}
.er-cash-check-option.is-checked{background:#eaf2ff !important;border-color:#60a5fa !important;box-shadow:0 0 0 2px rgba(96,165,250,.16) !important;}
.er-cash-history-picker-grid .er-filter-branches-multi,
.er-cash-history-picker-grid .er-filter-employees-multi,
.er-cash-history-picker-grid .er-filter-cash-types{min-width:0 !important;flex:none !important;width:auto !important;}

/* ===== CRM-TO 2.10.38 — improved cash history view ===== */
.er-sortbar-cash-history.er-cash-history-filter-panel{
  padding:16px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  border:1px solid rgba(148,163,184,.32) !important;
  box-shadow:0 10px 28px rgba(15,23,42,.06) !important;
}
.er-sortbar-cash-history .er-records-filter-head{
  margin-bottom:12px !important;
  padding-bottom:10px !important;
  border-bottom:1px solid rgba(226,232,240,.9) !important;
}
.er-cash-history-top-row{
  grid-template-columns:140px 140px minmax(520px,1fr) auto !important;
  align-items:end !important;
  gap:10px !important;
}
.er-cash-history-top-row .er-period-presets{
  min-height:42px !important;
  padding:6px 8px !important;
  background:#f1f7ff !important;
  border:1px solid rgba(96,165,250,.26) !important;
  border-radius:14px !important;
}
.er-cash-history-actions-row .er-btn{
  min-height:40px !important;
  padding:8px 16px !important;
  border-radius:12px !important;
}
.er-cash-history-picker-grid{
  grid-template-columns:minmax(240px,.9fr) minmax(420px,1.45fr) minmax(360px,1.1fr) !important;
  align-items:start !important;
}
.er-cash-history-picker-grid-employee{
  grid-template-columns:minmax(240px,.8fr) minmax(520px,1.5fr) !important;
}
.er-cash-check-panel{
  background:#fff !important;
  border-color:rgba(203,213,225,.92) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.045) !important;
}
.er-cash-check-title{
  font-size:13px !important;
  color:#0f172a !important;
  margin-bottom:10px !important;
}
.er-cash-check-options{
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
  gap:9px !important;
}
.er-cash-check-option{
  min-height:36px !important;
  padding:7px 12px !important;
  border-radius:13px !important;
  box-shadow:0 1px 0 rgba(15,23,42,.03) !important;
}
.er-cash-check-option input{
  accent-color:#2563eb !important;
}
.er-cash-check-option.is-checked,
.er-cash-check-option:has(input:checked){
  background:#eaf2ff !important;
  border-color:#3b82f6 !important;
  box-shadow:0 0 0 2px rgba(59,130,246,.14) !important;
}
.er-cash-history-table{
  table-layout:auto !important;
}
.er-cash-history-table th,
.er-cash-history-table td{
  vertical-align:middle !important;
}
.er-cash-history-table th:nth-child(3),
.er-cash-history-table td:nth-child(3){
  min-width:310px !important;
}
.er-cash-history-table th:nth-child(4),
.er-cash-history-table td:nth-child(4){
  min-width:230px !important;
}
.er-cash-history-date strong{
  font-weight:800 !important;
  color:#0f172a !important;
}
.er-cash-history-breakdown{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}
.er-cash-history-breakdown__chips{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
}
.er-cash-history-break-chip{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:5px 8px !important;
  border-radius:999px !important;
  background:#f8fafc !important;
  border:1px solid rgba(203,213,225,.86) !important;
  color:#334155 !important;
  font-size:12px !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
}
.er-cash-history-break-chip b{font-weight:800 !important;}
.er-cash-history-break-chip em{font-style:normal !important;font-weight:800 !important;}
.er-cash-history-break-chip.is-positive{background:#ecfdf5 !important;border-color:#a7f3d0 !important;color:#047857 !important;}
.er-cash-history-break-chip.is-negative{background:#fef2f2 !important;border-color:#fecaca !important;color:#b91c1c !important;}
.er-cash-history-breakdown__total{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  max-width:280px !important;
  padding:6px 8px !important;
  border-radius:10px !important;
  background:#f1f5f9 !important;
}
.er-cash-history-breakdown__total span{font-size:12px !important;color:#64748b !important;font-weight:700 !important;}
.er-cash-history-breakdown__total strong{font-size:13px !important;color:#0f172a !important;font-weight:900 !important;}
.er-cash-history-empty-composition{
  display:inline-flex !important;
  padding:7px 10px !important;
  border-radius:999px !important;
  background:#f8fafc !important;
  color:#64748b !important;
  border:1px dashed rgba(148,163,184,.72) !important;
  font-weight:700 !important;
}
.er-cash-history-balance{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:6px !important;
}
.er-cash-history-balance div{
  padding:6px 8px !important;
  border-radius:10px !important;
  background:#f8fafc !important;
  border:1px solid rgba(226,232,240,.96) !important;
}
.er-cash-history-balance div.is-total{
  grid-column:1 / -1 !important;
  background:#eff6ff !important;
  border-color:#bfdbfe !important;
}
.er-cash-history-balance span{
  display:block !important;
  font-size:11px !important;
  font-weight:800 !important;
  color:#64748b !important;
  margin-bottom:2px !important;
}
.er-cash-history-balance strong{
  display:block !important;
  font-size:12px !important;
  font-weight:900 !important;
  color:#0f172a !important;
}
.er-cash-history-table .is-positive{color:#047857 !important;font-weight:800 !important;}
.er-cash-history-table .is-negative{color:#b91c1c !important;font-weight:800 !important;}
.er-cash-history-type-label{
  display:inline-flex !important;
  max-width:260px !important;
  line-height:1.35 !important;
  color:#334155 !important;
  font-weight:700 !important;
}
.er-cash-history-details-btn{
  white-space:nowrap !important;
}
@media (max-width:1420px){
  .er-cash-history-top-row{grid-template-columns:140px 140px 1fr !important;}
  .er-cash-history-actions{grid-column:1 / -1 !important;justify-self:end !important;}
  .er-cash-history-picker-grid{grid-template-columns:1fr !important;}
}
@media (max-width:900px){
  .er-cash-history-actions{justify-self:stretch !important;}
  .er-cash-history-balance{grid-template-columns:1fr !important;}
}
.er-cash-history-empty-composition.is-error{background:#fef2f2 !important;color:#b91c1c !important;border-color:#fecaca !important;}


/* === Impersonation buttons polish === */
.er-impersonation-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.er-table--employees .er-col-actions,
.er-table--agents .er-col-actions{
  min-width: 220px;
}
.er-btn.er-btn-impersonate,
button.er-btn.er-btn-impersonate,
a.er-btn.er-btn-impersonate{
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border-color:rgba(37,99,235,.20);
  background:linear-gradient(180deg,#eff6ff 0%,#dbeafe 100%);
  color:#1d4ed8;
  box-shadow:none;
  font-size:12px;
  line-height:1.15;
  font-weight:800;
  white-space:nowrap;
}
.er-btn.er-btn-impersonate::before,
a.er-btn.er-btn-impersonate::before{
  content:"↗";
  display:inline-block;
  margin-right:6px;
  font-size:12px;
  font-weight:900;
}
.er-btn.er-btn-impersonate:hover,
a.er-btn.er-btn-impersonate:hover{
  background:linear-gradient(180deg,#dbeafe 0%,#bfdbfe 100%);
  border-color:rgba(37,99,235,.28);
  color:#1e40af;
}
.er-impersonation-banner{
  margin:0 0 12px 0;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(245,158,11,.28);
  background:linear-gradient(180deg,rgba(255,251,235,.96) 0%,rgba(254,243,199,.72) 100%);
  box-shadow:0 12px 28px rgba(245,158,11,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.er-impersonation-banner__content{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.er-impersonation-banner__title{
  font-size:14px;
  line-height:1.35;
  color:#92400e;
}
.er-impersonation-banner__meta{
  font-size:12px;
  line-height:1.35;
  color:#6b7280;
}
.er-btn.er-btn-impersonate-back,
button.er-btn.er-btn-impersonate-back,
a.er-btn.er-btn-impersonate-back{
  min-height:36px;
  padding:8px 14px;
  border-radius:999px;
  border-color:rgba(217,119,6,.28);
  background:#fff;
  color:#92400e;
  box-shadow:0 8px 18px rgba(217,119,6,.10);
  font-size:12px;
  line-height:1.15;
  font-weight:800;
  white-space:nowrap;
}
.er-btn.er-btn-impersonate-back::before,
a.er-btn.er-btn-impersonate-back::before{
  content:"←";
  display:inline-block;
  margin-right:6px;
  font-size:12px;
  font-weight:900;
}
.er-btn.er-btn-impersonate-back:hover,
a.er-btn.er-btn-impersonate-back:hover{
  background:#fff7ed;
  border-color:rgba(217,119,6,.38);
  color:#78350f;
}
@media (max-width: 900px){
  .er-table--employees .er-col-actions,
  .er-table--agents .er-col-actions{ min-width: 0; }
  .er-impersonation-banner{ align-items:flex-start; }
}



/* === 2.10.46 — quick period buttons polish === */
.er-sortbar-records .er-period-presets,
.er-sortbar-operations .er-period-presets,
[data-er-filters="records"] .er-period-presets,
[data-er-filters="admin_records"] .er-period-presets,
[data-er-filters="unassigned_records"] .er-period-presets,
[data-er-filters="tx"] .er-period-presets,
[data-er-filters="admin_tx"] .er-period-presets{
  order: 40 !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  margin: 2px 0 0 !important;
  border-radius: 14px !important;
  border: 1px solid #d7e8ff !important;
  background: linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%) !important;
  overflow: visible !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}
.er-sortbar-records .er-period-preset-btn,
.er-sortbar-operations .er-period-preset-btn,
[data-er-filters="records"] .er-period-preset-btn,
[data-er-filters="admin_records"] .er-period-preset-btn,
[data-er-filters="unassigned_records"] .er-period-preset-btn,
[data-er-filters="tx"] .er-period-preset-btn,
[data-er-filters="admin_tx"] .er-period-preset-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #bfd7ff !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset !important;
  white-space: nowrap !important;
}
.er-sortbar-records .er-period-preset-btn:hover,
.er-sortbar-records .er-period-preset-btn.is-active,
.er-sortbar-operations .er-period-preset-btn:hover,
.er-sortbar-operations .er-period-preset-btn.is-active,
[data-er-filters="records"] .er-period-preset-btn:hover,
[data-er-filters="records"] .er-period-preset-btn.is-active,
[data-er-filters="admin_records"] .er-period-preset-btn:hover,
[data-er-filters="admin_records"] .er-period-preset-btn.is-active,
[data-er-filters="unassigned_records"] .er-period-preset-btn:hover,
[data-er-filters="unassigned_records"] .er-period-preset-btn.is-active,
[data-er-filters="tx"] .er-period-preset-btn:hover,
[data-er-filters="tx"] .er-period-preset-btn.is-active,
[data-er-filters="admin_tx"] .er-period-preset-btn:hover,
[data-er-filters="admin_tx"] .er-period-preset-btn.is-active{
  background: linear-gradient(180deg,#2563eb 0%,#1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}
.er-sortbar-records .er-period-preset-clear,
.er-sortbar-operations .er-period-preset-clear,
[data-er-filters="records"] .er-period-preset-clear,
[data-er-filters="admin_records"] .er-period-preset-clear,
[data-er-filters="unassigned_records"] .er-period-preset-clear,
[data-er-filters="tx"] .er-period-preset-clear,
[data-er-filters="admin_tx"] .er-period-preset-clear{
  margin-left: auto !important;
  border-color: #fecaca !important;
  background: #fff7f7 !important;
  color: #dc2626 !important;
}
.er-sortbar-records .er-period-preset-clear:hover,
.er-sortbar-records .er-period-preset-clear.is-active,
.er-sortbar-operations .er-period-preset-clear:hover,
.er-sortbar-operations .er-period-preset-clear.is-active,
[data-er-filters="records"] .er-period-preset-clear:hover,
[data-er-filters="records"] .er-period-preset-clear.is-active,
[data-er-filters="admin_records"] .er-period-preset-clear:hover,
[data-er-filters="admin_records"] .er-period-preset-clear.is-active,
[data-er-filters="unassigned_records"] .er-period-preset-clear:hover,
[data-er-filters="unassigned_records"] .er-period-preset-clear.is-active,
[data-er-filters="tx"] .er-period-preset-clear:hover,
[data-er-filters="tx"] .er-period-preset-clear.is-active,
[data-er-filters="admin_tx"] .er-period-preset-clear:hover,
[data-er-filters="admin_tx"] .er-period-preset-clear.is-active{
  background: linear-gradient(180deg,#ef4444 0%,#dc2626 100%) !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
@media (max-width: 900px){
  .er-sortbar-records .er-period-presets,
  .er-sortbar-operations .er-period-presets,
  [data-er-filters="records"] .er-period-presets,
  [data-er-filters="admin_records"] .er-period-presets,
  [data-er-filters="unassigned_records"] .er-period-presets,
  [data-er-filters="tx"] .er-period-presets,
  [data-er-filters="admin_tx"] .er-period-presets{
    gap: 6px !important;
    padding: 8px !important;
  }
  .er-sortbar-records .er-period-preset-btn,
  .er-sortbar-operations .er-period-preset-btn,
  [data-er-filters="records"] .er-period-preset-btn,
  [data-er-filters="admin_records"] .er-period-preset-btn,
  [data-er-filters="unassigned_records"] .er-period-preset-btn,
  [data-er-filters="tx"] .er-period-preset-btn,
  [data-er-filters="admin_tx"] .er-period-preset-btn{
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}
@media (max-width: 640px){
  .er-sortbar-records .er-period-preset-clear,
  .er-sortbar-operations .er-period-preset-clear,
  [data-er-filters="records"] .er-period-preset-clear,
  [data-er-filters="admin_records"] .er-period-preset-clear,
  [data-er-filters="unassigned_records"] .er-period-preset-clear,
  [data-er-filters="tx"] .er-period-preset-clear,
  [data-er-filters="admin_tx"] .er-period-preset-clear{
    margin-left: 0 !important;
  }
}


.er-created-by__email--empty{
  background:rgba(148,163,184,.10) !important;
  color:#94a3b8 !important;
  font-weight:700 !important;
}


/* === 2.10.49 — quick income / expense cards === */
.er-quick-tx-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:16px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:20px;
  background:linear-gradient(180deg,#fbfdff 0%,#f3f8ff 100%);
  box-shadow:0 12px 30px rgba(15,23,42,.045);
}
.er-quick-tx-panel__head{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.er-quick-tx-panel__title{
  font-size:18px;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
  letter-spacing:-.01em;
}
.er-quick-tx-panel__sub{
  font-size:12px;
  line-height:1.45;
  color:#64748b;
}
.er-quick-tx-panel__cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.er-quick-tx-card{
  appearance:none;
  border:1px solid rgba(34,197,94,.24);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%);
  box-shadow:0 10px 26px rgba(34,197,94,.08);
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  cursor:pointer;
  text-align:left;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.er-quick-tx-card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(34,197,94,.12);
}
.er-quick-tx-card__badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(34,197,94,.10);
  color:#15803d;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.er-quick-tx-card__title{
  font-size:20px;
  line-height:1.15;
  font-weight:900;
  color:#166534;
}
.er-quick-tx-card__desc{
  min-height:36px;
  font-size:12px;
  line-height:1.45;
  color:#4b5563;
}
.er-quick-tx-card__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(34,197,94,.12);
  color:#15803d;
  font-size:12px;
  font-weight:900;
}
.er-quick-tx-card.is-active{
  border-color:#16a34a;
  background:linear-gradient(180deg,#22c55e 0%,#16a34a 100%);
  box-shadow:0 16px 32px rgba(22,163,74,.18);
}
.er-quick-tx-card.is-active .er-quick-tx-card__badge{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.er-quick-tx-card.is-active .er-quick-tx-card__title,
.er-quick-tx-card.is-active .er-quick-tx-card__desc,
.er-quick-tx-card.is-active .er-quick-tx-card__cta{
  color:#fff;
}
.er-quick-tx-card.is-active .er-quick-tx-card__cta{
  background:rgba(255,255,255,.16);
}
.er-quick-tx-card--expense{
  border-color:rgba(239,68,68,.22);
  background:linear-gradient(180deg,#ffffff 0%,#fff7f7 100%);
  box-shadow:0 10px 26px rgba(239,68,68,.08);
}
.er-quick-tx-card--expense:hover{
  box-shadow:0 14px 28px rgba(239,68,68,.12);
}
.er-quick-tx-card--expense .er-quick-tx-card__badge{
  background:rgba(239,68,68,.10);
  color:#dc2626;
}
.er-quick-tx-card--expense .er-quick-tx-card__title{
  color:#b91c1c;
}
.er-quick-tx-card--expense .er-quick-tx-card__cta{
  background:rgba(239,68,68,.10);
  color:#dc2626;
}
.er-quick-tx-card--expense.is-active{
  border-color:#dc2626;
  background:linear-gradient(180deg,#ef4444 0%,#dc2626 100%);
  box-shadow:0 16px 32px rgba(220,38,38,.18);
}
.er-quick-tx-type-field{
  display:none !important;
}
.er-quick-tx-note{
  border-color:rgba(34,197,94,.16) !important;
  background:#f6fff8 !important;
  color:#475569 !important;
}
.er-quick-tx-note.is-expense{
  border-color:rgba(239,68,68,.16) !important;
  background:#fff8f8 !important;
}
@media (max-width: 920px){
  .er-quick-tx-panel__cards{grid-template-columns:1fr;}
}




/* === 2.10.50 — separate quick income/expense forms === */
.er-quick-tx-split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:14px 0 18px;
}
.er-quick-tx-form-card{
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(37,99,235,.14) !important;
  border-radius:22px !important;
  overflow:hidden;
  background:#fff !important;
  box-shadow:0 14px 30px rgba(15,23,42,.05) !important;
}
.er-quick-tx-form-card--income{
  border-color:rgba(34,197,94,.22) !important;
}
.er-quick-tx-form-card--expense{
  border-color:rgba(239,68,68,.22) !important;
}
.er-quick-tx-form-card__head{
  padding:16px 18px;
  border-bottom:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
}
.er-quick-tx-form-card--income .er-quick-tx-form-card__head{
  background:linear-gradient(180deg,#f6fff8 0%,#ecfdf3 100%);
}
.er-quick-tx-form-card--expense .er-quick-tx-form-card__head{
  background:linear-gradient(180deg,#fff7f7 0%,#fef2f2 100%);
}
.er-quick-tx-form-card__badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  background:rgba(34,197,94,.12);
  color:#15803d;
}
.er-quick-tx-form-card--expense .er-quick-tx-form-card__badge{
  background:rgba(239,68,68,.12);
  color:#dc2626;
}
.er-quick-tx-form-card__title{
  margin-top:10px;
  font-size:24px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.02em;
  color:#166534;
}
.er-quick-tx-form-card--expense .er-quick-tx-form-card__title{ color:#b91c1c; }
.er-quick-tx-form-card__desc{
  margin-top:6px;
  font-size:12px;
  line-height:1.5;
  color:#475569;
}
.er-quick-tx-form-card__body{ padding:16px 16px 0; }
.er-quick-tx-form-card__body .er-grid{ gap:14px; }
.er-quick-tx-form-card__body .er-field label{
  font-weight:800;
}
.er-quick-tx-form-card__actions{
  padding:0 16px 16px;
  margin-top:0 !important;
}
.er-quick-tx-form-card__actions .er-btn{
  width:100%;
  min-height:44px;
  font-size:14px;
  font-weight:900;
  border-radius:14px;
}
.er-quick-tx-form-card .er-quick-tx-note{
  margin:0;
}
.er-quick-tx-form-card--income .er-quick-tx-note{
  border-color:rgba(34,197,94,.16) !important;
  background:#f6fff8 !important;
}
.er-quick-tx-form-card--expense .er-quick-tx-note{
  border-color:rgba(239,68,68,.16) !important;
  background:#fff8f8 !important;
}
@media (max-width: 980px){
  .er-quick-tx-split{ grid-template-columns:1fr; }
}



/* === 2.10.51 — quick operation title suggestions === */
.er-quick-tx-title-hint{
  margin-top:6px;
  font-size:11px;
  line-height:1.35;
  color:#64748b;
  font-weight:700;
}
.er-quick-tx-form-card input[name="title"]:required:placeholder-shown{
  border-color:rgba(239,68,68,.34) !important;
  background:#fffafa !important;
}
.er-quick-tx-form-card input[name="title"]:focus{
  background:#fff !important;
}


/* === 2.10.61 — плавающее окно задач CRM === */
.er-task-widget{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999999;
  width:390px;
  max-width:calc(100vw - 24px);
  font-family:inherit;
  pointer-events:auto;
}
.er-task-widget-fab{
  position:absolute;
  right:0;
  bottom:0;
  width:66px;
  height:66px;
  border:0;
  border-radius:24px;
  background:linear-gradient(135deg,#0f172a,#2563eb);
  color:#fff;
  box-shadow:0 18px 46px rgba(15,23,42,.28);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-weight:950;
}
.er-task-widget-fab span{ font-size:24px; line-height:1; }
.er-task-widget-fab b{
  min-width:24px;
  height:24px;
  padding:0 6px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  box-shadow:0 8px 20px rgba(239,68,68,.28);
}
.er-task-widget-panel{
  display:none;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.12);
  border-radius:24px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 80px rgba(15,23,42,.24);
  backdrop-filter:blur(16px);
}
.er-task-widget.is-open .er-task-widget-panel{ display:block; }
.er-task-widget.is-open .er-task-widget-fab{ display:none; }
.er-task-widget-head{
  cursor:move;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:linear-gradient(135deg,#0f172a,#1d4ed8);
  color:#fff;
}
.er-task-widget-head strong{
  display:block;
  font-size:16px;
  font-weight:950;
  line-height:1.15;
}
.er-task-widget-head span{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:rgba(255,255,255,.82);
  font-weight:800;
}
.er-task-widget-close{
  border:0;
  width:36px;
  height:36px;
  border-radius:14px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.er-task-widget-add{
  padding:12px;
  border-bottom:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.er-task-widget textarea,
.er-task-widget select{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:13px;
  outline:none;
}
.er-task-widget textarea{
  min-height:48px;
  resize:vertical;
  padding:10px 12px;
}
.er-task-widget select{
  min-height:72px;
  padding:7px 9px;
}
.er-task-widget textarea:focus,
.er-task-widget select:focus{
  border-color:rgba(37,99,235,.52);
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}
.er-task-widget-list{
  max-height:58vh;
  overflow:auto;
  padding:10px 12px 14px;
  background:#fff;
}
.er-task-widget-list.is-loading{ opacity:.72; }
.er-task-widget-loading,
.er-task-empty{
  padding:18px 12px;
  text-align:center;
  color:#64748b;
  font-weight:800;
}
.er-task-empty b{
  display:block;
  color:#0f172a;
  font-size:15px;
  margin-bottom:4px;
}
.er-task-empty span{ display:block; font-size:12px; }
.er-task-item{
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  padding:11px;
  margin-bottom:10px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.er-task-item-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:7px;
}
.er-task-id{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:#e0ecff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:950;
}
.er-task-date{
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.er-task-text{
  margin-bottom:8px;
  font-weight:800;
  line-height:1.35;
}
.er-task-assignees{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:5px 0 8px;
}
.er-task-chip{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  border:1px solid rgba(16,185,129,.16);
  font-size:11px;
  font-weight:900;
}
.er-task-chip-empty{
  background:#fff7ed;
  color:#c2410c;
  border-color:rgba(249,115,22,.18);
}
.er-task-select-label{
  display:block;
  margin:0 0 5px;
  color:#475569;
  font-size:11px;
  font-weight:900;
}
.er-task-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.er-task-widget.is-dragging{ opacity:.92; }
@media (max-width: 640px){
  .er-task-widget{
    left:10px !important;
    right:10px !important;
    bottom:12px;
    top:auto !important;
    width:auto;
    max-width:none;
  }
  .er-task-widget-panel{ border-radius:22px; }
  .er-task-widget-list{ max-height:54vh; }
}


/* 2.10.72 — readable mobile side menu */
@media (max-width: 980px){
  body .er-sidebar-portal .er-sidebar,
  body .er-sidebar{
    background: #ffffff !important;
    background-image: none !important;
    border-right: 1px solid rgba(15,23,42,.12) !important;
    box-shadow: 18px 0 45px rgba(15,23,42,.22) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body .er-sidebar-portal .er-sidebar::before,
  body .er-sidebar-portal .er-sidebar::after,
  body .er-sidebar::before,
  body .er-sidebar::after{
    display: none !important;
    content: none !important;
  }

  body .er-sidebar .er-branding-title,
  body .er-sidebar-portal .er-sidebar .er-branding-title{
    color: #111827 !important;
    text-shadow: none !important;
  }

  body .er-sidebar .er-branding-sub,
  body .er-sidebar-portal .er-sidebar .er-branding-sub{
    color: #475569 !important;
    text-shadow: none !important;
  }

  body .er-sidebar .er-nav-group,
  body .er-sidebar-portal .er-sidebar .er-nav-group{
    color: #64748b !important;
    text-shadow: none !important;
  }

  body .er-sidebar .er-nav-item,
  body .er-sidebar .er-nav-logout,
  body .er-sidebar-portal .er-sidebar .er-nav-item,
  body .er-sidebar-portal .er-sidebar .er-nav-logout{
    color: #1f2937 !important;
    background: rgba(248,250,252,.96) !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 800 !important;
  }

  body .er-sidebar .er-nav-item .er-nav-ico,
  body .er-sidebar .er-nav-logout .er-nav-ico,
  body .er-sidebar-portal .er-sidebar .er-nav-item .er-nav-ico,
  body .er-sidebar-portal .er-sidebar .er-nav-logout .er-nav-ico{
    color: #334155 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
  }

  body .er-sidebar .er-nav-item .er-nav-txt,
  body .er-sidebar .er-nav-logout .er-nav-txt,
  body .er-sidebar-portal .er-sidebar .er-nav-item .er-nav-txt,
  body .er-sidebar-portal .er-sidebar .er-nav-logout .er-nav-txt{
    color: #1f2937 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  body .er-sidebar .er-nav-item:hover,
  body .er-sidebar-portal .er-sidebar .er-nav-item:hover{
    background: #eef4ff !important;
    border-color: rgba(37,99,235,.28) !important;
    color: #0f172a !important;
  }

  body .er-sidebar .er-nav-item.is-active,
  body .er-sidebar-portal .er-sidebar .er-nav-item.is-active{
    background: linear-gradient(135deg, #dbeafe, #eff6ff) !important;
    border-color: rgba(37,99,235,.45) !important;
    color: #0f172a !important;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08) !important;
  }

  body .er-sidebar .er-nav-item.is-active .er-nav-ico,
  body .er-sidebar .er-nav-item.is-active .er-nav-txt,
  body .er-sidebar-portal .er-sidebar .er-nav-item.is-active .er-nav-ico,
  body .er-sidebar-portal .er-sidebar .er-nav-item.is-active .er-nav-txt{
    color: #0f172a !important;
  }

  body .er-sidebar .er-nav-sep,
  body .er-sidebar-portal .er-sidebar .er-nav-sep{
    background: rgba(148,163,184,.30) !important;
  }

  body .er-sidebar .er-sidebar-close,
  body .er-sidebar-portal .er-sidebar .er-sidebar-close{
    background: #f8fafc !important;
    border: 1px solid rgba(148,163,184,.32) !important;
    color: #111827 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.10) !important;
  }

  body .er-mobile-backdrop{
    background: rgba(15,23,42,.48) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* 2.10.74 — quick agent write-off inside agents report */
.er-agents-report-table-wrap .er-agent-report-pay{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
}
.er-agent-report-pay__row{
  display:flex;
  align-items:center;
  gap:6px;
}
.er-agent-report-pay__input{
  width:95px !important;
  min-width:95px !important;
  height:34px !important;
  padding:7px 9px !important;
  border-radius:10px !important;
  font-size:13px !important;
}
.er-agent-report-pay .er-btn-mini{
  min-height:34px !important;
  padding:7px 10px !important;
  border-radius:10px !important;
  white-space:nowrap;
  font-size:12px !important;
  font-weight:900 !important;
}
.er-agent-report-pay__full{
  width:max-content;
  max-width:100%;
}
.er-agent-report-pay__empty{
  display:inline-flex;
  align-items:center;
  min-height:34px;
}
@media (max-width: 700px){
  .er-agents-report-table-wrap .er-agent-report-pay{
    min-width:0;
    width:100%;
  }
  .er-agent-report-pay__row{
    width:100%;
  }
  .er-agent-report-pay__input{
    flex:1 1 auto;
    width:100% !important;
    min-width:0 !important;
  }
  .er-agent-report-pay .er-btn-mini,
  .er-agent-report-pay__full{
    width:auto;
  }
}


/* 2.10.75 — compact desktop write-off column in agents report */
.er-agents-report-table-wrap table.er-table{
  table-layout:auto !important;
}
.er-agent-report-pay-th{
  width:172px !important;
  min-width:172px !important;
  max-width:172px !important;
}
.er-agent-report-pay-cell{
  width:172px !important;
  min-width:172px !important;
  max-width:172px !important;
  padding:8px 10px !important;
  vertical-align:middle !important;
}
.er-agents-report-table-wrap .er-agent-report-pay{
  width:154px !important;
  min-width:154px !important;
  max-width:154px !important;
  gap:5px !important;
}
.er-agent-report-pay__row{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 70px !important;
  gap:6px !important;
  width:100% !important;
  align-items:center !important;
}
.er-agent-report-pay__input{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:32px !important;
  padding:6px 8px !important;
  font-size:12px !important;
}
.er-agent-report-pay .er-btn-mini{
  min-height:32px !important;
  height:32px !important;
  padding:6px 8px !important;
  font-size:11px !important;
  border-radius:9px !important;
}
.er-agent-report-pay__full{
  width:100% !important;
  justify-content:center !important;
  text-align:center !important;
  background:rgba(248,250,252,.96) !important;
}
@media (min-width: 701px){
  .er-agents-report-table-wrap .er-table th,
  .er-agents-report-table-wrap .er-table td{
    padding-top:9px !important;
    padding-bottom:9px !important;
  }
}
@media (max-width: 700px){
  .er-agent-report-pay-th,
  .er-agent-report-pay-cell{
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .er-agents-report-table-wrap .er-agent-report-pay{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .er-agent-report-pay__row{
    grid-template-columns:minmax(0, 1fr) auto !important;
  }
}

/* 2.10.78 — wider desktop write-off column in agents report */
@media (min-width: 701px){
  .er-agents-report-table-wrap .er-table th:nth-child(1),
  .er-agents-report-table-wrap .er-table td:nth-child(1){
    width: 96px !important;
    min-width: 96px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(2),
  .er-agents-report-table-wrap .er-table td:nth-child(2){
    width: 150px !important;
    min-width: 150px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(3),
  .er-agents-report-table-wrap .er-table td:nth-child(3){
    width: 70px !important;
    min-width: 70px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(4),
  .er-agents-report-table-wrap .er-table td:nth-child(4),
  .er-agents-report-table-wrap .er-table th:nth-child(5),
  .er-agents-report-table-wrap .er-table td:nth-child(5),
  .er-agents-report-table-wrap .er-table th:nth-child(6),
  .er-agents-report-table-wrap .er-table td:nth-child(6){
    width: 108px !important;
    min-width: 108px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(8),
  .er-agents-report-table-wrap .er-table td:nth-child(8){
    width: 72px !important;
    min-width: 72px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(9),
  .er-agents-report-table-wrap .er-table td:nth-child(9){
    width: 205px !important;
    min-width: 205px !important;
  }

  .er-agent-report-pay-th{
    width: 296px !important;
    min-width: 296px !important;
    max-width: 296px !important;
  }

  .er-agent-report-pay-cell{
    width: 296px !important;
    min-width: 296px !important;
    max-width: 296px !important;
    padding: 8px 10px !important;
  }

  .er-agents-report-table-wrap .er-agent-report-pay{
    width: 276px !important;
    min-width: 276px !important;
    max-width: 276px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .er-agent-report-pay__row{
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 78px !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .er-agent-report-pay__input{
    height: 32px !important;
    font-size: 12px !important;
  }

  .er-agent-report-pay .er-btn-mini{
    width: 78px !important;
    min-width: 78px !important;
    height: 32px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  .er-agent-report-pay__full{
    width: 92px !important;
    min-width: 92px !important;
    flex: 0 0 92px !important;
    height: 32px !important;
    white-space: nowrap !important;
  }

  .er-agent-report-pay__empty{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }
}


/* 2.10.79 — cleaner desktop agents report layout */
@media (min-width: 701px){
  .er-agents-report-table-wrap table.er-table{
    table-layout: fixed !important;
    width: 100% !important;
  }

  .er-agents-report-table-wrap .er-table th,
  .er-agents-report-table-wrap .er-table td{
    padding: 8px 9px !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(1),
  .er-agents-report-table-wrap .er-table td:nth-child(1){
    width: 88px !important;
    min-width: 88px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(2),
  .er-agents-report-table-wrap .er-table td:nth-child(2){
    width: 118px !important;
    min-width: 118px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(3),
  .er-agents-report-table-wrap .er-table td:nth-child(3){
    width: 58px !important;
    min-width: 58px !important;
    text-align: center !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(4),
  .er-agents-report-table-wrap .er-table td:nth-child(4),
  .er-agents-report-table-wrap .er-table th:nth-child(5),
  .er-agents-report-table-wrap .er-table td:nth-child(5),
  .er-agents-report-table-wrap .er-table th:nth-child(6),
  .er-agents-report-table-wrap .er-table td:nth-child(6){
    width: 94px !important;
    min-width: 94px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(7),
  .er-agents-report-table-wrap .er-table td:nth-child(7){
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(8),
  .er-agents-report-table-wrap .er-table td:nth-child(8){
    width: 58px !important;
    min-width: 58px !important;
    text-align: center !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(9),
  .er-agents-report-table-wrap .er-table td:nth-child(9){
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .er-agent-report-pay-th,
  .er-agent-report-pay-cell{
    width: 305px !important;
    min-width: 305px !important;
    max-width: 305px !important;
  }

  .er-agent-report-pay-cell{
    padding: 7px 8px !important;
  }

  .er-agents-report-table-wrap .er-agent-report-pay{
    width: 289px !important;
    min-width: 289px !important;
    max-width: 289px !important;
    display: grid !important;
    grid-template-columns: 1fr 82px !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    gap: 6px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .er-agent-report-pay__row{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .er-agent-report-pay__input{
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  .er-agent-report-pay .er-btn-mini{
    width: 76px !important;
    min-width: 76px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 5px 7px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    line-height: 1 !important;
  }

  .er-agent-report-pay__full{
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 5px 7px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .er-agent-report-pay__empty{
    width: 82px !important;
    min-width: 82px !important;
    height: 30px !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    color: rgba(100,116,139,.95) !important;
  }

  .er-agents-report-table-wrap .er-muted{
    line-height: 1.15 !important;
  }
}

/* 2.10.83 — variable amount operation templates */
.er-template-top-panel__btn--variable{
  background:linear-gradient(135deg,#0f766e,#14b8a6) !important;
  border-color:rgba(20,184,166,.45) !important;
  box-shadow:0 10px 26px rgba(15,118,110,.22) !important;
}
.er-template-top-panel__btn--variable .er-template-top-panel__btn-badge{
  background:rgba(255,255,255,.24) !important;
}
.er-template-top-panel__btn--variable .er-template-top-panel__btn-cta{
  color:#0f766e !important;
}
.er-template-top-panel__item.is-variable-amount .er-template-top-panel__conditions{
  border-color:#99f6e4 !important;
  background:linear-gradient(180deg,#f0fdfa 0%,#ffffff 100%) !important;
}
.er-template-top-panel__item.is-variable-amount .er-template-top-panel__conditions-title{
  color:#0f766e !important;
}
.er-template-modal-preview.is-variable-amount{
  border-color:#99f6e4 !important;
  background:#f0fdfa !important;
}
.er-template-modal-form input[name="amount"]{
  font-weight:800;
}



/* 2.10.86 — Documents tab */
.er-docs{display:grid;gap:16px}
.er-docs-card,.er-docs-action-card{background:#fff;border:1px solid rgba(148,163,184,.28);border-radius:18px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.er-docs-card h4,.er-docs-action-card h4{margin:0 0 6px;font-size:18px;color:#0f172a}
.er-docs-card p,.er-docs-action-card p{margin:0 0 14px;color:#64748b}
.er-docs-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.er-docs-grid{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:12px;margin-bottom:12px}
.er-docs-grid--wide{grid-template-columns:repeat(3,minmax(180px,1fr))}
.er-docs-grid--wide .er-field-wide{grid-column:1/-1}
.er-docs-main-actions{margin-top:4px}
.er-docs-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.er-docs-action-card{display:flex;flex-direction:column;align-items:flex-start}
.er-docs-action-card .er-btn{margin-top:auto}
.er-docs-badge{display:inline-flex;align-items:center;border-radius:999px;background:rgba(11,58,110,.08);color:#0b3a6e;font-weight:800;font-size:12px;padding:5px 9px;margin-bottom:10px}
.er-docs-table input[type="text"],.er-docs-table input[type="number"],.er-docs-table input[type="date"]{width:100%;min-width:90px;height:34px;border:1px solid rgba(148,163,184,.38);border-radius:10px;padding:6px 8px;background:#fff}
.er-docs-table th:first-child,.er-docs-table td:first-child{width:42px;text-align:center}
.er-docs-table th:last-child,.er-docs-table td:last-child{width:120px}
@media(max-width:900px){.er-docs-grid,.er-docs-grid--wide,.er-docs-actions-grid{grid-template-columns:1fr}.er-docs-card,.er-docs-action-card{padding:14px}.er-docs-table-wrap{overflow:auto}.er-docs-table{min-width:980px}}

/* 2.10.100 — compact agents report table and stable write-off column */
@media (min-width: 701px){
  .er-agents-report-table-wrap{
    overflow-x: auto !important;
  }

  .er-agents-report-table-wrap table.er-table{
    width: 100% !important;
    min-width: 1080px !important;
    table-layout: fixed !important;
  }

  .er-agents-report-table-wrap .er-table th,
  .er-agents-report-table-wrap .er-table td{
    padding: 6px 7px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(1),
  .er-agents-report-table-wrap .er-table td:nth-child(1){
    width: 92px !important;
    min-width: 92px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(2),
  .er-agents-report-table-wrap .er-table td:nth-child(2){
    width: 128px !important;
    min-width: 128px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(3),
  .er-agents-report-table-wrap .er-table td:nth-child(3){
    width: 56px !important;
    min-width: 56px !important;
    text-align: center !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(4),
  .er-agents-report-table-wrap .er-table td:nth-child(4),
  .er-agents-report-table-wrap .er-table th:nth-child(5),
  .er-agents-report-table-wrap .er-table td:nth-child(5){
    width: 108px !important;
    min-width: 108px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(6),
  .er-agents-report-table-wrap .er-table td:nth-child(6){
    width: 130px !important;
    min-width: 130px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(7),
  .er-agents-report-table-wrap .er-table td:nth-child(7){
    width: auto !important;
    min-width: 180px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(8),
  .er-agents-report-table-wrap .er-table td:nth-child(8),
  .er-agent-report-pay-th,
  .er-agent-report-pay-cell{
    width: 224px !important;
    min-width: 224px !important;
    max-width: 224px !important;
  }

  .er-agent-report-pay-cell{
    padding: 6px 7px !important;
  }

  .er-agents-report-table-wrap .er-agent-report-pay{
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px !important;
    gap: 5px !important;
    align-items: center !important;
  }

  .er-agent-report-pay__row{
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 68px !important;
    gap: 5px !important;
    align-items: center !important;
  }

  .er-agent-report-pay__input{
    width: 100% !important;
    min-width: 0 !important;
    height: 28px !important;
    padding: 4px 7px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  .er-agent-report-pay .er-btn-mini{
    width: 68px !important;
    min-width: 68px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 4px 5px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    line-height: 1 !important;
  }

  .er-agent-report-pay__full,
  .er-agent-report-pay__empty{
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 4px 5px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* 2.10.101 — balanced agents report columns: branches must not take all free width */
@media (min-width: 701px){
  .er-agents-report-table-wrap table.er-table{
    width: 100% !important;
    min-width: 1120px !important;
    table-layout: fixed !important;
  }

  .er-agents-report-table-wrap .er-table th,
  .er-agents-report-table-wrap .er-table td{
    overflow-wrap: anywhere !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(1),
  .er-agents-report-table-wrap .er-table td:nth-child(1){
    width: 8% !important;
    min-width: 78px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(2),
  .er-agents-report-table-wrap .er-table td:nth-child(2){
    width: 10% !important;
    min-width: 94px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(3),
  .er-agents-report-table-wrap .er-table td:nth-child(3){
    width: 5% !important;
    min-width: 48px !important;
    text-align: center !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(4),
  .er-agents-report-table-wrap .er-table td:nth-child(4),
  .er-agents-report-table-wrap .er-table th:nth-child(5),
  .er-agents-report-table-wrap .er-table td:nth-child(5){
    width: 9% !important;
    min-width: 88px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(6),
  .er-agents-report-table-wrap .er-table td:nth-child(6){
    width: 13% !important;
    min-width: 112px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(7),
  .er-agents-report-table-wrap .er-table td:nth-child(7){
    width: 20% !important;
    min-width: 180px !important;
    max-width: 320px !important;
    white-space: normal !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(8),
  .er-agents-report-table-wrap .er-table td:nth-child(8),
  .er-agent-report-pay-th,
  .er-agent-report-pay-cell{
    width: 26% !important;
    min-width: 248px !important;
    max-width: none !important;
  }

  .er-agent-report-pay-cell{
    padding: 6px 7px !important;
  }

  .er-agents-report-table-wrap .er-agent-report-pay{
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
  }

  .er-agent-report-pay__row{
    flex: 1 1 auto !important;
    min-width: 138px !important;
    display: grid !important;
    grid-template-columns: minmax(70px, 1fr) 68px !important;
    gap: 5px !important;
    align-items: center !important;
  }

  .er-agent-report-pay__input{
    width: 100% !important;
    min-width: 70px !important;
  }

  .er-agent-report-pay__full,
  .er-agent-report-pay__empty{
    flex: 0 0 76px !important;
  }
}

/* 2.10.103 — readable compact agent wallet details */
.er-agent-account-shell--readable{
  gap:10px;
}
.er-agent-account-shell--readable .er-agent-account-hero{
  padding:12px 14px;
  align-items:center;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.035);
}
.er-agent-account-shell--readable .er-agent-account-hero__eyebrow{
  margin-bottom:2px;
  font-size:10px;
}
.er-agent-account-shell--readable .er-agent-account-hero__title{
  font-size:18px;
}
.er-agent-account-shell--readable .er-agent-account-hero__subtitle{
  margin-top:3px;
  font-size:12px;
  line-height:1.3;
}
.er-agent-account-shell--readable .er-agent-account-hero__amount strong{
  font-size:20px;
}
.er-agent-account-shell--readable .er-agent-account-kpis{
  gap:8px;
  margin-top:0;
}
.er-agent-account-shell--readable .er-agent-account-kpi{
  padding:9px 11px;
  border-radius:12px;
}
.er-agent-account-shell--readable .er-agent-account-kpi__label{
  font-size:11px;
  margin-bottom:2px;
}
.er-agent-account-shell--readable .er-agent-account-kpi__value{
  font-size:16px;
}
.er-agent-account-shell--readable .er-agent-account-grid{
  grid-template-columns:minmax(260px,.82fr) minmax(360px,1.18fr);
  gap:10px;
  align-items:start;
}
.er-agent-account-shell--readable .er-agent-account-panel{
  padding:12px;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.03);
}
.er-agent-account-shell--readable .er-agent-account-panel--primary{
  grid-column:1;
  grid-row:1;
}
.er-agent-account-shell--readable .er-agent-account-panel--branches{
  grid-column:2;
  grid-row:1;
}
.er-agent-account-shell--readable .er-agent-account-panel--records{
  grid-column:1 / -1;
  grid-row:2;
}
.er-agent-account-shell--readable .er-agent-account-panel--history{
  padding:12px;
}
.er-agent-account-shell--readable .er-agent-account-panel__head{
  margin-bottom:8px;
}
.er-agent-account-panel__head--compact{
  align-items:center;
}
.er-agent-account-panel__head--compact h3{
  font-size:15px;
}
.er-agent-account-panel__head--compact p{
  margin-top:3px;
  font-size:11px;
  line-height:1.3;
}
.er-agent-account-panel__counter{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  min-width:72px;
  padding:7px 9px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
  font-size:11px;
  line-height:1.15;
}
.er-agent-account-panel__counter strong{
  color:#0f172a;
  font-size:18px;
  line-height:1;
}
.er-agent-account-shell--readable .er-agent-account-form{
  gap:8px;
}
.er-agent-account-shell--readable .er-agent-account-form input,
.er-agent-account-shell--readable .er-agent-account-form select{
  min-height:38px;
  border-radius:11px;
  padding:7px 10px;
}
.er-agent-account-shell--readable .er-agent-account-actions{
  margin-top:8px;
}
.er-agent-records-toolbar--compact{
  margin-bottom:8px;
  padding:8px 10px;
  border-radius:12px;
  gap:8px;
}
.er-agent-records-toolbar--compact .er-agent-records-toolbar__selectall{
  font-size:12px;
}
.er-agent-records-toolbar--compact .er-agent-records-toolbar__summary{
  gap:8px 12px;
  font-size:12px;
}
.er-agent-table-scroll{
  width:100%;
  overflow:auto;
  border:1px solid #dfe6f0;
  border-radius:12px;
  background:#fff;
}
.er-agent-table-scroll--records{
  max-height:430px;
}
.er-agent-table-scroll--history{
  max-height:420px;
}
.er-agent-table-scroll--branches{
  max-height:240px;
}
.er-agent-compact-table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  font-size:12px;
  line-height:1.25;
}
.er-agent-compact-table th,
.er-agent-compact-table td{
  padding:7px 8px;
  border-right:1px solid #e5ebf3;
  border-bottom:1px solid #e5ebf3;
  vertical-align:top;
  color:#0f172a;
}
.er-agent-compact-table th:last-child,
.er-agent-compact-table td:last-child{
  border-right:0;
}
.er-agent-compact-table tbody tr:last-child td{
  border-bottom:0;
}
.er-agent-compact-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#eef4fb;
  color:#172033;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.er-agent-compact-table tbody tr:nth-child(even) td{
  background:#fafcff;
}
.er-agent-compact-table tbody tr.is-disabled td{
  color:#64748b;
  background:#f8fafc;
}
.er-agent-table-main{
  font-weight:700;
  overflow-wrap:anywhere;
}
.er-agent-table-muted{
  margin-top:2px;
  color:#64748b;
  font-size:11px;
  overflow-wrap:anywhere;
}
.er-agent-table-note{
  max-height:34px;
  overflow:hidden;
}
.er-agent-col-check{
  width:42px;
  text-align:center;
}
.er-agent-col-money{
  width:112px;
  text-align:right;
  white-space:nowrap;
}
.er-agent-col-action{
  width:132px;
  text-align:right;
  white-space:nowrap;
}
.er-agent-records-table th:nth-child(2),
.er-agent-records-table td:nth-child(2){width:94px;}
.er-agent-records-table th:nth-child(3),
.er-agent-records-table td:nth-child(3){width:250px;}
.er-agent-records-table th:nth-child(4),
.er-agent-records-table td:nth-child(4){width:auto;}
.er-agent-branches-table{min-width:620px;}
.er-agent-transactions-table{min-width:860px;}
.er-agent-transactions-table th:nth-child(1),
.er-agent-transactions-table td:nth-child(1){width:145px;}
.er-agent-transactions-table th:nth-child(2),
.er-agent-transactions-table td:nth-child(2){width:180px;}
.er-agent-transactions-table th:nth-child(4),
.er-agent-transactions-table td:nth-child(4){width:auto;}
.er-agent-mini-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 7px;
  border-radius:999px;
  background:#eef2f7;
  border:1px solid #dbe3ee;
  color:#475569;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.er-agent-mini-badge--status{
  color:#1e40af;
  background:#eff6ff;
  border-color:#bfdbfe;
}
.er-agent-btn-xs{
  min-height:30px !important;
  padding:6px 9px !important;
  border-radius:9px !important;
  font-size:11px !important;
  white-space:nowrap;
}
.er-agent-account-shell--readable [data-er-action="agent_wallet_reverse"].er-agent-btn-xs{
  color:#b42318 !important;
  border-color:#f2c7cf !important;
  background:#fff7f8 !important;
}
@media (max-width: 1180px){
  .er-agent-account-shell--readable .er-agent-account-grid{
    grid-template-columns:1fr;
  }
  .er-agent-account-shell--readable .er-agent-account-panel--primary,
  .er-agent-account-shell--readable .er-agent-account-panel--branches,
  .er-agent-account-shell--readable .er-agent-account-panel--records{
    grid-column:1;
    grid-row:auto;
  }
}
@media (max-width: 760px){
  .er-agent-account-shell--readable .er-agent-account-hero{
    padding:12px;
  }
  .er-agent-account-panel__counter{
    align-items:flex-start;
  }
  .er-agent-records-toolbar--compact{
    align-items:flex-start;
  }
  .er-agent-records-toolbar--compact .er-btn{
    width:100%;
  }
  .er-agent-table-scroll--records,
  .er-agent-table-scroll--history,
  .er-agent-table-scroll--branches{
    max-height:360px;
  }
}

/* 2.10.105 — cleaner agent wallet: only current debt in the list */
.er-agent-wallet-page__kpis--single{
  grid-template-columns:minmax(260px,420px) !important;
  max-width:520px;
}
.er-agent-wallet-total-debt-card{
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%) !important;
  border-color:#dbe7ff !important;
}
.er-agent-wallet-total-debt-card .er-kpi-label{
  color:#1d4ed8 !important;
}
.er-agent-wallet-card--clean{
  padding:12px 14px !important;
  border-radius:16px !important;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__main{
  display:grid;
  grid-template-columns:minmax(140px,1fr) minmax(150px,190px) minmax(320px,auto);
  gap:14px;
  align-items:center;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__identity{
  min-width:0;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__title-row{
  margin-bottom:2px;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__title{
  font-size:16px;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__subtitle{
  font-size:12px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__debt{
  text-align:left;
  min-width:0;
  padding:8px 12px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(148,163,184,.22);
}
.er-agent-wallet-card--clean .er-agent-wallet-card__debt-label{
  font-size:11px;
  margin:0 0 2px;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__debt-value{
  font-size:20px;
  line-height:1.1;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__actions{
  margin-top:0 !important;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__quick{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__quick-label{
  width:auto;
  min-width:max-content;
  margin-right:2px;
  font-size:11px;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__quick-input{
  width:120px;
  min-width:120px;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__actions-right{
  display:flex;
  gap:6px;
  flex-wrap:nowrap;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__closed{
  padding:8px 10px;
  border-radius:999px;
  background:#ecfdf3;
  color:#067647;
  font-weight:800;
  font-size:12px;
}
.er-agent-wallet-card--clean .er-agent-wallet-card__hint{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed rgba(148,163,184,.32);
  font-size:11px;
}
.er-agent-account-shell--readable .er-agent-account-hero{
  align-items:center;
}
.er-agent-account-shell--readable .er-agent-account-hero__subtitle{
  max-width:780px;
}
@media (max-width: 1180px){
  .er-agent-wallet-card--clean .er-agent-wallet-card__main{
    grid-template-columns:minmax(140px,1fr) minmax(145px,180px);
  }
  .er-agent-wallet-card--clean .er-agent-wallet-card__actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}
@media (max-width: 760px){
  .er-agent-wallet-page__kpis--single{
    max-width:none;
    grid-template-columns:1fr !important;
  }
  .er-agent-wallet-card--clean .er-agent-wallet-card__main{
    grid-template-columns:1fr;
    gap:10px;
  }
  .er-agent-wallet-card--clean .er-agent-wallet-card__debt{
    text-align:left;
  }
  .er-agent-wallet-card--clean .er-agent-wallet-card__actions,
  .er-agent-wallet-card--clean .er-agent-wallet-card__quick,
  .er-agent-wallet-card--clean .er-agent-wallet-card__actions-right{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }
  .er-agent-wallet-card--clean .er-agent-wallet-card__quick-input{
    width:100%;
    min-width:0;
  }
}

/* Documents: structured requisites */
.er-docs-requisites-card{background:#f8fbff;border:1px solid rgba(37,99,235,.14);border-radius:16px;padding:14px;margin:10px 0 12px}
.er-docs-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.er-docs-subhead h5{margin:0 0 4px;font-size:15px;color:#0f172a;font-weight:900}
.er-docs-subhead p{margin:0;color:#64748b;font-size:12px}
.er-docs-grid--requisites{grid-template-columns:repeat(4,minmax(150px,1fr));margin-bottom:0}
.er-docs-grid--requisites .er-field-wide{grid-column:span 2}
.er-docs-executor-box{background:#fff;border:1px dashed rgba(37,99,235,.28);border-radius:14px;padding:12px;margin-bottom:12px;color:#1e293b}
.er-docs-executor-box pre{margin:0;white-space:pre-wrap;font-family:inherit;font-size:12px;line-height:1.45}
@media(max-width:1100px){.er-docs-grid--requisites{grid-template-columns:repeat(2,minmax(150px,1fr))}.er-docs-grid--requisites .er-field-wide{grid-column:1/-1}}
@media(max-width:700px){.er-docs-subhead{display:block}.er-docs-subhead .er-btn{margin-top:10px}.er-docs-grid--requisites{grid-template-columns:1fr}.er-docs-grid--requisites .er-field-wide{grid-column:1/-1}}

/* Documents and agent legal requisites: smart length validation */
.er-field-note[data-er-smart-note]{margin-top:5px;font-size:11px;line-height:1.25;color:#64748b}
.er-field-note[data-er-smart-note].is-ok{color:#047857}
.er-field-note[data-er-smart-note].is-error{color:#b91c1c;font-weight:700}
.er-input-invalid{border-color:#ef4444!important;box-shadow:0 0 0 2px rgba(239,68,68,.12)!important}

/* Договорные списки ТС агента */
.er-contracts-panel{border:1px solid rgba(59,130,246,.22);box-shadow:0 10px 28px rgba(15,23,42,.08)}
.er-contract-topline{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:12px}
.er-contract-topline .er-field-wide{grid-column:span 2}
.er-contract-statusline{margin:10px 0;padding:10px 12px;border-radius:12px;background:#f8fafc;color:#475569;font-size:13px}
.er-contract-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.er-contract-actions-wrap{margin:10px 0 12px}
.er-contract-counters{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.er-contract-counter{display:inline-flex;gap:6px;align-items:center;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;color:#475569}
.er-contract-counter b{font-size:14px;color:#0f172a}
.er-contract-vehicle-head{margin-top:14px}
.er-contract-vehicle-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:10px 0 12px;align-items:end}
.er-contract-vehicle-form input{width:100%;min-height:36px;border:1px solid #cbd5e1;border-radius:10px;padding:7px 9px;background:#fff}
.er-contract-table-wrap{max-height:460px;overflow:auto}
.er-contract-table td,.er-contract-table th{white-space:nowrap}
.er-contract-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700;background:#e2e8f0;color:#334155}
.er-contract-status-waiting{background:#dbeafe;color:#1d4ed8}
.er-contract-status-in_work{background:#fed7aa;color:#c2410c}
.er-contract-status-completed{background:#dcfce7;color:#15803d}
.er-contract-status-no_show{background:#fef3c7;color:#b45309}
.er-contract-status-cancelled{background:#fee2e2;color:#b91c1c}
.er-contract-status-replaced{background:#ede9fe;color:#6d28d9}
.er-contract-status-requested{background:#e0f2fe;color:#0369a1}
.er-btn-xs{padding:4px 7px;font-size:11px;line-height:1.2;border-radius:8px;margin:1px}
.er-file-button{position:relative;overflow:hidden;cursor:pointer}
.er-contract-import-preview tr.is-error td{background:#fff1f2;color:#9f1239}
@media (max-width:640px){.er-contract-topline .er-field-wide{grid-column:auto}.er-contract-actions{width:100%}.er-contract-actions .er-btn{flex:1 1 auto}.er-contract-table-wrap{overflow-x:auto}}

/* 2.10.117: compact optimized Documents page and clearer contract list creation */
.er-docs-quickstart{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#0b3a6e 0%,#2563eb 55%,#38bdf8 100%);border-radius:20px;padding:18px 20px;color:#fff;box-shadow:0 18px 38px rgba(15,23,42,.18)}
.er-docs-quickstart h4{margin:4px 0 6px;font-size:20px;line-height:1.2;color:#fff}
.er-docs-quickstart p{margin:0;color:rgba(255,255,255,.88);max-width:760px}
.er-docs-quickstart .er-docs-badge{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.28)}
.er-docs-quickstart-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:260px}
.er-docs-quickstart-actions .er-btn-primary{background:#fff!important;color:#0b3a6e!important;border-color:#fff!important}
.er-docs-quickstart-actions .er-btn-secondary{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important}
.er-docs-steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.er-docs-steps span{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.10);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;color:#fff}
.er-docs-steps b{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#fff;color:#0b3a6e;font-size:11px}
.er-docs-word-card{border-color:rgba(148,163,184,.24);box-shadow:0 8px 18px rgba(15,23,42,.04)}
.er-docs-details{padding:0;overflow:hidden}
.er-docs-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:14px;margin:-14px -14px 12px;background:#eef6ff;border-radius:14px;color:#0f172a}
.er-docs-details summary::-webkit-details-marker{display:none}
.er-docs-details summary span{display:flex;flex-direction:column;gap:3px}
.er-docs-details summary small{font-weight:500;color:#64748b}
.er-contracts-panel{position:relative;border:1px solid rgba(37,99,235,.24);background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.er-contract-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.er-contract-hero h4{margin:4px 0 6px;font-size:22px;color:#0f172a}
.er-contract-hero p{max-width:760px;margin:0;color:#64748b}
.er-contract-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.er-contract-guide{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:12px 0 16px}
.er-contract-guide div{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid rgba(148,163,184,.28);border-radius:14px;padding:10px;color:#334155;font-size:13px;font-weight:700}
.er-contract-guide b{display:inline-grid;place-items:center;flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:12px}
.er-contract-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.er-contract-form-card,.er-contract-doc-card,.er-contract-vehicles-card{background:#fff;border:1px solid rgba(148,163,184,.25);border-radius:16px;padding:14px;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.er-contract-mini-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.er-contract-mini-head h5,.er-contract-doc-card h5{margin:0;font-size:16px;color:#0f172a;font-weight:900}
.er-contract-mini-head span{color:#64748b;font-size:12px;text-align:right;max-width:420px}
.er-contract-doc-card p{margin:7px 0 12px;color:#64748b;font-size:12px;line-height:1.45}
.er-contract-doc-buttons{display:grid;gap:8px}
.er-contract-doc-buttons .er-btn{width:100%;justify-content:center}
.er-contract-vehicles-card{margin-top:14px}
.er-contract-vehicle-tools{display:flex;gap:10px;align-items:center;margin:8px 0 12px;flex-wrap:wrap}
.er-contract-vehicle-tools input,.er-contract-vehicle-tools select{height:38px;border:1px solid #cbd5e1;border-radius:10px;padding:7px 10px;background:#fff;min-width:220px}
.er-contract-vehicle-tools input{flex:1 1 320px}
.er-contract-table-wrap{border-radius:14px;border:1px solid rgba(148,163,184,.22)}
.er-contract-table thead th{position:sticky;top:0;background:#f8fafc;z-index:1}
@media(max-width:1100px){.er-docs-quickstart,.er-contract-hero{align-items:stretch;flex-direction:column}.er-docs-quickstart-actions,.er-contract-hero-actions{justify-content:flex-start}.er-contract-layout{grid-template-columns:1fr}.er-contract-guide{grid-template-columns:repeat(2,minmax(150px,1fr))}.er-contract-mini-head{flex-direction:column}.er-contract-mini-head span{text-align:left}}
@media(max-width:700px){.er-docs-quickstart{padding:15px}.er-docs-quickstart-actions .er-btn,.er-contract-hero-actions .er-btn{width:100%;justify-content:center}.er-contract-guide{grid-template-columns:1fr}.er-docs-details summary{align-items:flex-start;flex-direction:column}.er-contract-vehicle-tools input,.er-contract-vehicle-tools select{width:100%;min-width:0}.er-contract-table{min-width:1040px}}


/* 2.10.118: professional Documents workspace */
.er-docs-pro{--er-docs-bg:#f4f7fb;--er-docs-card:#ffffff;--er-docs-border:#dbe4f0;--er-docs-text:#0f172a;--er-docs-muted:#64748b;--er-docs-primary:#1d4ed8;--er-docs-primary-dark:#173f9e;--er-docs-soft:#eef5ff;color:var(--er-docs-text)}
.er-docs-pro *{box-sizing:border-box}
.er-docs-pro-page{display:grid;gap:16px;background:var(--er-docs-bg);border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 18px 45px rgba(15,23,42,.07)}
.er-docs-pro-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#10223f 0%,#1e3a8a 58%,#2563eb 100%);border-radius:20px;padding:22px;color:#fff;box-shadow:0 16px 36px rgba(30,58,138,.24)}
.er-docs-pro-hero h4{margin:4px 0 8px;color:#fff;font-size:26px;line-height:1.15;font-weight:900;letter-spacing:-.02em}
.er-docs-pro-hero p{margin:0;color:rgba(255,255,255,.84);max-width:760px;font-size:14px;line-height:1.45}
.er-docs-pro-eyebrow{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);border-radius:999px;padding:5px 10px;color:#fff;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.er-docs-pro-hero-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:285px}
.er-docs-pro-hero-actions .er-btn-primary{background:#fff!important;color:#1e3a8a!important;border-color:#fff!important;box-shadow:0 8px 18px rgba(15,23,42,.18)}
.er-docs-pro-hero-actions .er-btn-secondary{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.30)!important}
.er-docs-pro-toolbar{display:grid;grid-template-columns:minmax(280px,2fr) repeat(5,minmax(135px,1fr));gap:12px;align-items:end;background:var(--er-docs-card);border:1px solid var(--er-docs-border);border-radius:18px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.er-docs-pro-toolbar .er-field{margin:0}
.er-docs-pro-toolbar .er-field label,.er-contract-section-card .er-field label,.er-contract-sidebar .er-field label{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:900;margin-bottom:6px}
.er-docs-pro-toolbar input,.er-docs-pro-toolbar select,.er-contract-section-card input,.er-contract-section-card select,.er-contract-section-card textarea,.er-contract-sidebar select{width:100%;min-height:40px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:8px 11px;color:#0f172a;box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.er-docs-pro-toolbar input:focus,.er-docs-pro-toolbar select:focus,.er-contract-section-card input:focus,.er-contract-section-card select:focus,.er-contract-section-card textarea:focus,.er-contract-sidebar select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.13)}
.er-docs-agent-field{min-width:0}
.er-docs-pro-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.er-docs-pro-flow div{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--er-docs-border);border-radius:14px;padding:10px 12px;color:#334155;font-size:13px;font-weight:900;min-width:0}
.er-docs-pro-flow b{display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#e0ecff;color:#1d4ed8;font-size:12px}
.er-docs-pro-flow .is-active{border-color:#bfdbfe;background:#f8fbff}
.er-docs-pro-details{background:#fff;border:1px solid var(--er-docs-border);border-radius:18px;padding:0;overflow:hidden;box-shadow:0 8px 18px rgba(15,23,42,.035)}
.er-docs-pro-details summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;list-style:none;background:#fff;color:#0f172a}
.er-docs-pro-details summary::-webkit-details-marker{display:none}
.er-docs-pro-details summary span{display:flex;flex-direction:column;gap:3px}
.er-docs-pro-details summary b{font-size:16px}
.er-docs-pro-details summary small{font-weight:500;color:#64748b}
.er-docs-pro-details[open] summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}
.er-docs-pro-detail-actions,.er-docs-pro-legacy-actions{display:flex;gap:10px;flex-wrap:wrap;padding:14px 18px 0}
.er-docs-pro-details .er-docs-grid,.er-docs-pro-details .er-docs-executor-box,.er-docs-pro-records-head,.er-docs-pro-details .er-docs-actions-grid,.er-docs-pro-details .er-table-wrap{margin-left:18px;margin-right:18px}
.er-docs-pro-details .er-docs-grid:last-child,.er-docs-pro-details .er-table-wrap:last-child{margin-bottom:18px}
.er-docs-pro-requisites-main{padding-top:14px}
.er-docs-pro-legacy .er-docs-actions-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px;margin-bottom:14px}
.er-docs-pro-records-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:8px;margin-bottom:10px}
.er-docs-pro-records-head h4{margin:0;font-size:16px;color:#0f172a}
.er-docs-pro-records-head p{margin:0;color:#64748b;font-size:13px}

.er-contracts-panel-pro{padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.er-contract-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}
.er-contract-sidebar{position:sticky;top:12px;display:grid;gap:12px;background:#fff;border:1px solid var(--er-docs-border);border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.er-contract-sidebar-head h4{margin:8px 0 5px;font-size:22px;line-height:1.15;color:#0f172a;font-weight:900;letter-spacing:-.02em}
.er-contract-sidebar-head p{margin:0;color:#64748b;font-size:13px;line-height:1.4}
.er-contract-sidebar-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.er-contract-sidebar-actions .er-btn,.er-contract-doc-buttons .er-btn{width:100%;justify-content:center}
.er-contract-statusline{margin:0!important;border:1px solid #dbeafe;background:#eff6ff!important;color:#1e3a8a!important;border-radius:13px!important;padding:10px 12px!important;font-size:13px!important;line-height:1.35}
.er-contract-counters{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin:0!important}
.er-contract-counter{display:flex!important;justify-content:space-between;gap:8px;width:100%;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important;padding:9px 10px!important;font-size:12px!important;color:#64748b!important}
.er-contract-counter b{font-size:16px!important;color:#0f172a!important}
.er-contract-doc-card-pro{border:1px solid #e2e8f0!important;border-radius:16px!important;background:#f8fafc!important;padding:13px!important;box-shadow:none!important}
.er-contract-doc-card-pro h5{margin:0 0 6px!important;font-size:15px!important;color:#0f172a!important;font-weight:900!important}
.er-contract-doc-card-pro p{margin:0 0 10px!important;color:#64748b!important;font-size:12px!important;line-height:1.4!important}
.er-contract-main{display:grid;gap:16px;min-width:0}
.er-contract-section-card{background:#fff!important;border:1px solid var(--er-docs-border)!important;border-radius:18px!important;padding:16px!important;box-shadow:0 10px 24px rgba(15,23,42,.045)!important;margin:0!important;min-width:0}
.er-contract-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.er-contract-section-head h5{margin:0 0 4px;font-size:18px;color:#0f172a;font-weight:900;letter-spacing:-.01em}
.er-contract-section-head p{margin:0;color:#64748b;font-size:13px;line-height:1.4}
.er-contract-actions{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important}
.er-contract-topline-pro{display:grid!important;grid-template-columns:repeat(4,minmax(140px,1fr))!important;gap:12px!important;margin:0!important}
.er-contract-topline-pro .er-field-wide{grid-column:span 2!important}
.er-contract-vehicle-form-pro{display:grid!important;grid-template-columns:repeat(6,minmax(110px,1fr))!important;gap:12px!important;align-items:end!important;margin:0 0 14px!important}
.er-contract-vehicle-form-pro .er-field{margin:0!important;min-width:0}
.er-contract-vehicle-form-pro .er-field-wide{grid-column:span 2!important}
.er-contract-vehicle-form-actions{display:flex;gap:8px;align-items:center;grid-column:span 2}
.er-contract-vehicle-form-actions .er-btn{flex:1 1 auto;justify-content:center}
.er-contract-vehicle-tools-pro{display:grid!important;grid-template-columns:minmax(240px,1fr) 220px!important;gap:10px!important;align-items:center!important;margin:0 0 12px!important}
.er-contract-vehicle-tools-pro input,.er-contract-vehicle-tools-pro select{width:100%!important;min-width:0!important;height:40px!important;border:1px solid #cbd5e1!important;border-radius:12px!important;background:#fff!important;padding:8px 11px!important}
.er-contract-table-wrap{max-height:520px!important;overflow:auto!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important}
.er-contract-table{min-width:1120px;border-collapse:separate;border-spacing:0}
.er-contract-table th{position:sticky;top:0;z-index:2;background:#f8fafc!important;color:#475569!important;font-size:11px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;border-bottom:1px solid #e2e8f0!important}
.er-contract-table td{vertical-align:middle!important;white-space:nowrap!important;background:#fff;border-bottom:1px solid #f1f5f9!important}
.er-contract-table tbody tr:hover td{background:#f8fbff!important}
.er-contract-status{font-size:11px!important;padding:5px 8px!important;border-radius:999px!important;white-space:nowrap!important}
.er-btn-xs{padding:5px 8px!important;font-size:11px!important;border-radius:9px!important;margin:1px!important}
.er-contract-import-preview{margin-top:12px}

@media(max-width:1220px){
  .er-docs-pro-toolbar{grid-template-columns:repeat(3,minmax(160px,1fr))}
  .er-docs-agent-field{grid-column:1/-1}
  .er-contract-workspace{grid-template-columns:1fr}
  .er-contract-sidebar{position:relative;top:auto;grid-template-columns:1.2fr 1fr;align-items:start}
  .er-contract-sidebar-head,.er-contract-doc-card-pro{grid-column:auto}
  .er-contract-counters{grid-column:1/-1;grid-template-columns:repeat(4,minmax(120px,1fr))!important}
}
@media(max-width:860px){
  .er-docs-pro-page{padding:12px;border-radius:18px}
  .er-docs-pro-hero{flex-direction:column;padding:18px;border-radius:18px}
  .er-docs-pro-hero-actions{width:100%;min-width:0;justify-content:flex-start}
  .er-docs-pro-hero-actions .er-btn{width:100%;justify-content:center}
  .er-docs-pro-toolbar{grid-template-columns:1fr}
  .er-docs-pro-flow{grid-template-columns:1fr 1fr}
  .er-contract-sidebar{grid-template-columns:1fr}
  .er-contract-counters{grid-template-columns:1fr 1fr!important}
  .er-contract-section-head{flex-direction:column}
  .er-contract-actions{justify-content:flex-start!important;width:100%}
  .er-contract-actions .er-btn{flex:1 1 auto;justify-content:center}
  .er-contract-topline-pro{grid-template-columns:1fr!important}
  .er-contract-topline-pro .er-field-wide{grid-column:auto!important}
  .er-contract-vehicle-form-pro{grid-template-columns:1fr!important}
  .er-contract-vehicle-form-pro .er-field-wide,.er-contract-vehicle-form-actions{grid-column:auto!important}
  .er-contract-vehicle-tools-pro{grid-template-columns:1fr!important}
  .er-docs-pro-legacy .er-docs-actions-grid--compact{grid-template-columns:1fr}
}
@media(max-width:560px){
  .er-docs-pro-flow{grid-template-columns:1fr}
  .er-contract-counters{grid-template-columns:1fr!important}
  .er-docs-pro-details .er-docs-grid,.er-docs-pro-details .er-docs-executor-box,.er-docs-pro-records-head,.er-docs-pro-details .er-docs-actions-grid,.er-docs-pro-details .er-table-wrap{margin-left:12px;margin-right:12px}
}


.er-cash-modern__actions .er-btn-primary{
  box-shadow:0 8px 20px rgba(37,99,235,.18);
}
.er-cash-modern-history + .er-cash-modern-history{
  margin-top:8px;
}


/* 2.10.121 — cash history export period modal */
.er-cash-history-export-modal{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.er-cash-history-export-modal__hero{
  padding:16px;
  border:1px solid rgba(37,99,235,.18);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(14,165,233,.08));
}
.er-cash-history-export-modal__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.er-cash-history-export-modal__hero h4{
  margin:10px 0 4px;
  font-size:18px;
  line-height:1.2;
  color:#0f172a;
}
.er-cash-history-export-modal__hero p{
  margin:0;
  color:#475569;
  font-size:13px;
}
.er-cash-history-export-modal__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.er-cash-history-export-modal__grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px;
  border:1px solid rgba(148,163,184,.35);
  border-radius:16px;
  background:#fff;
}
.er-cash-history-export-modal__grid span{
  font-size:11px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.er-cash-history-export-modal__grid input{
  height:38px;
  border-radius:12px;
  font-weight:800;
}
.er-cash-history-export-modal__quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.er-cash-history-export-modal__note{
  padding:10px 12px;
  border-radius:14px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}
@media (max-width: 640px){
  .er-cash-history-export-modal__grid{ grid-template-columns:1fr; }
}


/* v2.10.126: компактная касса филиала в шапке кабинета сотрудника */
.er-employee-branch-cash{
  min-width: 245px;
  max-width: 305px;
  min-height: 68px;
  padding: 8px 12px 9px;
  border-radius: 16px;
  border: 1px solid rgba(22,163,74,.30);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.90) 0, rgba(255,255,255,0) 34%),
    linear-gradient(135deg, #e6ffef 0%, #bbf7d0 48%, #99f6b8 100%);
  box-shadow: 0 8px 22px rgba(22,163,74,.16);
  color: #052e16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.er-employee-branch-cash::after{
  content:"";
  position:absolute;
  right:-22px;
  top:-28px;
  width:88px;
  height:88px;
  border-radius:999px;
  background:rgba(255,255,255,.28);
  pointer-events:none;
}
.er-employee-branch-cash > *{ position:relative; z-index:1; }
.er-employee-branch-cash__top{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(5,46,22,.74);
}
.er-employee-branch-cash__icon{
  width:21px;
  height:21px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.72);
  color:#047857;
  box-shadow: inset 0 0 0 1px rgba(4,120,87,.13);
  font-size:13px;
  font-weight:950;
}
.er-employee-branch-cash__amount{
  margin-top:3px;
  font-size:22px;
  line-height:1;
  font-weight:1000;
  color:#022c22;
  white-space:nowrap;
}
.er-employee-branch-cash__branch{
  margin-top:4px;
  font-size:11px;
  font-weight:900;
  color:rgba(5,46,22,.80);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.er-employee-branch-cash__meta{
  margin-top:3px;
  font-size:9px;
  font-weight:850;
  color:rgba(5,46,22,.66);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.er-employee-branch-cash__sub{
  margin-top:2px;
  font-size:9px;
  font-weight:800;
  color:rgba(5,46,22,.54);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width: 1180px){
  .er-employee-branch-cash{ min-width:220px; max-width:270px; min-height:62px; padding:7px 10px; }
  .er-employee-branch-cash__amount{ font-size:20px; }
  .er-employee-branch-cash__meta{ display:none; }
}
@media (max-width: 980px){
  .er-employee-branch-cash{ display:none; }
}


/* v2.10.127: professional employee header — compact cash/news/logout cards */
.er-app[data-er-role="employee"] .er-topbar{
  min-height: 104px;
  padding: 18px 22px;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(620px 180px at 12% -40%, rgba(37,99,235,.08), transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92)) !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 14px 36px rgba(15,23,42,.06);
}
.er-app[data-er-role="employee"] .er-topbar-left{
  flex: 1 1 auto;
  min-width: 240px;
}
.er-app[data-er-role="employee"] .er-topbar-h{
  font-size: 28px;
  letter-spacing: -.03em;
}
.er-app[data-er-role="employee"] .er-topbar-sub{
  margin-top: 6px;
  font-size: 14px;
  color: rgba(15,23,42,.56) !important;
}
.er-app[data-er-role="employee"] .er-topbar-actions{
  flex: 0 1 auto;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
}
.er-app[data-er-role="employee"] .er-top-news,
.er-app[data-er-role="employee"] .er-top-leader{
  align-items: center !important;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash,
.er-app[data-er-role="employee"] .er-top-news-card{
  height: 76px !important;
  min-height: 76px !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.08) !important;
  transform: none !important;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash{
  min-width: 240px;
  max-width: 260px;
  padding: 11px 14px !important;
  border: 1px solid rgba(16,185,129,.26) !important;
  background:
    linear-gradient(135deg, rgba(236,253,245,.98) 0%, rgba(209,250,229,.96) 100%) !important;
  color: #064e3b;
  overflow: hidden;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash::after{
  display: none !important;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash__top{
  gap: 7px;
  font-size: 10px;
  color: rgba(6,78,59,.72);
}
.er-app[data-er-role="employee"] .er-employee-branch-cash__icon{
  width: 22px;
  height: 22px;
  border-radius: 9px;
  font-size: 13px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15,23,42,.04), inset 0 0 0 1px rgba(16,185,129,.16);
}
.er-app[data-er-role="employee"] .er-employee-branch-cash__amount{
  margin-top: 5px;
  font-size: 21px;
  letter-spacing: -.03em;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash__branch{
  margin-top: 4px;
  font-size: 11px;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash__meta{
  display: none !important;
}
.er-app[data-er-role="employee"] .er-employee-branch-cash__sub{
  display: none !important;
}
.er-app[data-er-role="employee"] .er-top-news-card{
  min-width: 260px !important;
  max-width: 330px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  justify-content: center !important;
  position: relative;
}
.er-app[data-er-role="employee"] .er-top-news-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--er-news-accent, #f59e0b);
}
.er-app[data-er-role="employee"] .er-top-news-card.is-empty::before{
  background: #cbd5e1;
}
.er-app[data-er-role="employee"] .er-top-news-message{
  margin: 0 0 0 2px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  color: rgba(15,23,42,.72) !important;
  -webkit-line-clamp: 2 !important;
}
.er-app[data-er-role="employee"] .er-top-news-card.is-empty .er-top-news-message{
  color: rgba(15,23,42,.56) !important;
}
.er-app[data-er-role="employee"] .er-topbar-actions > .er-btn.er-btn-ghost{
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.06) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}
.er-app[data-er-role="employee"] .er-topbar-actions > .er-btn.er-btn-ghost:hover{
  border-color: rgba(220,38,38,.20) !important;
  color: #b91c1c !important;
  background: #fff7f7 !important;
}
@media (max-width: 1360px){
  .er-app[data-er-role="employee"] .er-topbar{ padding: 16px 18px; }
  .er-app[data-er-role="employee"] .er-employee-branch-cash{ min-width: 220px; max-width: 240px; }
  .er-app[data-er-role="employee"] .er-top-news-card{ min-width: 230px !important; max-width: 280px !important; }
  .er-app[data-er-role="employee"] .er-topbar-h{ font-size: 25px; }
}
@media (max-width: 1120px){
  .er-app[data-er-role="employee"] .er-topbar{ flex-wrap: wrap; }
  .er-app[data-er-role="employee"] .er-topbar-actions{ width: 100%; justify-content: flex-start; }
  .er-app[data-er-role="employee"] .er-employee-branch-cash,
  .er-app[data-er-role="employee"] .er-top-news-card{ height: 70px !important; min-height: 70px !important; }
}
@media (max-width: 980px){
  .er-app[data-er-role="employee"] .er-employee-branch-cash{ display: flex !important; min-width: 100%; max-width: 100%; }
  .er-app[data-er-role="employee"] .er-top-news{ display: none !important; }
  .er-app[data-er-role="employee"] .er-topbar-actions > .er-btn.er-btn-ghost{ height: 38px !important; min-height: 38px !important; }
}


/* v2.10.128: highlighted treasury fee button + employee operation history in template modal */
.er-template-top-panel__btn-helper{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;opacity:.96}
.er-template-top-panel__btn-helper::before{content:"●";font-size:10px;opacity:.9}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn{
  background:linear-gradient(135deg,#0f766e 0%,#14b8a6 58%,#2dd4bf 100%)!important;
  border:2px solid rgba(94,234,212,.75)!important;
  box-shadow:0 14px 30px rgba(15,118,110,.28)!important;
  position:relative;
  overflow:hidden;
}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn::after{
  content:"";position:absolute;inset:-30% auto auto -10%;width:120px;height:160%;background:linear-gradient(90deg,rgba(255,255,255,.0),rgba(255,255,255,.22),rgba(255,255,255,.0));transform:rotate(18deg);
}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-main{gap:4px}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-badge{background:rgba(255,255,255,.26)!important;font-size:12px!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-title{font-size:28px!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-hint{display:none!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-price{font-size:22px!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-cta{background:#ffffff!important;color:#0f766e!important;min-width:140px!important;padding:10px 18px!important;font-size:15px!important;box-shadow:0 8px 18px rgba(255,255,255,.25)}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__conditions{border-color:#99f6e4!important;background:linear-gradient(180deg,#f0fdfa 0%,#ffffff 100%)!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__conditions-row{font-size:14px}

.er-template-modal-history{margin-top:12px;border:1px solid #d7e4ff;border-radius:16px;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);padding:14px 16px}
.er-template-modal-history__head{font-size:15px;font-weight:800;color:#193a77;margin-bottom:2px}
.er-template-modal-history__sub{font-size:12px;color:#64748b;margin-bottom:10px}
.er-template-modal-history__body{display:grid;gap:8px}
.er-template-modal-history__body.is-loading,.er-template-modal-history__empty{font-size:13px;color:#64748b}
.er-template-modal-history__row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.er-template-modal-history__main{min-width:0;display:flex;flex-direction:column;gap:3px}
.er-template-modal-history__title{font-size:14px;font-weight:700;color:#0f172a}
.er-template-modal-history__meta{font-size:12px;color:#64748b}
.er-template-modal-history__note{font-size:12px;color:#475569;line-height:1.35}
.er-template-modal-history__amount{font-size:14px;font-weight:800;color:#0f766e;white-space:nowrap}
@media(max-width:900px){
  .er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-title{font-size:22px!important}
  .er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-cta{min-width:120px!important;font-size:14px!important}
  .er-template-modal-history__row{flex-direction:column;align-items:flex-start}
}


/* v2.10.129: simple commission button and manual operations history */
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-title{font-size:22px!important;max-width:260px!important;line-height:1.12!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-helper{display:none!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-cta{min-width:96px!important;padding:9px 14px!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-price{display:none!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn{min-height:88px!important}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__conditions-title{font-size:14px!important}
@media(max-width:900px){.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-title{font-size:19px!important;max-width:none!important}}


/* v2.10.131: simple fee button and fixed modal history source */
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn{
  min-height:76px!important;
  padding:16px 18px!important;
  align-items:center!important;
}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-title{
  font-size:19px!important;
  max-width:none!important;
  line-height:1.18!important;
  word-break:normal!important;
}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-side{
  flex:0 0 auto!important;
}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-badge,
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-price,
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-helper{
  display:none!important;
}
.er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-cta{
  min-width:92px!important;
  padding:9px 14px!important;
  font-size:14px!important;
}
@media(max-width:900px){
  .er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn{min-height:70px!important;gap:10px!important}
  .er-template-top-panel__item.is-fee-focus .er-template-top-panel__btn-title{font-size:17px!important}
}

/* v2.10.133 — документы: светлая главная, модальные сценарии по юрлицам */
.er-docs-home-page{display:flex;flex-direction:column;gap:18px;}
.er-docs-home-hero{border:1px solid rgba(59,130,246,.18);border-radius:24px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 46%,#eef7ff 100%);box-shadow:0 18px 48px rgba(15,23,42,.08);padding:24px 26px;color:#0f172a;}
.er-docs-home-hero h4,.er-docs-modal-head h4{margin:4px 0 8px;font-size:26px;line-height:1.15;color:#0f172a;}
.er-docs-home-hero p,.er-docs-modal-head p{margin:0;color:#64748b;font-weight:650;max-width:880px;}
.er-docs-home-actions{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:14px;}
.er-docs-action-card-button{appearance:none;text-align:left;cursor:pointer;width:100%;display:flex;gap:12px;align-items:flex-start;border:1px solid rgba(148,163,184,.28);background:#fff;color:#0f172a;border-radius:20px;padding:18px;min-height:142px;box-shadow:0 14px 36px rgba(15,23,42,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.er-docs-action-card-button:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(37,99,235,.14);border-color:rgba(37,99,235,.38);}
.er-docs-action-card-button h4{margin:0 0 7px;font-size:15px;color:#0f172a;}
.er-docs-action-card-button p{margin:0;color:#64748b;font-size:12px;line-height:1.45;font-weight:650;}
.er-docs-action-card-muted{background:#f8fafc;}
.er-docs-action-icon{flex:0 0 38px;height:38px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#1d4ed8;font-weight:900;font-size:13px;text-transform:uppercase;box-shadow:inset 0 0 0 1px rgba(37,99,235,.16);}
.er-docs-home-note{border:1px dashed rgba(37,99,235,.28);border-radius:18px;background:#eff6ff;color:#1e3a8a;padding:14px 16px;font-size:13px;line-height:1.45;}
[data-er-modal="actions"].er-modal-docs-workflow .er-modal{width:min(1320px,calc(100vw - 42px));max-width:min(1320px,calc(100vw - 42px));}
[data-er-modal="actions"].er-modal-docs-workflow .er-modal-body{max-height:calc(100vh - 150px);overflow:auto;padding:16px;background:#f8fafc;}
[data-er-modal="actions"].er-modal-record-contract .er-modal{width:min(1120px,calc(100vw - 42px));max-width:min(1120px,calc(100vw - 42px));}
.er-docs-modal-workflow{display:flex;flex-direction:column;gap:14px;}
.er-docs-modal-head{border:1px solid rgba(148,163,184,.25);border-radius:20px;background:#fff;padding:18px 20px;box-shadow:0 10px 28px rgba(15,23,42,.05);}
.er-docs-modal-toolbar{display:grid;grid-template-columns:minmax(260px,1.35fr) repeat(5,minmax(135px,.8fr));gap:10px;align-items:end;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:#fff;padding:14px;}
.er-docs-modal-docbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(34,197,94,.25);border-radius:16px;background:#f0fdf4;color:#14532d;padding:12px 14px;font-weight:800;}
.er-docs-modal-requisites{background:#fff;border-color:rgba(148,163,184,.22);}
.er-docs-modal-actions{display:flex;gap:10px;flex-wrap:wrap;}
.er-contract-table tr.is-contract-completed td{background:#f0fdf4!important;}
.er-contract-table tr.is-contract-in-work td{background:#fff7ed!important;}
.er-contract-doc-check{display:flex;align-items:center;justify-content:center;}
.er-contract-doc-check input{width:18px;height:18px;accent-color:#2563eb;}
.er-record-contract-modal{display:flex;flex-direction:column;gap:12px;}
.er-record-contract-toolbar{grid-template-columns:minmax(280px,1fr) minmax(220px,1fr);}
.er-record-contract-selected{margin-top:8px;border:1px solid rgba(34,197,94,.25);background:#f0fdf4;color:#14532d;border-radius:12px;padding:9px 11px;font-size:12px;font-weight:800;}
@media (max-width:1200px){.er-docs-home-actions{grid-template-columns:repeat(2,minmax(220px,1fr));}.er-docs-modal-toolbar{grid-template-columns:repeat(2,minmax(180px,1fr));}}
@media (max-width:700px){.er-docs-home-actions,.er-docs-modal-toolbar,.er-record-contract-toolbar{grid-template-columns:1fr;}[data-er-modal="actions"].er-modal-docs-workflow .er-modal,[data-er-modal="actions"].er-modal-record-contract .er-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);}}

/* v2.10.134 — документы: более простой рабочий стол без тесного сайдбара и тяжёлых штор */
.er-docs-home-modern .er-docs-home-page{
  gap:16px!important;
  padding:4px 0 0!important;
}
.er-docs-home-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  padding:20px 22px;
  box-shadow:0 12px 32px rgba(15,23,42,.055);
}
.er-docs-home-topline h4{
  margin:3px 0 6px;
  font-size:26px;
  line-height:1.12;
  color:#0f172a;
  letter-spacing:-.02em;
}
.er-docs-home-topline p{
  margin:0;
  color:#64748b;
  font-size:14px;
  font-weight:650;
}
.er-docs-main-create{
  min-height:44px;
  padding:11px 18px!important;
  border-radius:14px!important;
  white-space:nowrap;
}
.er-docs-home-actions-modern{
  display:grid;
  grid-template-columns:repeat(3,minmax(240px,1fr));
  gap:14px;
}
.er-docs-big-action{
  appearance:none;
  cursor:pointer;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:#fff;
  color:#0f172a;
  text-align:left;
  min-height:104px;
  padding:17px 18px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 10px 26px rgba(15,23,42,.055);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.er-docs-big-action:hover{
  transform:translateY(-2px);
  border-color:rgba(37,99,235,.34);
  box-shadow:0 16px 34px rgba(37,99,235,.12);
  background:#fbfdff;
}
.er-docs-big-action.is-primary{
  background:linear-gradient(135deg,#0f766e 0%,#2563eb 100%);
  color:#fff;
  border-color:transparent;
  box-shadow:0 16px 38px rgba(37,99,235,.20);
}
.er-docs-big-action.is-muted{background:#f8fafc;}
.er-docs-big-action-icon{
  flex:0 0 46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:900;
  font-size:14px;
  text-transform:uppercase;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.16);
}
.er-docs-big-action.is-primary .er-docs-big-action-icon{
  background:rgba(255,255,255,.18);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);
}
.er-docs-big-action b{
  display:block;
  font-size:17px;
  line-height:1.18;
  margin-bottom:5px;
  color:inherit;
}
.er-docs-big-action small{
  display:block;
  color:#64748b;
  font-size:12px;
  line-height:1.38;
  font-weight:650;
}
.er-docs-big-action.is-primary small{color:rgba(255,255,255,.84);}
.er-docs-home-explain{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:12px;
}
.er-docs-home-explain div{
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px dashed rgba(37,99,235,.24);
  border-radius:18px;
  background:#eff6ff;
  color:#1e3a8a;
  padding:13px 14px;
  font-size:13px;
  line-height:1.4;
  font-weight:700;
}
.er-docs-home-explain b{
  flex:0 0 24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-size:12px;
}

[data-er-modal="actions"].er-modal-docs-workflow .er-modal{
  width:min(1500px,calc(100vw - 24px))!important;
  max-width:min(1500px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 24px)!important;
  border-radius:22px!important;
}
[data-er-modal="actions"].er-modal-docs-workflow .er-modal-body{
  max-height:calc(100vh - 104px)!important;
  overflow:auto!important;
  padding:16px!important;
  background:#f1f5f9!important;
}
.er-docs-modal-workflow-modern{gap:14px!important;}
.er-docs-modal-head-modern{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:16px 18px!important;
  border-radius:18px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
}
.er-docs-modal-head-modern h4{font-size:22px!important;margin:3px 0 4px!important;}
.er-docs-modal-head-modern p{font-size:13px!important;line-height:1.35!important;}
.er-docs-modal-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}

.er-contracts-modern{
  display:grid!important;
  gap:14px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.er-contract-control-card,
.er-contract-period-card,
.er-contract-vehicles-card{
  background:#fff!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:20px!important;
  padding:16px!important;
  box-shadow:0 10px 26px rgba(15,23,42,.05)!important;
}
.er-contract-control-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.er-contract-control-head h4{
  margin:6px 0 4px;
  font-size:22px;
  line-height:1.15;
  color:#0f172a;
  letter-spacing:-.02em;
}
.er-contract-control-head p{margin:0;color:#64748b;font-size:13px;line-height:1.38;font-weight:650;}
.er-contract-control-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.er-contract-control-grid{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) minmax(240px,1.25fr) repeat(5,minmax(130px,.75fr));
  gap:10px;
  align-items:end;
}
.er-contract-control-grid .er-field{margin:0!important;min-width:0;}
.er-contract-control-grid label,
.er-contract-add-card label,
.er-contract-topline-modern label{
  display:block;
  margin:0 0 5px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#64748b;
  font-weight:900;
}
.er-contract-control-grid input,
.er-contract-control-grid select,
.er-contract-add-card input,
.er-contract-topline-modern input,
.er-docs-requisites-modern input,
.er-docs-requisites-modern select,
.er-docs-requisites-modern textarea{
  width:100%;
  min-height:40px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  padding:8px 10px;
  color:#0f172a;
}
.er-contract-control-grid input:focus,
.er-contract-control-grid select:focus,
.er-contract-add-card input:focus,
.er-contract-topline-modern input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}
.er-contract-status-row{
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(520px,1.1fr);
  gap:12px;
  align-items:stretch;
  margin-top:12px;
}
.er-contract-status-row .er-contract-statusline{
  min-height:48px;
  display:flex;
  align-items:center;
}
.er-contract-status-row .er-contract-counters{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(74px,1fr))!important;
  gap:7px!important;
  margin:0!important;
}
.er-contract-status-row .er-contract-counter{
  min-height:48px;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start!important;
  justify-content:center!important;
  border-radius:13px!important;
  padding:7px 9px!important;
  gap:1px!important;
}
.er-contract-status-row .er-contract-counter b{font-size:15px!important;}
.er-contract-section-head{margin-bottom:12px!important;}
.er-contract-status-actions .er-btn{min-width:104px;}
.er-contract-topline-modern{
  grid-template-columns:repeat(4,minmax(150px,1fr)) minmax(260px,1.4fr)!important;
  gap:10px!important;
}
.er-contract-topline-modern .er-field-wide{grid-column:auto!important;}
.er-contract-add-card{
  display:grid;
  grid-template-columns:130px minmax(160px,.9fr) minmax(240px,1.4fr) 110px 100px 120px 190px;
  gap:10px;
  align-items:end;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px;
  margin-bottom:12px;
}
.er-contract-add-card .er-field{margin:0!important;min-width:0;}
.er-contract-add-card .er-field-wide{grid-column:auto!important;}
.er-contract-add-card .er-contract-vehicle-form-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  grid-column:auto!important;
}
.er-contract-vehicle-tools-modern{
  grid-template-columns:minmax(320px,1fr) 220px!important;
  margin-bottom:12px!important;
}
.er-contract-vehicle-list{
  display:grid;
  gap:9px;
}
.er-contract-empty{
  border:1px dashed #cbd5e1;
  border-radius:16px;
  background:#f8fafc;
  color:#64748b;
  padding:18px;
  font-weight:700;
  text-align:center;
}
.er-contract-vehicle-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fff;
  padding:12px;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.er-contract-vehicle-card:hover{border-color:#bfdbfe;box-shadow:0 10px 22px rgba(37,99,235,.08);}
.er-contract-vehicle-card.is-contract-completed{background:#f0fdf4;border-color:#bbf7d0;}
.er-contract-vehicle-card.is-contract-in-work{background:#fff7ed;border-color:#fed7aa;}
.er-contract-vehicle-card__check{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.er-contract-vehicle-card__check input{width:18px;height:18px;accent-color:#2563eb;}
.er-contract-vehicle-card__main{min-width:0;}
.er-contract-vehicle-card__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:7px;
}
.er-contract-vehicle-card__plate{
  font-size:17px;
  font-weight:950;
  color:#0f172a;
  line-height:1.15;
}
.er-contract-vehicle-card__model{
  margin-top:2px;
  font-size:13px;
  color:#475569;
  font-weight:750;
}
.er-contract-vehicle-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.er-contract-vehicle-card__meta span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:26px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  padding:4px 9px;
  font-size:12px;
  font-weight:750;
}
.er-contract-vehicle-card__meta b{color:#0f172a;}
.er-contract-vehicle-card__actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:220px;
}
.er-docs-requisites-modern{
  background:#fff!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:18px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
  overflow:hidden;
}
.er-docs-requisites-modern summary{
  margin:0!important;
  border-radius:16px!important;
  background:#fff!important;
  border:1px dashed #cbd5e1!important;
}
.er-docs-requisites-modern[open] summary{margin-bottom:12px!important;background:#eff6ff!important;border-color:#bfdbfe!important;}

@media(max-width:1320px){
  .er-contract-control-grid{grid-template-columns:repeat(4,minmax(160px,1fr));}
  .er-contract-agent-picker,.er-contract-list-picker{grid-column:span 2;}
  .er-contract-add-card{grid-template-columns:repeat(4,minmax(130px,1fr));}
  .er-contract-add-card .er-field-wide{grid-column:span 2!important;}
  .er-contract-add-card .er-contract-vehicle-form-actions{grid-column:span 2!important;}
  .er-contract-status-row{grid-template-columns:1fr;}
  .er-contract-status-row .er-contract-counters{grid-template-columns:repeat(4,minmax(90px,1fr))!important;}
}
@media(max-width:900px){
  .er-docs-home-topline,.er-contract-control-head,.er-docs-modal-head-modern{flex-direction:column;align-items:stretch!important;}
  .er-docs-main-create,.er-docs-modal-head-actions .er-btn,.er-contract-control-actions .er-btn{width:100%;justify-content:center;}
  .er-docs-home-actions-modern,.er-docs-home-explain{grid-template-columns:1fr;}
  .er-contract-control-grid,.er-contract-topline-modern,.er-contract-add-card,.er-contract-vehicle-tools-modern{grid-template-columns:1fr!important;}
  .er-contract-agent-picker,.er-contract-list-picker,.er-contract-add-card .er-field-wide,.er-contract-add-card .er-contract-vehicle-form-actions{grid-column:auto!important;}
  .er-contract-status-row .er-contract-counters{grid-template-columns:repeat(2,minmax(100px,1fr))!important;}
  .er-contract-vehicle-card{grid-template-columns:1fr;align-items:stretch;}
  .er-contract-vehicle-card__check{width:100%;height:36px;}
  .er-contract-vehicle-card__top{flex-direction:column;}
  .er-contract-vehicle-card__actions{max-width:none;justify-content:flex-start;}
}
@media(max-width:560px){
  [data-er-modal="actions"].er-modal-docs-workflow .er-modal{width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;}
  [data-er-modal="actions"].er-modal-docs-workflow .er-modal-body{padding:10px!important;}
  .er-contract-status-row .er-contract-counters{grid-template-columns:1fr!important;}
}


/* v2.10.135 — документы: сценарии открываются как полноценные страницы, не модальные окна */
.er-docs-page-workflow{
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
  padding:4px 0 28px!important;
}
.er-docs-page-backbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:sticky;
  top:0;
  z-index:5;
  border:1px solid rgba(148,163,184,.24);
  border-radius:18px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 12px 28px rgba(15,23,42,.07);
  padding:12px 14px;
}
.er-docs-page-backbar span{
  color:#334155;
  font-size:13px;
  font-weight:900;
  text-align:right;
}
.er-docs-page-head{
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%)!important;
  border-color:rgba(37,99,235,.18)!important;
}
.er-docs-page-workflow .er-contracts-panel-pro{
  gap:16px!important;
}
.er-docs-page-workflow .er-contract-control-card,
.er-docs-page-workflow .er-contract-period-card,
.er-docs-page-workflow .er-contract-vehicles-card,
.er-docs-page-workflow .er-docs-modal-requisites,
.er-docs-page-workflow .er-docs-modal-toolbar,
.er-docs-page-workflow .er-docs-actions-grid,
.er-docs-page-workflow .er-docs-pro-records-head,
.er-docs-page-workflow .er-docs-table-wrap{
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;
}
.er-docs-page-workflow .er-contract-control-grid{
  grid-template-columns:minmax(260px,1.35fr) minmax(250px,1.2fr) repeat(5,minmax(130px,.7fr));
}
.er-docs-page-workflow .er-contract-vehicles-card{
  min-height:360px;
}
.er-docs-page-workflow .er-contract-vehicle-list{
  max-height:none!important;
  overflow:visible!important;
}
.er-docs-page-workflow .er-docs-modal-head-actions .er-btn[data-er-docs-back]{
  display:none;
}
@media(max-width:1320px){
  .er-docs-page-workflow .er-contract-control-grid{grid-template-columns:repeat(4,minmax(160px,1fr));}
}
@media(max-width:900px){
  .er-docs-page-backbar{position:static;align-items:stretch;flex-direction:column;}
  .er-docs-page-backbar span{text-align:left;}
  .er-docs-page-workflow .er-contract-control-grid{grid-template-columns:1fr!important;}
  .er-docs-page-workflow .er-docs-modal-head-actions .er-btn[data-er-docs-back]{display:inline-flex;}
}

/* v2.10.136 — договорные списки: автонумерация договора и заметная кнопка реквизитов */
.er-contract-number-field input[readonly]{
  background:#f8fafc!important;
  color:#475569!important;
  cursor:not-allowed!important;
  border-style:dashed!important;
}
.er-contract-auto-note{
  margin-top:5px!important;
  color:#2563eb!important;
  font-weight:800!important;
  font-size:11px!important;
}
.er-docs-requisites-modern summary.er-docs-requisites-summary{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:68px!important;
  padding:12px 14px!important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 62%,#f8fafc 100%)!important;
  border:1px solid #93c5fd!important;
  box-shadow:0 10px 22px rgba(37,99,235,.10)!important;
  cursor:pointer!important;
  list-style:none!important;
}
.er-docs-requisites-modern summary.er-docs-requisites-summary::-webkit-details-marker{display:none!important;}
.er-docs-requisites-summary__icon{
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:15px!important;
  background:#dbeafe!important;
  border:1px solid #bfdbfe!important;
  font-size:20px!important;
}
.er-docs-requisites-summary__text{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;}
.er-docs-requisites-summary__text b{font-size:15px!important;line-height:1.2!important;color:#0f172a!important;}
.er-docs-requisites-summary__text small{font-size:12px!important;line-height:1.35!important;color:#475569!important;font-weight:750!important;}
.er-docs-requisites-summary__button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:8px 14px!important;
  border-radius:12px!important;
  background:#2563eb!important;
  color:#fff!important;
  font-size:0!important;
  font-weight:950!important;
  box-shadow:0 10px 20px rgba(37,99,235,.22)!important;
  white-space:nowrap!important;
}
.er-docs-requisites-modern[open] .er-docs-requisites-summary__button{background:#0f172a!important;}
@media(max-width:700px){
  .er-docs-requisites-modern summary.er-docs-requisites-summary{grid-template-columns:42px 1fr!important;}
  .er-docs-requisites-summary__button{grid-column:1/-1!important;width:100%!important;}
}
.er-docs-requisites-summary__button::after{content:"Открыть реквизиты";font-size:12px!important;}
.er-docs-requisites-modern[open] .er-docs-requisites-summary__button::after{content:"Закрыть реквизиты";}

/* v2.10.138 — агенты-юрлица, полная таблица категорий и общие реквизиты исполнителя */
.er-agent-legal-field{min-width:260px!important;}
.er-agent-legal-toggle{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  min-height:52px!important;
  padding:10px 12px!important;
  border:1px solid rgba(37,99,235,.25)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%)!important;
  cursor:pointer!important;
}
.er-agent-legal-toggle input{margin-top:4px!important; width:18px!important; height:18px!important; flex:0 0 auto!important;}
.er-agent-legal-toggle span{display:flex!important; flex-direction:column!important; gap:3px!important; min-width:0!important;}
.er-agent-legal-toggle b{font-size:13px!important; color:#0f172a!important; line-height:1.2!important;}
.er-agent-legal-toggle em{font-style:normal!important; font-size:11px!important; line-height:1.3!important; color:#475569!important; font-weight:700!important;}
.er-agent-prices-wrap{
  max-width:none!important;
  width:100%!important;
  overflow:auto!important;
  border:1px solid rgba(148,163,184,.35)!important;
  border-radius:14px!important;
}
.er-agent-prices-table{min-width:820px!important; width:100%!important;}
.er-agent-prices-table th,.er-agent-prices-table td{white-space:nowrap!important; vertical-align:middle!important;}
.er-agent-prices-table input{width:100%!important; min-width:150px!important; box-sizing:border-box!important;}
.er-docs-executor-edit{display:flex!important; flex-direction:column!important; gap:10px!important; padding:12px!important; border-radius:16px!important; border:1px solid rgba(37,99,235,.18)!important; background:#f8fbff!important;}
.er-docs-executor-edit-head{display:flex!important; align-items:flex-start!important; justify-content:space-between!important; gap:12px!important; flex-wrap:wrap!important;}
.er-docs-executor-edit-head b{display:block!important; color:#0f172a!important; font-size:14px!important;}
.er-docs-executor-edit-head small{display:block!important; color:#475569!important; font-size:12px!important; font-weight:700!important; margin-top:3px!important;}
.er-docs-executor-edit textarea,
.er-settings-card-executor textarea{width:100%!important; min-height:170px!important; resize:vertical!important; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important; line-height:1.45!important;}

/* 2.10.143 — договорные списки в карточке агента */
.er-agent-contracts-card{background:rgba(248,250,252,.92);border:1px solid var(--er-stroke);border-radius:16px}
.er-agent-contract-list{display:grid;gap:10px}
.er-agent-contract-card{background:#fff;border:1px solid var(--er-stroke);border-radius:16px;padding:12px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.er-agent-contract-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.er-agent-contract-card__title{font-weight:900;color:var(--er-text);font-size:15px}
.er-agent-contract-card__sub{margin-top:2px;color:var(--er-text-2);font-size:12px}
.er-agent-contract-card__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.er-agent-contract-card__stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.er-agent-contract-card__stats span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(15,23,42,.06);font-size:12px;color:var(--er-text-2)}
.er-agent-contract-card__stats span.is-ok{background:rgba(34,197,94,.12);color:#166534}
.er-agent-contract-vehicles{margin-top:10px;padding-top:10px;border-top:1px dashed var(--er-stroke)}
.er-agent-contract-vehicles-table td,.er-agent-contract-vehicles-table th{font-size:12px}
.er-agent-contract-vehicles-table tr.is-contract-completed td{background:rgba(34,197,94,.10)}
.er-agent-contract-vehicles-table tr.is-contract-in-work td{background:rgba(59,130,246,.08)}
@media (max-width: 760px){.er-agent-contract-card__head{display:block}.er-agent-contract-card__actions{justify-content:flex-start;margin-top:8px}}

/* 2.10.146: активные договорные списки в новой записи */
.er-record-contract-alert-slot{display:flex;align-items:flex-end;justify-content:flex-start;min-width:240px}
.er-record-contract-button-field{align-self:end}
.er-record-contract-pulse{border:0;border-radius:18px;padding:13px 18px;background:linear-gradient(135deg,#f97316,#ef4444);color:#fff;font-weight:950;letter-spacing:.02em;box-shadow:0 14px 32px rgba(239,68,68,.35);cursor:pointer;animation:erContractPulse 1.05s ease-in-out infinite;white-space:normal;text-align:left;line-height:1.15;min-height:50px}
.er-record-contract-pulse:hover{filter:brightness(1.03);transform:translateY(-1px)}
.er-record-contract-pulse.is-visible{display:inline-flex!important;align-items:center;justify-content:center}
@keyframes erContractPulse{0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.48),0 14px 32px rgba(239,68,68,.28);transform:scale(1)}50%{box-shadow:0 0 0 9px rgba(249,115,22,0),0 18px 38px rgba(239,68,68,.36);transform:scale(1.035)}}
.er-record-contract-list{display:grid;gap:10px;max-height:320px;overflow:auto;padding:2px}
.er-record-contract-list-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(148,163,184,.35);border-radius:16px;background:#fff;padding:13px 14px;box-shadow:0 10px 26px rgba(15,23,42,.06)}
.er-record-contract-list-card.is-active{border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#fff)}
.er-record-contract-list-card__main{min-width:0;display:grid;gap:5px}
.er-record-contract-list-card__title{font-size:15px;font-weight:950;color:#0f172a}
.er-record-contract-list-card__meta,.er-record-contract-list-card__stats{display:flex;gap:8px;flex-wrap:wrap;color:#64748b;font-size:12px}
.er-record-contract-list-card__stats span{border-radius:999px;background:#f1f5f9;padding:4px 8px;font-weight:800;color:#334155}
.er-record-contract-selected-head{border:1px solid rgba(37,99,235,.2);border-radius:14px;background:#eff6ff;padding:11px 13px;color:#172554}
.er-record-contract-vehicle-panel{display:grid;gap:10px}
.er-contract-list-name-field input{border-color:#f59e0b!important;background:#fffbeb!important}
@media(max-width:760px){.er-record-contract-alert-slot{min-width:0;width:100%;margin-bottom:8px}.er-record-contract-pulse{width:100%;text-align:center}.er-record-contract-list-card{display:block}.er-record-contract-list-card .er-btn{margin-top:10px;width:100%}}

/* MAX diagnostics block */
.er-max-diagnostics{margin-top:14px;padding:14px;border:1px dashed #9ec5fe;border-radius:14px;background:#f8fbff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.er-max-diag-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.er-max-diag-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.er-max-diag-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:8px}
.er-max-diag-grid>div{min-height:48px;padding:10px;border:1px solid #e1ebf7;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:5px;overflow:hidden}
.er-max-diag-grid span:first-child{font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.er-max-diag-grid code{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#0f172a;color:#fff;border-radius:8px;padding:4px 7px;font-size:12px}
.er-max-pill{display:inline-flex;align-items:center;width:max-content;max-width:100%;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:900;line-height:1.1}
.er-max-pill-ok{background:#dcfce7;color:#166534}
.er-max-pill-bad{background:#fee2e2;color:#991b1b}
.er-max-pill-muted{background:#e2e8f0;color:#475569}
.er-max-last-message{margin-top:10px;padding:10px;border-radius:12px;background:#eef6ff;color:#1e293b;word-break:break-word}
.er-max-error{margin-top:10px}
.er-btn-xs{padding:5px 8px;font-size:11px;line-height:1.1;border-radius:9px;margin-top:5px;width:max-content}
@media(max-width:1100px){.er-max-diag-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.er-max-diag-head{flex-direction:column}.er-max-diag-actions{justify-content:flex-start}}
@media(max-width:700px){.er-max-diag-grid{grid-template-columns:1fr}}

/* CRM-TO 2.10.156: MAX known chats list */
.er-max-known-chats{margin-top:12px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:#fff}
.er-max-known-chats-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#0f172a}
.er-max-known-chats-head span{font-size:12px;font-weight:900;color:#2563eb;background:#eff6ff;border-radius:999px;padding:4px 9px}
.er-max-chats-empty{padding:10px;border-radius:12px;background:#f8fafc;color:#64748b;font-weight:700}
.er-max-chats-list{display:flex;flex-direction:column;gap:8px}
.er-max-chat-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(110px,auto) auto;align-items:center;gap:10px;padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fbff}
.er-max-chat-main{min-width:0;display:flex;flex-direction:column;gap:5px}
.er-max-chat-title{font-weight:900;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.er-max-chat-main code{display:inline-block;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#0f172a;color:#fff;border-radius:8px;padding:4px 7px;font-size:12px}
.er-max-chat-default{display:inline-flex;vertical-align:middle;margin-left:6px;border-radius:999px;background:#dcfce7;color:#166534;font-size:11px;font-weight:900;padding:2px 7px}
.er-max-chat-meta{font-size:12px;font-weight:800;color:#64748b;white-space:nowrap}
@media(max-width:900px){.er-max-chat-row{grid-template-columns:1fr}.er-max-chat-meta{white-space:normal}}

/* CRM-TO 2.10.158: editable MAX chat titles */
.er-max-chat-edit{display:flex;align-items:center;gap:8px;min-width:280px;flex:1}
.er-max-chat-edit input{width:100%;min-width:180px;border:1px solid #dbeafe;border-radius:10px;padding:7px 9px;font-size:12px;background:#fff;color:#0f172a}
.er-max-chat-row{gap:10px}
@media (max-width: 900px){.er-max-chat-edit{min-width:100%;order:3}.er-max-chat-row{flex-wrap:wrap}}

/* CRM settings tabs and Yandex Disk setup helper */
.er-settings-tabs{display:flex;gap:8px;flex-wrap:wrap;position:sticky;top:42px;z-index:20;background:rgba(248,250,252,.96);backdrop-filter:blur(8px);border:1px solid #dbe7ff;border-radius:18px;padding:10px;margin:0 0 14px;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.er-settings-tabs button{border:1px solid #d8e3f4;background:#fff;color:#334155;border-radius:14px;padding:10px 14px;font-weight:900;font-size:13px;cursor:pointer;transition:all .15s ease;box-shadow:0 4px 12px rgba(15,23,42,.04)}
.er-settings-tabs button:hover{transform:translateY(-1px);border-color:#93c5fd;color:#1d4ed8}
.er-settings-tabs button.is-active{background:linear-gradient(135deg,#0b6b3a,#0b7f56);border-color:#0b6b3a;color:#fff;box-shadow:0 10px 24px rgba(11,107,58,.22)}
.er-settings-tabs-enabled .er-settings-card[data-er-settings-section]{display:none!important}
.er-settings-tabs-enabled .er-settings-card[data-er-settings-section].is-active{display:block!important}
.er-yadisk-quick-help{margin:12px 0 14px;padding:13px 14px;border-radius:16px;background:linear-gradient(135deg,#ecfdf5,#eff6ff);border:1px solid #bfdbfe;color:#0f172a;font-weight:650;line-height:1.45}
.er-settings-card-yadisk [data-er-yadisk-oauth-field],.er-settings-card-yadisk [data-er-yadisk-webdav-field]{transition:opacity .15s ease}
@media(max-width:760px){.er-settings-tabs{position:static}.er-settings-tabs button{flex:1 1 46%;padding:10px 9px}}

/* CRM-TO 2.10.166 — professional settings redesign */
.er-settings-clean.er-settings-pro{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;background:#f5f7fb!important;border:0!important;padding:0!important}
.er-settings-pro .er-settings-hero{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid rgba(15,23,42,.08);border-radius:24px;background:linear-gradient(135deg,#0f172a 0%,#123b6d 50%,#075985 100%);color:#fff;box-shadow:0 18px 50px rgba(15,23,42,.18);overflow:hidden;position:relative}
.er-settings-pro .er-settings-hero:before{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:999px;background:rgba(255,255,255,.10)}
.er-settings-pro .er-settings-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#bae6fd;margin-bottom:6px}
.er-settings-pro .er-settings-hero h2{margin:0 0 6px!important;color:#fff!important;font-size:28px!important;line-height:1.1!important;font-weight:950!important}
.er-settings-pro .er-settings-hero p{margin:0!important;color:rgba(255,255,255,.82)!important;font-size:13px!important;line-height:1.45!important;font-weight:650!important;max-width:720px}
.er-settings-pro .er-settings-hero-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;position:relative;z-index:1}
.er-settings-pro .er-settings-hero-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);font-weight:850;font-size:12px;color:#fff;white-space:nowrap}
.er-settings-pro .er-settings-tabs{grid-column:1!important;position:sticky!important;top:54px!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:10px!important;border-radius:22px!important;border:1px solid rgba(15,23,42,.08)!important;background:#fff!important;box-shadow:0 12px 35px rgba(15,23,42,.08)!important;backdrop-filter:none!important}
.er-settings-pro .er-settings-tabs button{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-areas:"icon title" "icon sub"!important;align-items:center!important;text-align:left!important;gap:0 10px!important;width:100%!important;padding:12px!important;border-radius:16px!important;border:1px solid transparent!important;background:#fff!important;color:#334155!important;box-shadow:none!important;min-height:62px!important}
.er-settings-pro .er-settings-tabs button span{grid-area:icon;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#eef4ff;font-size:16px}
.er-settings-pro .er-settings-tabs button b{grid-area:title;font-size:13px;font-weight:950;color:#0f172a;line-height:1.15}
.er-settings-pro .er-settings-tabs button em{grid-area:sub;font-style:normal;color:#64748b;font-size:11px;font-weight:750;line-height:1.2;margin-top:2px}
.er-settings-pro .er-settings-tabs button:hover{transform:none!important;background:#f8fbff!important;border-color:#bfdbfe!important;color:#1d4ed8!important}
.er-settings-pro .er-settings-tabs button.is-active{background:linear-gradient(135deg,#0b6b3a,#0f8a5f)!important;color:#fff!important;border-color:#0b6b3a!important;box-shadow:0 12px 28px rgba(11,107,58,.22)!important}
.er-settings-pro .er-settings-tabs button.is-active span{background:rgba(255,255,255,.18)}
.er-settings-pro .er-settings-tabs button.is-active b,.er-settings-pro .er-settings-tabs button.is-active em{color:#fff!important}
.er-settings-pro .er-settings-layout{grid-column:2!important;min-width:0!important;display:block!important}
.er-settings-pro .er-settings-card{border-radius:24px!important;border:1px solid rgba(15,23,42,.08)!important;background:#fff!important;box-shadow:0 16px 44px rgba(15,23,42,.08)!important;padding:22px!important;overflow:hidden!important}
.er-settings-pro .er-settings-card-head{padding-bottom:16px!important;margin-bottom:18px!important;border-bottom:1px solid rgba(15,23,42,.08)!important}
.er-settings-pro .er-settings-card-title{font-size:22px!important;font-weight:950!important;letter-spacing:-.02em!important;color:#0f172a!important}
.er-settings-pro .er-settings-card-sub{font-size:13px!important;color:#64748b!important;line-height:1.45!important;max-width:860px!important}
.er-settings-pro .er-settings-grid{gap:16px!important}
.er-settings-pro .er-field label{font-size:12px!important;text-transform:none!important;color:#334155!important;font-weight:900!important;margin-bottom:7px!important}
.er-settings-pro .er-field input,.er-settings-pro .er-field select,.er-settings-pro .er-field textarea{border-radius:14px!important;border:1px solid rgba(15,23,42,.14)!important;background:#fff!important;min-height:46px!important;box-shadow:0 1px 0 rgba(15,23,42,.03)!important;color:#0f172a!important;font-weight:750!important}
.er-settings-pro .er-field input:focus,.er-settings-pro .er-field select:focus,.er-settings-pro .er-field textarea:focus{border-color:#2563eb!important;box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;outline:none!important}
.er-settings-pro .er-settings-toggle,.er-settings-pro .er-settings-toggle-compact{border-radius:18px!important;background:#f8fafc!important;border:1px solid rgba(15,23,42,.08)!important;padding:14px!important;margin-top:16px!important}
.er-settings-pro .er-settings-panel-card{margin-top:18px;padding:18px;border-radius:22px;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#ffffff,#f8fbff);box-shadow:0 10px 28px rgba(15,23,42,.05)}
.er-settings-pro .er-settings-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.er-settings-pro .er-settings-section-title b{display:block;color:#0f172a;font-size:17px;font-weight:950;line-height:1.2}
.er-settings-pro .er-settings-section-title span{display:block;margin-top:4px;color:#64748b;font-size:12px;line-height:1.35;font-weight:650}
.er-settings-pro .er-max-report-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.er-settings-pro .er-max-report-card{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:11px;min-width:0}
.er-settings-pro .er-max-report-card-head{display:flex;align-items:center;gap:9px;color:#0f172a;font-size:14px;font-weight:950}
.er-settings-pro .er-max-report-card-head span{width:34px;height:34px;border-radius:12px;background:#eff6ff;display:flex;align-items:center;justify-content:center}
.er-settings-pro .er-max-test-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.er-settings-pro .er-btn-full{width:100%;justify-content:center}
.er-settings-pro .er-settings-max-webhook{border-radius:18px!important;background:#f8fafc!important;border:1px dashed rgba(37,99,235,.35)!important;padding:14px!important}
.er-settings-pro .er-settings-max-webhook code{border-radius:14px!important;padding:13px 14px!important;background:#0f172a!important;color:#e0f2fe!important;font-size:12px!important}
.er-settings-pro .er-max-diagnostics,.er-settings-pro .er-yadisk-diagnostics{margin-top:18px!important;border-radius:22px!important;border:1px solid rgba(37,99,235,.16)!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.05)!important;padding:18px!important}
.er-settings-pro .er-max-diag-head{border-bottom:1px solid rgba(15,23,42,.08);padding-bottom:14px;margin-bottom:14px;align-items:flex-start!important}
.er-settings-pro .er-max-diag-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.er-settings-pro .er-max-diag-grid>div{min-height:70px;border-radius:16px!important;background:#f8fafc!important;border:1px solid rgba(15,23,42,.07)!important;padding:12px!important}
.er-settings-pro .er-max-diag-grid span{display:block;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px}
.er-settings-pro .er-max-known-chats{margin-top:16px;border-radius:18px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);padding:14px}
.er-settings-pro .er-settings-footer{grid-column:2!important;position:sticky!important;bottom:0!important;background:linear-gradient(180deg,rgba(245,247,251,0),#f5f7fb 35%)!important;padding:16px 0 0!important;z-index:30!important}
.er-settings-pro .er-settings-footer .er-btn{min-width:220px!important;min-height:50px!important;border-radius:16px!important;font-size:14px!important;box-shadow:0 12px 28px rgba(37,99,235,.24)!important}
.er-settings-pro .er-yadisk-quick-help{border-radius:18px!important;border:1px solid #bfdbfe!important;background:#eff6ff!important;color:#1e3a8a!important;padding:13px 14px!important;margin-bottom:16px!important;font-weight:750!important;line-height:1.45!important}
@media(max-width:1200px){.er-settings-clean.er-settings-pro{grid-template-columns:1fr!important}.er-settings-pro .er-settings-tabs,.er-settings-pro .er-settings-layout,.er-settings-pro .er-settings-footer{grid-column:1!important}.er-settings-pro .er-settings-tabs{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.er-settings-pro .er-max-report-cards{grid-template-columns:1fr}.er-settings-pro .er-max-test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.er-settings-pro .er-max-diag-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.er-settings-pro .er-settings-hero{display:block;padding:18px}.er-settings-pro .er-settings-hero-badges{justify-content:flex-start;margin-top:12px}.er-settings-pro .er-settings-tabs{grid-template-columns:1fr!important}.er-settings-pro .er-settings-grid-3{grid-template-columns:1fr!important}.er-settings-pro .er-max-test-grid{grid-template-columns:1fr}.er-settings-pro .er-max-diag-grid{grid-template-columns:1fr!important}.er-settings-pro .er-settings-footer .er-btn{width:100%}}

/* CRM-TO 2.10.171 — удобный выбор управляющих для MAX-отчётов */
.er-settings-pro .er-manager-report-picker{
  margin-top:8px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  padding:12px;
}
.er-settings-pro .er-manager-picker-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.er-settings-pro .er-manager-picker-toolbar b{
  display:block;
  color:#0f172a;
  font-size:13px;
  font-weight:950;
  line-height:1.2;
}
.er-settings-pro .er-manager-picker-toolbar span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.er-settings-pro .er-manager-picker-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.er-settings-pro .er-manager-picker-selected{
  margin-bottom:10px;
  padding:9px 10px;
  border-radius:13px;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:12px;
  font-weight:850;
  line-height:1.35;
  border:1px solid #bfdbfe;
}
.er-settings-pro .er-manager-picker-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.er-settings-pro .er-manager-picker-card{
  position:relative;
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  grid-template-areas:"mark name" "mark id";
  align-items:center;
  gap:2px 9px;
  padding:10px 11px;
  min-height:58px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:15px;
  background:#fff;
  cursor:pointer;
  user-select:none;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.er-settings-pro .er-manager-picker-card:hover{
  transform:translateY(-1px);
  border-color:#93c5fd;
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}
.er-settings-pro .er-manager-picker-card input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-height:0!important;}
.er-settings-pro .er-manager-picker-mark{
  grid-area:mark;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#e2e8f0;
  color:#475569;
  font-size:16px;
  font-weight:950;
}
.er-settings-pro .er-manager-picker-name{
  grid-area:name;
  color:#0f172a;
  font-size:13px;
  font-weight:950;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.er-settings-pro .er-manager-picker-card small{
  grid-area:id;
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.er-settings-pro .er-manager-picker-card.is-selected{
  border-color:#22c55e;
  background:linear-gradient(135deg,#ecfdf5,#ffffff);
  box-shadow:0 10px 24px rgba(34,197,94,.14);
}
.er-settings-pro .er-manager-picker-card.is-selected .er-manager-picker-mark{
  background:#16a34a;
  color:#fff;
}
.er-settings-pro .er-manager-picker-empty{
  padding:12px;
  border-radius:14px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:800;
}
@media(max-width:900px){.er-settings-pro .er-manager-picker-grid{grid-template-columns:1fr}.er-settings-pro .er-manager-picker-toolbar{display:block}.er-settings-pro .er-manager-picker-actions{justify-content:flex-start;margin-top:10px}}

/* CRM-TO 2.10.177 — employee can be hidden from shift schedule without deletion */
.er-table--employees tr.is-shift-disabled td{background:#fff8ec;}
.er-badge.er-badge-warn{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#fff3cd;color:#7a4b00;border:1px solid #f4d17c;font-weight:800;font-size:12px;}
.er-shift-disabled-box{border:1px solid #f4d17c;background:#fffdf5;border-radius:14px;padding:10px 12px;}
.er-toggle-line{display:flex;gap:10px;align-items:flex-start;cursor:pointer;line-height:1.35;}
.er-toggle-line input{margin-top:4px;}
.er-toggle-line small{display:block;margin-top:4px;color:#667085;font-weight:500;}

/* 2.10.178: управление «всегда выходной» прямо в графиках смен */
.er-shift-hidden-card {
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.er-shift-hidden-list {
  display: grid;
  gap: 10px;
}
.er-shift-hidden-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}
.er-shift-employee-block-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 720px){
  .er-shift-hidden-item { align-items: flex-start; flex-direction: column; }
  .er-shift-hidden-item .er-btn { width: 100%; }
}

/* CRM-TO 2.10.180 — мониторинг сайта внутри настроек MAX */
.er-settings-pro .er-max-pill-warn{background:#fef3c7;color:#92400e}
.er-settings-pro .er-max-report-card-wide{grid-column:span 2}
.er-settings-pro .er-max-report-card-monitor{gap:14px}
.er-settings-pro .er-site-monitor-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.er-settings-pro .er-site-monitor-settings-grid textarea{min-height:86px;resize:vertical}
.er-settings-pro .er-site-monitor-flags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.er-settings-pro .er-site-monitor-state{border:1px dashed rgba(37,99,235,.24);border-radius:16px;background:#f8fafc;padding:12px;display:flex;flex-direction:column;gap:10px}
.er-settings-pro .er-site-monitor-status-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:#475569}
.er-settings-pro .er-site-monitor-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.er-settings-pro .er-site-monitor-mini-grid>div{border:1px solid rgba(15,23,42,.08);border-radius:12px;background:#fff;padding:10px;display:flex;flex-direction:column;gap:3px}
.er-settings-pro .er-site-monitor-mini-grid span{font-size:11px;color:#64748b;font-weight:800}
.er-settings-pro .er-site-monitor-mini-grid b{font-size:14px;color:#0f172a}
.er-settings-pro .er-site-monitor-details{border:1px solid rgba(15,23,42,.08);border-radius:12px;background:#fff;padding:9px 10px}
.er-settings-pro .er-site-monitor-details summary{cursor:pointer;font-weight:900;color:#0f172a;font-size:12px}
.er-settings-pro .er-site-monitor-details pre{white-space:pre-wrap;max-height:220px;overflow:auto;background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:10px;padding:10px;font-size:11px;margin:10px 0 0}
.er-settings-pro .er-site-monitor-log{display:flex;flex-direction:column;gap:7px;margin-top:10px;max-height:240px;overflow:auto}
.er-settings-pro .er-site-monitor-log-row{display:grid;grid-template-columns:150px 80px minmax(0,1fr);gap:8px;align-items:start;font-size:11px}
.er-settings-pro .er-site-monitor-log-row span{color:#64748b}
.er-settings-pro .er-site-monitor-log-row code{white-space:nowrap}
.er-settings-pro .er-site-monitor-log-row b{font-weight:700;color:#0f172a;min-width:0;overflow-wrap:anywhere}
.er-settings-pro .er-site-monitor-actions{gap:8px;flex-wrap:wrap}
@media(max-width:1200px){.er-settings-pro .er-max-report-card-wide{grid-column:auto}.er-settings-pro .er-site-monitor-settings-grid,.er-settings-pro .er-site-monitor-flags{grid-template-columns:1fr}.er-settings-pro .er-site-monitor-mini-grid{grid-template-columns:1fr}.er-settings-pro .er-site-monitor-log-row{grid-template-columns:1fr}}


/* 2.10.181 — MAX мониторинг в настройках: компактно и без разъезда страницы */
.er-settings-pro .er-max-report-card-monitor{
  grid-column:1 / -1!important;
  max-width:100%;
  overflow:hidden;
}
.er-settings-pro .er-site-monitor-compact{
  display:grid;
  gap:12px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  padding:12px;
}
.er-settings-pro .er-site-monitor-enable{
  margin:0!important;
  font-weight:900;
}
.er-settings-pro .er-site-monitor-main-grid{
  display:grid;
  grid-template-columns:minmax(300px,1.4fr) minmax(260px,1fr) minmax(180px,.7fr);
  gap:12px;
  align-items:start;
  min-width:0;
}
.er-settings-pro .er-site-monitor-main-grid .er-field,
.er-settings-pro .er-site-monitor-settings-grid .er-field{
  min-width:0;
}
.er-settings-pro .er-site-monitor-main-grid input,
.er-settings-pro .er-site-monitor-main-grid select,
.er-settings-pro .er-site-monitor-settings-grid input,
.er-settings-pro .er-site-monitor-settings-grid select,
.er-settings-pro .er-site-monitor-settings-grid textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.er-settings-pro .er-site-monitor-quick-flags{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
}
.er-settings-pro .er-site-monitor-quick-flags label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  color:#334155;
  font-size:12px;
  font-weight:800;
}
.er-settings-pro .er-site-monitor-advanced{
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:#fff;
  padding:0;
  overflow:hidden;
}
.er-settings-pro .er-site-monitor-advanced summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  background:#f8fafc;
  color:#0f172a;
}
.er-settings-pro .er-site-monitor-advanced summary::-webkit-details-marker{display:none}
.er-settings-pro .er-site-monitor-advanced summary b{font-size:13px;font-weight:950}
.er-settings-pro .er-site-monitor-advanced summary span{font-size:11px;color:#64748b;font-weight:800;text-align:right}
.er-settings-pro .er-site-monitor-advanced[open] summary{border-bottom:1px solid rgba(15,23,42,.08)}
.er-settings-pro .er-site-monitor-settings-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(180px,1fr))!important;
  gap:12px!important;
  padding:12px;
  align-items:start;
}
.er-settings-pro .er-site-monitor-custom-nodes{grid-column:span 2}
.er-settings-pro .er-site-monitor-flags{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  gap:8px 14px!important;
  padding:0 12px 12px;
}
.er-settings-pro .er-site-monitor-flags label{
  min-width:0;
  overflow-wrap:anywhere;
}
.er-settings-pro .er-site-monitor-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.er-settings-pro .er-site-monitor-actions-main{margin-top:0}
.er-settings-pro .er-site-monitor-actions-service{justify-content:flex-end}
.er-settings-pro .er-site-monitor-state{
  max-width:100%;
  overflow:hidden;
}
.er-settings-pro .er-site-monitor-status-row span,
.er-settings-pro .er-site-monitor-mini-grid b,
.er-settings-pro .er-site-monitor-details pre,
.er-settings-pro .er-site-monitor-log-row b{
  overflow-wrap:anywhere;
}
@media(max-width:1600px){
  .er-settings-pro .er-site-monitor-settings-grid{grid-template-columns:repeat(2,minmax(220px,1fr))!important}
}
@media(max-width:1200px){
  .er-settings-pro .er-site-monitor-main-grid,
  .er-settings-pro .er-site-monitor-settings-grid,
  .er-settings-pro .er-site-monitor-flags{
    grid-template-columns:1fr!important;
  }
  .er-settings-pro .er-site-monitor-custom-nodes{grid-column:auto}
  .er-settings-pro .er-site-monitor-advanced summary{align-items:flex-start;flex-direction:column}
  .er-settings-pro .er-site-monitor-advanced summary span{text-align:left}
}
@media(max-width:640px){
  .er-settings-pro .er-site-monitor-actions .er-btn{width:100%}
}

/* CRM-TO 2.10.182 — быстрые уведомления ЭЦП в новостях и быстрый ввод новой даты */
.er-news-viewer-actions{
  margin-top:16px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.er-news-action-btn{
  white-space:nowrap;
}
.er-news-action-ecp{
  background:linear-gradient(135deg,#f97316,#ea580c) !important;
  color:#fff !important;
  border-color:#ea580c !important;
  box-shadow:0 10px 24px rgba(249,115,22,.22) !important;
}
.er-ecp-fast-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px;
}
.er-mini-chip{
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#334155;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}
.er-mini-chip:hover{
  background:#eff6ff;
  border-color:#93c5fd;
  color:#1d4ed8;
}
.er-ecp-field-highlight{
  border:2px solid rgba(249,115,22,.55);
  background:#fff7ed;
  border-radius:14px;
  padding:10px;
  box-shadow:0 10px 28px rgba(249,115,22,.12);
}
.er-ecp-field-highlight label{
  color:#9a3412 !important;
}


/* CRM-ТО 2.10.183 — карточка сотрудника: ровная форма, красные пустые поля, новости по заполнению */
.er-emp-form{display:flex;flex-direction:column;gap:16px;}
.er-emp-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.er-emp-card{background:linear-gradient(180deg,#ffffff,#fbfdff);border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.06);min-height:100%;box-sizing:border-box;}
.er-emp-card-full{grid-column:1 / -1;}
.er-emp-card-head{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;}
.er-emp-card-title{font-size:16px;font-weight:900;line-height:1.2;color:#0f172a;}
.er-emp-card-sub{font-size:12px;line-height:1.45;color:#64748b;}
.er-emp-card .er-grid.er-emp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.er-emp-card .er-grid.er-emp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.er-emp-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start;}
.er-emp-form .er-hint{margin-top:6px;font-size:11px;line-height:1.4;color:#64748b;}
.er-ecp-fast-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.er-mini-chip{appearance:none;border:1px solid rgba(37,99,235,.18);background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer;transition:all .15s ease;}
.er-mini-chip:hover{transform:translateY(-1px);box-shadow:0 8px 16px rgba(37,99,235,.12);}
.er-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.er-checklist-row{display:flex;align-items:center;gap:8px;border:1px solid rgba(15,23,42,.08);border-radius:12px;padding:10px 12px;background:#fff;}
.er-field.er-critical.er-empty label{color:#b91c1c;}
.er-field.er-critical.er-empty .er-hint{color:#b91c1c;}
.er-field.er-critical.er-empty input,.er-field.er-critical.er-empty select,.er-field.er-critical.er-empty textarea{background:rgba(254,242,242,.96)!important;border-color:rgba(220,38,38,.42)!important;box-shadow:0 0 0 1px rgba(220,38,38,.06) inset;}
.er-field.er-critical.is-filled input,.er-field.er-critical.is-filled select,.er-field.er-critical.is-filled textarea{background:rgba(240,253,244,.96)!important;border-color:rgba(34,197,94,.34)!important;}
.er-field-pulse{animation:erFieldPulse 1.2s ease 0s 3;}
@keyframes erFieldPulse{0%{transform:translateY(0);box-shadow:none;}50%{transform:translateY(-1px);box-shadow:0 0 0 6px rgba(37,99,235,.10);}100%{transform:translateY(0);box-shadow:none;}}
@media (max-width: 1100px){.er-emp-layout{grid-template-columns:1fr;}.er-emp-card .er-grid.er-emp-grid-3{grid-template-columns:repeat(2,minmax(0,1fr));}.er-checklist{grid-template-columns:1fr;}}
@media (max-width: 760px){.er-emp-card .er-grid.er-emp-grid-2,.er-emp-card .er-grid.er-emp-grid-3{grid-template-columns:1fr;}.er-emp-actions .er-btn{width:100%;justify-content:center;}}

/* CRM-TO 2.10.198 — readable record edit window + reliable agent suggestions */
.er-drawer-backdrop.er-drawer-record-edit .er-drawer{
  background:#f8fafc !important;
  border:1px solid rgba(148,163,184,.32) !important;
  box-shadow:0 28px 90px rgba(15,23,42,.28) !important;
}
.er-drawer-backdrop.er-drawer-record-edit .er-drawer-title{
  font-size:18px !important;
  font-weight:950 !important;
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] .er-card{
  background:#ffffff !important;
  border:1px solid rgba(148,163,184,.26) !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(15,23,42,.045) !important;
  padding:14px !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] .er-card-title{
  font-size:14px !important;
  font-weight:950 !important;
  color:#111827 !important;
  margin-bottom:12px !important;
  letter-spacing:.01em !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] .er-row{
  display:grid !important;
  grid-template-columns:160px minmax(0,1fr) !important;
  gap:12px !important;
  align-items:center !important;
  padding:9px 10px !important;
  border:1px solid rgba(226,232,240,.95) !important;
  border-radius:14px !important;
  background:#fbfdff !important;
  margin-bottom:8px !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] .er-row-label{
  font-size:12px !important;
  font-weight:900 !important;
  color:#334155 !important;
  line-height:1.2 !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] input,
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] select,
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] textarea{
  min-height:38px !important;
  border-radius:12px !important;
  border:1px solid rgba(148,163,184,.45) !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:13px !important;
  font-weight:650 !important;
  padding:9px 11px !important;
  box-shadow:inset 0 1px 1px rgba(15,23,42,.025) !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] input:focus,
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] select:focus,
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] textarea:focus{
  border-color:#16a34a !important;
  box-shadow:0 0 0 3px rgba(34,197,94,.14), inset 0 1px 1px rgba(15,23,42,.025) !important;
  outline:none !important;
}
.er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] input[readonly]{
  background:#f8fafc !important;
  color:#475569 !important;
}
.er-suggest--record-edit{
  z-index:2147483647 !important;
  border:1px solid rgba(37,99,235,.28) !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:0 18px 45px rgba(15,23,42,.18) !important;
  max-height:260px !important;
  overflow:auto !important;
}
.er-suggest--record-edit .er-suggest-item{
  padding:12px 14px !important;
  font-size:13px !important;
  color:#0f172a !important;
}
.er-suggest--record-edit .er-suggest-item:hover,
.er-suggest--record-edit .er-suggest-item.is-active{
  background:#eff6ff !important;
}
@media (max-width: 900px){
  .er-drawer-backdrop.er-drawer-record-edit form[data-er-form="record_edit"] .er-row{grid-template-columns:1fr !important;gap:6px !important;}
}

/* CRM-TO 2.10.199 — readable record details window */
.er-drawer-backdrop.er-drawer-record-details .er-drawer{
  background:#f8fafc !important;
  border:1px solid rgba(148,163,184,.34) !important;
  box-shadow:0 30px 95px rgba(15,23,42,.30) !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-drawer-title{
  font-size:18px !important;
  font-weight:950 !important;
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-drawer-body{
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-record-modal-tabs{
  display:flex !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  margin-bottom:14px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-record-modal-tab{
  min-height:42px !important;
  border-radius:14px !important;
  font-size:14px !important;
  font-weight:900 !important;
  box-shadow:0 6px 16px rgba(15,23,42,.045) !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-record-head{
  align-items:center !important;
  padding:16px !important;
  margin:0 0 16px !important;
  border:1px solid rgba(37,99,235,.12) !important;
  border-radius:20px !important;
  background:linear-gradient(135deg,#ffffff,#f1f7ff) !important;
  box-shadow:0 12px 28px rgba(37,99,235,.07) !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-record-title{
  font-size:20px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-record-sub{
  margin-top:5px !important;
  font-size:13px !important;
  font-weight:750 !important;
  color:#475569 !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-badges{
  gap:8px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-badge{
  padding:7px 11px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:950 !important;
  border:1px solid rgba(15,23,42,.08) !important;
  box-shadow:0 4px 12px rgba(15,23,42,.04) !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-card{
  background:#ffffff !important;
  border:1px solid rgba(148,163,184,.26) !important;
  border-radius:20px !important;
  box-shadow:0 10px 28px rgba(15,23,42,.055) !important;
  padding:16px !important;
  margin:0 !important;
  min-width:0 !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-cards{
  gap:14px !important;
  margin-bottom:14px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-card + .er-card{
  margin-top:14px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-card-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 14px !important;
  padding-bottom:10px !important;
  border-bottom:1px solid rgba(226,232,240,.95) !important;
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:950 !important;
  color:#0f172a !important;
  letter-spacing:.01em !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-card-title::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
  flex:0 0 auto;
}
.er-drawer-backdrop.er-drawer-record-details .er-kv{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-kv > div{
  min-height:52px !important;
  padding:10px 12px !important;
  border:1px solid rgba(226,232,240,.95) !important;
  border-radius:14px !important;
  background:#fbfdff !important;
  box-sizing:border-box !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-k{
  margin-bottom:5px !important;
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:950 !important;
  text-transform:none !important;
  color:#64748b !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-v{
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:750 !important;
  color:#0f172a !important;
  overflow-wrap:anywhere !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-v code{
  display:inline-flex !important;
  align-items:center !important;
  min-height:28px !important;
  padding:4px 8px !important;
  border-radius:9px !important;
  background:#eef2ff !important;
  color:#1e3a8a !important;
  font-size:13px !important;
  font-weight:950 !important;
  border:1px solid rgba(99,102,241,.20) !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-muted{
  color:#64748b !important;
  font-weight:700 !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-record-modal-panel > .er-card:not(.er-cards .er-card){
  margin-top:14px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-actions{
  gap:9px !important;
  justify-content:flex-start !important;
  padding-top:12px !important;
  margin-top:14px !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-actions .er-btn{
  min-height:40px !important;
  border-radius:13px !important;
  font-weight:900 !important;
  box-shadow:0 6px 16px rgba(15,23,42,.06) !important;
}
.er-drawer-backdrop.er-drawer-record-details .er-diag-inline iframe{
  border-color:rgba(148,163,184,.42) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8) !important;
}
@media (max-width:1100px){
  .er-drawer-backdrop.er-drawer-record-details .er-cards-2{grid-template-columns:1fr !important;}
}
@media (max-width:760px){
  .er-drawer-backdrop.er-drawer-record-details .er-record-head{align-items:flex-start !important;flex-direction:column !important;}
  .er-drawer-backdrop.er-drawer-record-details .er-kv{grid-template-columns:1fr !important;}
  .er-drawer-backdrop.er-drawer-record-details .er-card{padding:14px !important;border-radius:18px !important;}
  .er-drawer-backdrop.er-drawer-record-details .er-actions .er-btn{width:100% !important;justify-content:center !important;}
}


/* CRM-ТО 2.10.201 — читабельное окно сотрудника и удобный ручной ввод дат */
.er-drawer-backdrop.er-drawer-employee .er-drawer{
  background:#f8fafc !important;
  border:1px solid rgba(148,163,184,.30) !important;
  box-shadow:0 30px 95px rgba(15,23,42,.32) !important;
}
.er-drawer-backdrop.er-drawer-employee .er-drawer-title{
  font-size:18px !important;
  font-weight:950 !important;
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-employee .er-drawer-close{
  background:#fff !important;
  border:1px solid rgba(148,163,184,.38) !important;
  border-radius:16px !important;
  color:#0f172a !important;
  font-weight:900 !important;
  min-width:74px !important;
  height:44px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-form{
  gap:14px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-layout{
  gap:14px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-card{
  background:#ffffff !important;
  border:1px solid rgba(148,163,184,.26) !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(15,23,42,.045) !important;
  padding:16px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-card-title{
  font-size:15px !important;
  font-weight:950 !important;
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-card-sub{
  color:#64748b !important;
  font-size:12px !important;
  font-weight:650 !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field label{
  color:#334155 !important;
  font-size:12px !important;
  font-weight:950 !important;
  margin-bottom:7px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field input,
.er-drawer-backdrop.er-drawer-employee .er-field select,
.er-drawer-backdrop.er-drawer-employee .er-field textarea{
  min-height:42px !important;
  border-radius:13px !important;
  border:1px solid rgba(148,163,184,.44) !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:13px !important;
  font-weight:700 !important;
  box-shadow:0 1px 0 rgba(15,23,42,.025) !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field input:focus,
.er-drawer-backdrop.er-drawer-employee .er-field select:focus,
.er-drawer-backdrop.er-drawer-employee .er-field textarea:focus{
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.13) !important;
  outline:none !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field.er-critical.er-empty input{
  background:#fff7f7 !important;
  border-color:rgba(239,68,68,.54) !important;
  color:#991b1b !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field.er-critical.er-empty input:focus{
  box-shadow:0 0 0 4px rgba(239,68,68,.13) !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field.er-critical.is-filled input{
  background:#f0fdf4 !important;
  border-color:rgba(34,197,94,.45) !important;
  color:#14532d !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field.er-critical.is-filled input:focus{
  box-shadow:0 0 0 4px rgba(34,197,94,.13) !important;
}
.er-drawer-backdrop.er-drawer-employee .er-hint{
  color:#64748b !important;
  font-size:11px !important;
  font-weight:650 !important;
  line-height:1.45 !important;
}
.er-drawer-backdrop.er-drawer-employee .er-field.er-critical.er-empty .er-hint{
  color:#b91c1c !important;
}
.er-drawer-backdrop.er-drawer-employee .er-date-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.er-drawer-backdrop.er-drawer-employee .er-date-input-wrap input{
  padding-right:104px !important;
  letter-spacing:.02em !important;
  font-variant-numeric:tabular-nums !important;
}
.er-drawer-backdrop.er-drawer-employee .er-date-format-pill{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
  border-radius:999px;
  padding:5px 8px;
  background:#eef2ff;
  color:#1d4ed8;
  border:1px solid rgba(37,99,235,.14);
  font-size:10px;
  font-weight:950;
  letter-spacing:.02em;
}
.er-drawer-backdrop.er-drawer-employee .er-ecp-fast-row{
  gap:6px !important;
  margin-top:8px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-mini-chip{
  border-radius:999px !important;
  background:#eff6ff !important;
  border:1px solid rgba(37,99,235,.22) !important;
  color:#1d4ed8 !important;
  padding:7px 10px !important;
  font-size:11px !important;
  font-weight:950 !important;
  box-shadow:none !important;
}
.er-drawer-backdrop.er-drawer-employee .er-mini-chip:hover{
  background:#dbeafe !important;
  transform:translateY(-1px);
}
.er-drawer-backdrop.er-drawer-employee .er-emp-actions{
  position:sticky;
  bottom:0;
  z-index:3;
  background:linear-gradient(180deg, rgba(248,250,252,.82), #f8fafc 55%);
  border-top:1px solid rgba(226,232,240,.96);
  padding:12px 0 0 !important;
  margin-top:2px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-actions .er-btn{
  min-height:42px !important;
  border-radius:12px !important;
  font-weight:950 !important;
  padding:0 18px !important;
}
@media (max-width: 760px){
  .er-drawer-backdrop.er-drawer-employee .er-date-input-wrap input{
    padding-right:92px !important;
  }
  .er-drawer-backdrop.er-drawer-employee .er-date-format-pill{
    font-size:9px;
    padding:4px 7px;
  }
}


/* CRM-ТО 2.10.202 — упрощённый ввод дат без внутренней плашки */
.er-drawer-backdrop.er-drawer-employee .er-date-format-pill{
  display:none !important;
}
.er-drawer-backdrop.er-drawer-employee .er-date-input-wrap input{
  padding-right:14px !important;
  font-size:14px !important;
  letter-spacing:.04em !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-date-field input::placeholder{
  color:#94a3b8 !important;
  letter-spacing:0 !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-date-field .er-hint{
  margin-top:8px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-date-field.er-critical.er-empty .er-hint{
  color:#b91c1c !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-date-field.er-critical.is-filled .er-hint{
  color:#166534 !important;
}


/* 2.10.206 — visual refresh for admin "Новая запись" fields */
.er-record-create-form--admin{
  gap:16px;
}
.er-record-create-form--admin > .er-grid.er-grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px 18px;
  align-items:start;
}
.er-record-create-form--admin .er-field{
  display:flex;
  flex-direction:column;
  min-width:0;
  margin:0;
  padding:12px 12px 10px;
  border-radius:18px;
  border:1px solid rgba(226,232,240,.98);
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.er-record-create-form--admin .er-field:hover{
  border-color:rgba(148,163,184,.40);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.er-record-create-form--admin .er-field > label{
  display:flex;
  align-items:center;
  gap:4px;
  min-height:16px;
  margin:0 0 9px 2px;
  color:#334155;
  font-size:11px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.er-record-create-form--admin .er-field .er-req{ color:#e11d48; font-weight:900; }
.er-record-create-form--admin .er-field input,
.er-record-create-form--admin .er-field select,
.er-record-create-form--admin .er-field textarea{
  width:100%;
  margin:0;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.34);
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  font-size:14px;
  color:#0f172a;
  box-sizing:border-box;
}
.er-record-create-form--admin .er-field input,
.er-record-create-form--admin .er-field select{
  height:48px;
  min-height:48px;
  padding:0 14px;
}
.er-record-create-form--admin .er-field textarea{
  min-height:112px;
  padding:14px 16px;
  resize:vertical;
}
.er-record-create-form--admin .er-field input::placeholder,
.er-record-create-form--admin .er-field textarea::placeholder{ color:#94a3b8; }
.er-record-create-form--admin .er-field select{
  padding-right:40px;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, #64748b 50%),linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:calc(100% - 18px) calc(50% - 1px), calc(100% - 13px) calc(50% - 1px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.er-record-create-form--admin .er-field input:focus,
.er-record-create-form--admin .er-field select:focus,
.er-record-create-form--admin .er-field textarea:focus{
  outline:none;
  border-color:rgba(59,130,246,.45);
  box-shadow:0 0 0 4px rgba(59,130,246,.10);
}
.er-record-create-form--admin .er-field-required{
  border-color:rgba(244,63,94,.20);
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,241,242,.68) 100%);
}
.er-record-create-form--admin .er-field-required input,
.er-record-create-form--admin .er-field-required select{
  border-color:rgba(244,63,94,.28);
}
.er-record-create-form--admin .er-field-attn{
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
}
.er-record-create-form--admin .er-field-topline{
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(241,245,249,.95) 100%);
}
.er-record-create-form--admin .er-field.er-critical.is-filled{
  border-color:rgba(34,197,94,.22);
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(240,253,244,.86) 100%);
}
.er-record-create-form--admin .er-field.er-critical.is-filled input,
.er-record-create-form--admin .er-field.er-critical.is-filled select{
  border-color:rgba(34,197,94,.36);
  background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,253,244,.88) 100%);
}
.er-record-create-form--admin .er-field.er-critical.is-filled input:focus,
.er-record-create-form--admin .er-field.er-critical.is-filled select:focus{
  border-color:rgba(34,197,94,.46);
  box-shadow:0 0 0 4px rgba(34,197,94,.11);
}
.er-record-create-form--admin .er-field.er-field-contract-button-field,
.er-record-create-form--admin .er-field.er-record-contract-button-field{
  justify-content:flex-end;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.94) 100%);
}
.er-record-create-form--admin .er-field.er-field-wide{
  grid-column:1 / -1;
}
.er-record-create-form--admin .er-field.er-field-employee,
.er-record-create-form--admin .er-field.er-field-comment{
  padding-top:14px;
}
.er-record-create-form--admin .er-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:2px 2px 0;
}
.er-record-create-form--admin .er-actions .er-btn{
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  font-weight:800;
}
.er-record-create-form--admin .er-hotkeys-hint{
  font-size:12px;
  color:#64748b;
}
@media (max-width: 1180px){
  .er-record-create-form--admin > .er-grid.er-grid-3{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .er-record-create-form--admin .er-field.er-field-wide{
    grid-column:1 / -1;
  }
}
@media (max-width: 760px){
  .er-record-create-form--admin > .er-grid.er-grid-3{
    grid-template-columns:1fr;
    gap:12px;
  }
  .er-record-create-form--admin .er-field{
    padding:10px;
    border-radius:16px;
  }
  .er-record-create-form--admin .er-field input,
  .er-record-create-form--admin .er-field select{
    height:46px;
    min-height:46px;
  }
  .er-record-create-form--admin .er-actions .er-btn{
    flex:1 1 100%;
    width:100%;
  }
}


/* 2.10.207 — unified dropdowns and font sizes */
.er-field select,
.er-field-inline select,
.er-row-control select,
.er-row select,
.er-drawer .er-field select,
.er-filters-card .er-field select,
.er-sortbar-records .er-field select,
.er-mass-actions-card select,
select.er-input,
select[data-er-f]{
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:#0f172a !important;
  border-radius:14px !important;
  border:1px solid rgba(148,163,184,.34) !important;
  background-color:#fff !important;
  box-shadow:0 1px 2px rgba(15,23,42,.04) !important;
}
.er-field select,
.er-field-inline select,
.er-row-control select,
.er-row select,
.er-drawer .er-field select{
  min-height:46px !important;
  padding:0 42px 0 14px !important;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%) !important;
  background-position:calc(100% - 18px) calc(50% - 1px), calc(100% - 13px) calc(50% - 1px) !important;
  background-size:5px 5px, 5px 5px !important;
  background-repeat:no-repeat !important;
}
.er-field select:focus,
.er-field-inline select:focus,
.er-row-control select:focus,
.er-row select:focus,
.er-drawer .er-field select:focus,
select.er-input:focus,
select[data-er-f]:focus{
  outline:none !important;
  border-color:rgba(59,130,246,.45) !important;
  box-shadow:0 0 0 4px rgba(59,130,246,.10) !important;
}
.er-field select option,
.er-field-inline select option,
.er-row-control select option,
.er-row select option,
.er-drawer .er-field select option,
select.er-input option,
select[data-er-f] option{
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:600 !important;
  color:#0f172a !important;
}
.er-suggest,
.er-suggest--portal,
.er-suggest--record-edit{
  border:1px solid rgba(148,163,184,.28) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:0 20px 50px rgba(15,23,42,.16) !important;
  padding:6px !important;
  max-height:300px !important;
  overflow:auto !important;
}
.er-suggest-item,
.er-suggest--record-edit .er-suggest-item{
  display:block;
  padding:10px 12px !important;
  margin:2px 0;
  border:0 !important;
  border-radius:12px !important;
  cursor:pointer;
  font-size:14px !important;
  line-height:1.35 !important;
  color:#0f172a !important;
  transition:background .15s ease, transform .15s ease;
}
.er-suggest-item:last-child{ border-bottom:0 !important; }
.er-suggest-item:hover,
.er-suggest-item.is-active,
.er-suggest--record-edit .er-suggest-item:hover,
.er-suggest--record-edit .er-suggest-item.is-active{
  background:#eff6ff !important;
}
.er-suggest-item-main{
  display:block;
  font-size:14px;
  line-height:1.35;
  font-weight:800;
  color:#0f172a;
}
.er-suggest-item-sub{
  display:block;
  margin-top:4px;
  font-size:12.5px;
  line-height:1.3;
  font-weight:600;
  color:#64748b;
}
.er-record-create-form--admin .er-field > label,
.er-drawer .er-field > label,
.er-row-label,
.er-field-inline > label{
  font-size:12px !important;
}
@media (max-width: 760px){
  .er-suggest,
  .er-suggest--portal,
  .er-suggest--record-edit{
    max-height:240px !important;
  }
  .er-suggest-item,
  .er-suggest--record-edit .er-suggest-item{
    padding:9px 10px !important;
    font-size:13px !important;
  }
  .er-suggest-item-main{ font-size:13px; }
  .er-suggest-item-sub{ font-size:12px; }
}


/* 2.10.208 — modal typography and separated dropdown slots */
.er-drawer-title,
.er-modal-title{
  font-size:26px !important;
  line-height:1.12 !important;
  font-weight:900 !important;
  letter-spacing:-.02em !important;
  color:#0f172a !important;
}
.er-drawer .er-card,
.er-modal .er-card,
.er-drawer .er-section,
.er-modal .er-section{
  border-radius:20px !important;
}
.er-drawer .er-card h3,
.er-drawer .er-card-title,
.er-modal .er-card h3,
.er-modal .er-card-title,
.er-modal .er-form-rows .er-row-label,
.er-drawer .er-section-title,
.er-modal .er-section-title{
  font-size:14px !important;
  line-height:1.3 !important;
  font-weight:800 !important;
  color:#1e293b !important;
}
.er-drawer .er-field > label,
.er-modal .er-field > label,
.er-drawer .er-field label,
.er-modal .er-field label,
.er-drawer .er-field-inline > label,
.er-modal .er-field-inline > label,
.er-drawer .er-row-label,
.er-modal .er-row-label{
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#334155 !important;
  margin-bottom:7px !important;
}
.er-drawer .er-field small,
.er-modal .er-field small,
.er-drawer .er-help,
.er-modal .er-help,
.er-drawer .er-card p,
.er-modal .er-card p{
  font-size:12px !important;
  line-height:1.45 !important;
  color:#64748b !important;
}
.er-drawer input,
.er-drawer select,
.er-drawer textarea,
.er-modal input,
.er-modal select,
.er-modal textarea{
  font-size:14px !important;
  line-height:1.3 !important;
}
.er-drawer input,
.er-drawer select,
.er-modal input,
.er-modal select{
  min-height:44px !important;
  padding-top:10px !important;
  padding-bottom:10px !important;
}
.er-drawer textarea,
.er-modal textarea{
  min-height:96px !important;
}
.er-drawer .button,
.er-drawer button,
.er-modal .button,
.er-modal button{
  font-size:13px !important;
  font-weight:800 !important;
}
.er-suggest,
.er-suggest--portal,
.er-suggest--record-edit{
  padding:8px !important;
  border-radius:18px !important;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
.er-suggest-item,
.er-suggest--record-edit .er-suggest-item{
  background:#ffffff !important;
  border:1px solid rgba(203,213,225,.95) !important;
  box-shadow:0 6px 18px rgba(15,23,42,.06) !important;
  border-radius:14px !important;
  padding:11px 12px !important;
  margin:0 0 8px 0 !important;
}
.er-suggest-item:last-child,
.er-suggest--record-edit .er-suggest-item:last-child{
  margin-bottom:0 !important;
}
.er-suggest-item:hover,
.er-suggest-item.is-active,
.er-suggest--record-edit .er-suggest-item:hover,
.er-suggest--record-edit .er-suggest-item.is-active{
  background:linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-color:rgba(96,165,250,.9) !important;
  box-shadow:0 10px 22px rgba(59,130,246,.14) !important;
  transform:translateY(-1px);
}
.er-suggest-item-main{
  font-size:15px !important;
  line-height:1.35 !important;
  font-weight:900 !important;
  color:#0f172a !important;
}
.er-suggest-item-sub{
  margin-top:5px !important;
  font-size:12.5px !important;
  line-height:1.35 !important;
  color:#64748b !important;
}
@media (max-width: 1024px){
  .er-drawer-title,
  .er-modal-title{ font-size:22px !important; }
}
@media (max-width: 640px){
  .er-drawer-title,
  .er-modal-title{ font-size:19px !important; }
  .er-drawer .er-field > label,
  .er-modal .er-field > label,
  .er-drawer .er-field label,
  .er-modal .er-field label,
  .er-drawer .er-row-label,
  .er-modal .er-row-label{ font-size:12px !important; }
  .er-suggest-item,
  .er-suggest--record-edit .er-suggest-item{ padding:10px !important; }
  .er-suggest-item-main{ font-size:14px !important; }
}


/* 2.10.209 — agent dropdown always above every CRM window */
body > .er-suggest,
body > .er-suggest--portal,
body > .er-suggest--record-create,
body > .er-suggest--record-edit,
.er-suggest--portal,
.er-suggest--record-create,
.er-suggest--record-edit{
  position:fixed !important;
  z-index:2147483647 !important;
  isolation:isolate !important;
  pointer-events:auto !important;
}
body > .er-suggest--record-create,
body > .er-suggest--record-edit{
  max-height:min(360px, calc(100vh - 120px)) !important;
}
body > .er-suggest .er-suggest-item,
body > .er-suggest--portal .er-suggest-item{
  position:relative;
  z-index:1;
}
.er-drawer-backdrop,
.er-modal-backdrop{
  overflow:visible !important;
}


/* 2.10.212 — records footer total amount */
.er-pager-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.er-records-total-sum{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.er-records-total-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #d8e1ee;
  background:#f8fafc;
  color:#334155;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.er-records-total-chip strong{
  color:#0f172a;
  font-weight:950;
}
.er-records-total-chip.is-agent{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}
.er-records-total-chip.is-agent strong{color:#7c2d12;}
.er-records-total-chip.is-cash{
  background:#ecfdf5;
  border-color:rgba(34,197,94,.28);
  color:#166534;
}
.er-records-total-chip.is-cash strong{color:#14532d;}
.er-records-total-chip.is-total{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}
.er-records-total-chip.is-total strong{color:#1e3a8a;}
@media (max-width: 720px){
  .er-pager-left{align-items:flex-start;}
  .er-records-total-sum{width:100%; gap:6px;}
  .er-records-total-chip{flex:1 1 auto; justify-content:space-between;}
}

/* 2.10.217 — скрываем только визуальный ползунок бокового меню; прокрутка колёсиком сохраняется */
.er-sidebar,
.er-sidebar-portal,
.er-sidebar-portal .er-sidebar{
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.er-sidebar::-webkit-scrollbar,
.er-sidebar-portal::-webkit-scrollbar,
.er-sidebar-portal .er-sidebar::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* 2.10.223 — immutable CRM audit journal */
.er-alert{
  border:1px solid #cbd5e1;
  border-radius:14px;
  padding:12px 14px;
  background:#f8fafc;
  color:#334155;
  line-height:1.45;
}
.er-alert-info{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}
.er-alert-success{background:#ecfdf3;border-color:#bbf7d0;color:#166534}
.er-alert-warning{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.er-alert-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.er-badge-warning{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}


/* 2.10.230 — журнал CRM с потоковой выгрузкой */
.er-audit-shell{
  border:1px solid #dce4ef;
  border-radius:22px;
  background:#f5f7fb;
  padding:20px;
  box-shadow:0 10px 32px rgba(15,23,42,.06);
}
.er-audit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.er-audit-head h2{
  margin:3px 0 6px;
  font-size:26px;
  line-height:1.15;
  color:#162033;
}
.er-audit-head p{
  margin:0;
  max-width:840px;
  color:#64748b;
  line-height:1.5;
}
.er-audit-eyebrow{
  color:#2563eb;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.er-audit-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.er-audit-live{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 12px;
  border:1px solid #d8e2ef;
  border-radius:12px;
  background:#fff;
  color:#475569;
  font-size:13px;
  font-weight:700;
}
.er-audit-live i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 4px rgba(22,163,74,.12);
}
.er-audit-integrity{
  margin-bottom:14px;
}
.er-audit-integrity-card{
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid #dbe4ef;
  border-radius:14px;
  padding:11px 13px;
  background:#fff;
}
.er-audit-integrity-card.is-ok{border-color:#bbf7d0;background:#f0fdf4}
.er-audit-integrity-card.is-warn{border-color:#fed7aa;background:#fff7ed}
.er-audit-integrity-card.is-danger{border-color:#fecaca;background:#fef2f2}
.er-audit-integrity-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:50%;
  background:#e2e8f0;
  color:#334155;
  font-weight:900;
}
.er-audit-integrity-card.is-ok .er-audit-integrity-icon{background:#dcfce7;color:#166534}
.er-audit-integrity-card.is-warn .er-audit-integrity-icon{background:#ffedd5;color:#9a3412}
.er-audit-integrity-card.is-danger .er-audit-integrity-icon{background:#fee2e2;color:#991b1b}
.er-audit-integrity-card b{
  display:block;
  color:#253047;
  font-size:13px;
}
.er-audit-integrity-card small{
  display:block;
  margin-top:2px;
  color:#64748b;
  line-height:1.35;
}
.er-audit-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}
.er-audit-kpi{
  min-width:0;
  border:1px solid #dbe4ef;
  border-radius:16px;
  padding:13px 15px;
  background:#fff;
}
.er-audit-kpi span,
.er-audit-kpi small{
  display:block;
  color:#64748b;
  font-size:12px;
}
.er-audit-kpi strong{
  display:block;
  margin:3px 0 2px;
  color:#172033;
  font-size:26px;
  line-height:1;
}
.er-audit-kpi.is-danger strong{color:#dc2626}
.er-audit-kpi.is-warning strong{color:#d97706}
.er-audit-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.er-audit-ranges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.er-audit-ranges button,
.er-audit-tabs button{
  border:1px solid #d8e2ef;
  border-radius:10px;
  background:#fff;
  color:#475569;
  min-height:36px;
  padding:0 12px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}
.er-audit-ranges button:hover,
.er-audit-tabs button:hover{
  border-color:#93b4f6;
  color:#1d4ed8;
}
.er-audit-ranges button.is-active,
.er-audit-tabs button.is-active{
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
  box-shadow:0 5px 12px rgba(37,99,235,.18);
}
.er-audit-filter-card{
  border:1px solid #dbe4ef;
  border-radius:16px;
  padding:13px;
  background:#fff;
}
.er-audit-filter-main{
  display:grid;
  grid-template-columns:150px 150px minmax(260px,1fr) 180px 180px auto;
  gap:10px;
  align-items:end;
}
.er-audit-filter-main .er-field,
.er-audit-filter-advanced .er-field{
  margin:0;
  min-width:0;
}
.er-audit-filter-main label,
.er-audit-filter-advanced label{
  margin-bottom:5px;
  font-size:12px;
  font-weight:800;
  color:#475569;
}
.er-audit-filter-main input,
.er-audit-filter-main select,
.er-audit-filter-advanced input,
.er-audit-filter-advanced select{
  width:100%;
  min-height:40px;
  border-radius:10px;
}
.er-audit-search-field input{
  padding-left:12px;
}
.er-audit-apply{
  min-height:40px;
  white-space:nowrap;
}
.er-audit-filter-advanced{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr)) auto;
  gap:10px;
  align-items:end;
  margin-top:11px;
  padding-top:11px;
  border-top:1px dashed #d8e2ef;
}
.er-audit-filter-advanced[hidden]{
  display:none!important;
}
.er-audit-advanced-toggle.is-active{
  border-color:#2563eb!important;
  color:#1d4ed8!important;
}
.er-audit-tabs{
  display:flex;
  gap:8px;
  margin:14px 0 10px;
}
.er-audit-tabs button{
  min-height:38px;
}
.er-audit-panel[hidden]{
  display:none!important;
}
.er-audit-results{
  min-height:160px;
}
.er-audit-result-meta{
  margin:0 0 8px;
  color:#64748b;
  font-size:12px;
}
.er-audit-table-wrap{
  border:1px solid #dbe4ef;
  border-radius:14px;
  background:#fff;
  overflow:auto;
}
.er-audit-table{
  min-width:1050px;
  margin:0!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.er-audit-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#eef3f9!important;
  color:#3f4a5f!important;
  font-size:11px!important;
  text-transform:uppercase;
  letter-spacing:.025em;
  white-space:nowrap;
}
.er-audit-table th,
.er-audit-table td{
  padding:11px 12px!important;
  border-right:1px solid #e4eaf2!important;
  border-bottom:1px solid #e4eaf2!important;
  vertical-align:top!important;
}
.er-audit-table th:last-child,
.er-audit-table td:last-child{
  border-right:0!important;
}
.er-audit-table tbody tr:last-child td{
  border-bottom:0!important;
}
.er-audit-table tbody tr:hover td{
  background:#f8fbff;
}
.er-audit-table tbody tr.is-error td{
  background:#fff8f8;
}
.er-audit-time{
  width:155px;
  white-space:nowrap;
}
.er-audit-time b,
.er-audit-user b{
  display:block;
  color:#1f2937;
  font-size:12px;
}
.er-audit-time small,
.er-audit-user small,
.er-audit-cell-note{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-size:11px;
}
.er-audit-event{
  min-width:290px;
}
.er-audit-event-title{
  color:#172033;
  font-weight:800;
}
.er-audit-event-meta{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:5px 8px;
  margin-top:4px;
  color:#64748b;
  font-size:11px;
  line-height:1.35;
}
.er-audit-event-meta code{
  border:1px solid #dbe4ef;
  border-radius:6px;
  padding:1px 5px;
  background:#f8fafc;
  color:#475569;
  font-size:10px;
}
.er-audit-event-meta span{
  max-width:460px;
}
.er-audit-user{
  min-width:170px;
}
.er-audit-object,
.er-audit-source{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  border:1px solid #dbe4ef;
  border-radius:8px;
  padding:2px 8px;
  background:#f8fafc;
  color:#475569;
  font-size:11px;
  white-space:nowrap;
}
.er-audit-source{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}
.er-audit-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:26px;
  border:1px solid #dbe4ef;
  border-radius:999px;
  padding:2px 9px;
  background:#f8fafc;
  color:#475569;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.er-audit-status i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#94a3b8;
}
.er-audit-status.is-ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.er-audit-status.is-ok i{background:#16a34a}
.er-audit-status.is-warn{border-color:#fed7aa;background:#fff7ed;color:#9a3412}
.er-audit-status.is-warn i{background:#f59e0b}
.er-audit-status.is-danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.er-audit-status.is-danger i{background:#dc2626}
.er-audit-lock{
  display:inline-block;
  margin-left:6px;
  color:#94a3b8;
}
.er-audit-detail-cell{
  width:105px;
  text-align:right;
}
.er-audit-more-row{
  display:flex;
  justify-content:center;
  padding-top:12px;
}
.er-audit-more-row .er-btn{
  min-width:220px;
}
.er-audit-empty{
  display:flex;
  min-height:160px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#fff;
  color:#64748b;
  text-align:center;
}
.er-audit-empty b{
  color:#334155;
}
.er-audit-empty span{
  font-size:13px;
}
.er-audit-skeleton{
  display:grid;
  gap:9px;
  padding:12px;
  border:1px solid #dbe4ef;
  border-radius:14px;
  background:#fff;
}
.er-audit-skeleton span{
  height:42px;
  border-radius:9px;
  background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 50%,#eef2f7 75%);
  background-size:200% 100%;
  animation:erAuditPulse 1.2s linear infinite;
}
@keyframes erAuditPulse{
  from{background-position:200% 0}
  to{background-position:-200% 0}
}
.er-audit-error-card{
  display:flex;
  align-items:flex-start;
  gap:13px;
  border:1px solid #fecaca;
  border-radius:14px;
  padding:15px;
  background:#fff7f7;
  color:#7f1d1d;
}
.er-audit-error-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:#fee2e2;
  color:#b91c1c;
  font-size:20px;
  font-weight:900;
}
.er-audit-error-card b{
  display:block;
  margin-bottom:3px;
}
.er-audit-error-card p{
  margin:0 0 5px;
  color:#991b1b;
  line-height:1.45;
}
.er-audit-error-card small{
  display:block;
  margin-bottom:10px;
  color:#b45353;
}
.er-audit-deleted-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.er-audit-deleted-head h3{
  margin:0 0 3px;
  color:#172033;
}
.er-audit-deleted-head p{
  margin:0;
  color:#64748b;
}
.er-audit-deleted-table{
  min-width:980px;
}
.er-audit-json{
  white-space:pre-wrap;
  word-break:break-word;
  max-height:300px;
  overflow:auto;
  margin:8px 0 0;
  padding:10px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
  color:#334155;
  font-size:12px;
  line-height:1.45;
}

@media (max-width:1450px){
  .er-audit-filter-main{
    grid-template-columns:140px 140px minmax(240px,1fr) 160px 160px auto;
  }
}
@media (max-width:1200px){
  .er-audit-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .er-audit-filter-main{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .er-audit-search-field{
    grid-column:span 2;
  }
  .er-audit-filter-advanced{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:700px){
  .er-audit-shell{
    padding:13px;
    border-radius:16px;
  }
  .er-audit-head,
  .er-audit-toolbar,
  .er-audit-deleted-head{
    flex-direction:column;
    align-items:stretch;
  }
  .er-audit-head-actions{
    justify-content:space-between;
  }
  .er-audit-kpis,
  .er-audit-filter-main,
  .er-audit-filter-advanced{
    grid-template-columns:1fr;
  }
  .er-audit-search-field{
    grid-column:auto;
  }
  .er-audit-ranges{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .er-audit-ranges button{
    width:100%;
  }
  .er-audit-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

/* 2.10.233 — agents report: previous-period debt column */
@media (min-width: 701px){
  .er-agents-report-table-wrap table.er-table{
    min-width: 1240px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(1),
  .er-agents-report-table-wrap .er-table td:nth-child(1){
    width: 7.5% !important;
    min-width: 82px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(2),
  .er-agents-report-table-wrap .er-table td:nth-child(2){
    width: 10% !important;
    min-width: 105px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(3),
  .er-agents-report-table-wrap .er-table td:nth-child(3){
    width: 4.5% !important;
    min-width: 50px !important;
    text-align: center !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(4),
  .er-agents-report-table-wrap .er-table td:nth-child(4){
    width: 8% !important;
    min-width: 94px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(5),
  .er-agents-report-table-wrap .er-table td:nth-child(5){
    width: 10% !important;
    min-width: 132px !important;
    white-space: normal !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(6),
  .er-agents-report-table-wrap .er-table td:nth-child(6){
    width: 8% !important;
    min-width: 94px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(7),
  .er-agents-report-table-wrap .er-table td:nth-child(7){
    width: 11% !important;
    min-width: 120px !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(8),
  .er-agents-report-table-wrap .er-table td:nth-child(8){
    width: 15% !important;
    min-width: 180px !important;
    max-width: 320px !important;
    white-space: normal !important;
  }

  .er-agents-report-table-wrap .er-table th:nth-child(9),
  .er-agents-report-table-wrap .er-table td:nth-child(9),
  .er-agent-report-pay-th,
  .er-agent-report-pay-cell{
    width: 26% !important;
    min-width: 248px !important;
    max-width: none !important;
  }
}

/* 2.12.0 — independent finance core health */
.er-finance-health{display:flex;align-items:center;gap:10px;margin:12px 0;padding:11px 14px;border:1px solid #dbe5f2;border-radius:12px;background:#f7faff;color:#243247}
.er-finance-health>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:800;background:#dbeafe;color:#1d4ed8;flex:0 0 28px}
.er-finance-health div{display:flex;flex-direction:column;gap:2px;min-width:0}
.er-finance-health strong{font-size:13px;line-height:1.25}
.er-finance-health small{font-size:11px;line-height:1.35;color:#64748b}
.er-finance-health[data-state="ok"]{border-color:#bbf7d0;background:#f0fdf4}.er-finance-health[data-state="ok"]>span{background:#dcfce7;color:#15803d}
.er-finance-health[data-state="warning"]{border-color:#fde68a;background:#fffbeb}.er-finance-health[data-state="warning"]>span{background:#fef3c7;color:#b45309}
.er-finance-health[data-state="error"]{border-color:#fecaca;background:#fef2f2}.er-finance-health[data-state="error"]>span{background:#fee2e2;color:#b91c1c}
.er-finance-health__actions{margin-left:auto;display:flex!important;flex-direction:row!important;gap:7px!important;flex:0 0 auto}
@media(max-width:760px){.er-finance-health{align-items:flex-start;flex-wrap:wrap}.er-finance-health__actions{width:100%;margin-left:38px;flex-wrap:wrap}}
.er-finance-errors-list{display:grid;gap:10px}.er-finance-error-card{border:1px solid #fde68a;border-left:4px solid #d97706;border-radius:10px;padding:12px;background:#fffbeb}.er-finance-error-card.is-critical{border-color:#fecaca;border-left-color:#dc2626;background:#fef2f2}.er-finance-error-card__head{display:flex;justify-content:space-between;gap:12px;align-items:center}.er-finance-error-card__head span{font-size:11px;font-weight:700}.er-finance-error-card__meta{margin-top:4px;font-size:11px;color:#64748b}.er-finance-error-card__values{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;font-size:12px}.er-finance-error-card pre{white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto;margin:10px 0 0;padding:9px;border-radius:8px;background:rgba(15,23,42,.05);font-size:11px}


/* 2.12.1 — единая касса филиала, компактная история и стабильный скролл */
.er-cash-unified-page{display:grid;gap:16px}.er-cash-unified-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.er-cash-unified-kpi{display:flex;flex-direction:column;gap:5px;padding:17px 18px;border:1px solid #e2e8f0;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}.er-cash-unified-kpi span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.er-cash-unified-kpi strong{font-size:24px;line-height:1.15;color:#172033}.er-cash-unified-kpi small{color:#64748b}.er-cash-unified-kpi.is-primary{background:linear-gradient(135deg,#eef5ff,#fff);border-color:#bfd4ff}
.er-cash-unified-selector,.er-cash-unified-account,.er-cash-month-staff{padding:18px;border:1px solid #dde6f1;border-radius:17px;background:#fff}.er-cash-unified-section-head span,.er-cash-unified-account__head>div>span{display:inline-flex;margin-bottom:5px;padding:4px 8px;border-radius:999px;background:#eaf1ff;color:#1d4ed8;font-size:10px;font-weight:900;text-transform:uppercase}.er-cash-unified-section-head h3,.er-cash-unified-account h3{margin:0;font-size:18px}.er-cash-unified-section-head p,.er-cash-unified-account p{margin:5px 0 0;color:#64748b}
.er-cash-unified-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.er-cash-unified-branch{position:relative;display:grid;gap:5px;text-align:left;padding:14px 42px 14px 14px;border:1px solid #dce4ee;border-radius:13px;background:#fff;cursor:pointer}.er-cash-unified-branch:hover{border-color:#9fbdf8}.er-cash-unified-branch.is-active{border:2px solid #3978ed;background:#f4f8ff}.er-cash-unified-branch span{font-weight:800;color:#172033}.er-cash-unified-branch strong{font-size:17px;color:#b45309}.er-cash-unified-branch i{position:absolute;right:13px;top:50%;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#3978ed;color:#fff;transform:translateY(-50%);font-style:normal}
.er-cash-unified-account__head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.er-cash-unified-account__balance{text-align:right;display:grid;gap:3px}.er-cash-unified-account__balance>span{font-size:11px;font-weight:800;text-transform:uppercase;color:#64748b}.er-cash-unified-account__balance strong{font-size:29px;color:#172033}.er-cash-unified-account__balance small{color:#64748b}.er-cash-unified-transfer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:15px;border-radius:14px;background:#f6f9fe;border:1px solid #dce7f8}.er-cash-unified-transfer__copy{display:grid;gap:3px}.er-cash-unified-transfer__copy span{color:#64748b}.er-cash-unified-transfer__form{display:flex;gap:8px;align-items:center}.er-cash-unified-transfer__form input{width:180px;min-height:42px}.er-cash-unified-account__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.er-cash-month-employees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.er-cash-month-employee{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfcfe}.er-cash-month-employee>div:first-child{display:grid;gap:3px}.er-cash-month-employee span{font-size:10px;font-weight:800;text-transform:uppercase;color:#94a3b8}.er-cash-month-employee__money{text-align:right;display:grid;gap:2px}.er-cash-month-employee__money strong{font-size:17px;color:#b45309}.er-cash-month-employee__money small{color:#64748b}.er-cash-month-empty{padding:16px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b}
.er-cash-history-flow{display:grid;gap:4px;min-width:160px}.er-cash-history-flow span{font-weight:750}.er-cash-history-flow .is-income{color:#15803d}.er-cash-history-flow .is-expense{color:#b91c1c}.er-cash-history-flow strong{font-size:11px;color:#475569}.er-cash-breakdown-summary--compact{grid-template-columns:repeat(3,minmax(0,1fr))}.er-cash-breakdown-operation{display:grid;gap:3px;min-width:220px}.er-cash-breakdown-operation small{color:#64748b;white-space:normal}.er-cash-breakdown-no-action{color:#94a3b8}.er-table-empty{text-align:center!important;color:#64748b!important;padding:18px!important}
.er-suggest--record-create,.er-suggest--record-edit{overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable;max-height:min(300px,calc(100dvh - 24px))!important}.er-suggest--record-create .er-suggest-item,.er-suggest--record-edit .er-suggest-item{padding:9px 11px!important;margin:0 0 4px!important;min-height:0!important}.er-suggest.is-opening-up{transform-origin:bottom center}
.er-sidebar,.er-sidebar-portal,.er-sidebar-portal .er-sidebar{scrollbar-width:none!important;scrollbar-color:transparent transparent!important}.er-sidebar::-webkit-scrollbar,.er-sidebar-portal::-webkit-scrollbar,.er-sidebar-portal .er-sidebar::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
@media(max-width:980px){body:not(.er-mobile-menu-open)>.er-sidebar-portal{visibility:hidden!important;overflow:hidden!important;pointer-events:none!important}body:not(.er-mobile-menu-open)>.er-sidebar-portal .er-sidebar{visibility:hidden!important;overflow:hidden!important;pointer-events:none!important}body.er-mobile-menu-open>.er-sidebar-portal{visibility:visible!important;pointer-events:auto!important}body.er-mobile-menu-open>.er-sidebar-portal .er-sidebar{visibility:visible!important;overflow-y:auto!important;pointer-events:auto!important}}
@media(min-width:981px){body>.er-sidebar-portal{display:none!important}.er-sidebar{transform:none!important}}
@media(max-width:900px){.er-cash-unified-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.er-cash-unified-branches{grid-template-columns:1fr}.er-cash-unified-account__head,.er-cash-unified-transfer{flex-direction:column}.er-cash-unified-account__balance{text-align:left}.er-cash-unified-transfer__form{width:100%;flex-wrap:wrap}.er-cash-unified-transfer__form input{width:100%}.er-cash-month-employees{grid-template-columns:1fr}}
@media(max-width:560px){.er-cash-unified-kpis{grid-template-columns:1fr}.er-cash-breakdown-summary--compact{grid-template-columns:1fr}}


/* 2.12.2 — portal dropdown lifecycle guard */
body > .er-suggest--portal:not(.is-open){
  display:none !important;
  pointer-events:none !important;
}
body > .er-suggest--portal.is-open{
  display:block;
  pointer-events:auto !important;
}


/* 2.12.3 — normal cash history header */
.er-cash-history-hero{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding:16px 18px !important;
  margin:0 0 12px !important;
  border-radius:20px !important;
  border:1px solid rgba(191,219,254,.78) !important;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%) !important;
  box-shadow:0 14px 34px rgba(37,99,235,.08) !important;
}
.er-cash-history-hero__content{
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
  min-width:0 !important;
}
.er-cash-history-hero__eyebrow{
  display:inline-flex !important;
  align-items:center !important;
  align-self:flex-start !important;
  min-height:24px !important;
  padding:4px 10px !important;
  border-radius:999px !important;
  background:#dbeafe !important;
  color:#1d4ed8 !important;
  font-size:11px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
}
.er-cash-history-hero h3{
  margin:0 !important;
  font-size:28px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  color:#0f172a !important;
}
.er-cash-history-hero p{
  margin:0 !important;
  max-width:760px !important;
  font-size:14px !important;
  line-height:1.5 !important;
  color:#475569 !important;
}
.er-cash-history-hero__meta{
  flex:0 0 320px !important;
  max-width:360px !important;
  padding:12px 14px !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.82) !important;
  border:1px solid rgba(191,219,254,.9) !important;
  color:#334155 !important;
  font-size:13px !important;
  line-height:1.45 !important;
  font-weight:700 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85) !important;
}
.er-cash-history-filter-head{
  margin-bottom:10px !important;
}
.er-cash-history-filter-head b{
  font-size:16px !important;
  line-height:1.2 !important;
}
.er-cash-history-filter-head span{
  display:block !important;
  margin-top:4px !important;
}
@media (max-width:1100px){
  .er-cash-history-hero{
    flex-direction:column !important;
  }
  .er-cash-history-hero__meta{
    flex:1 1 auto !important;
    max-width:none !important;
    width:100% !important;
  }
}
@media (max-width:760px){
  .er-cash-history-hero{
    padding:14px !important;
    border-radius:18px !important;
  }
  .er-cash-history-hero h3{
    font-size:24px !important;
  }
  .er-cash-history-hero p,
  .er-cash-history-hero__meta{
    font-size:13px !important;
  }
}

/* 2.14.0 — full CRM backup to Yandex Disk */
.er-settings-pro .er-full-backup-panel{
  margin-top:18px;
  padding:20px;
  border:1px solid rgba(37,99,235,.18);
  border-radius:24px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  box-shadow:0 14px 34px rgba(37,99,235,.07);
}
.er-settings-pro .er-full-backup-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.er-settings-pro .er-full-backup-warning{
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid rgba(245,158,11,.26);
  border-radius:15px;
  background:#fffbeb;
  color:#92400e;
  font-size:13px;
  line-height:1.45;
  font-weight:700;
}
.er-settings-pro .er-full-backup-grid{
  margin-top:0;
}
.er-settings-pro .er-full-backup-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.er-settings-pro .er-full-backup-diagnostics{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(148,163,184,.3);
  border-radius:18px;
  background:#fff;
}
.er-settings-pro .er-full-backup-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.er-settings-pro .er-full-backup-status-grid>div{
  min-height:68px;
  padding:11px 12px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:14px;
  background:#f8fafc;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
}
.er-settings-pro .er-full-backup-status-grid>div>span:first-child{
  color:#64748b;
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.er-settings-pro .er-full-backup-status-grid b{
  max-width:100%;
  overflow-wrap:anywhere;
  color:#0f172a;
}
.er-settings-pro .er-full-backup-error{
  margin-top:12px;
}
.er-settings-pro .er-full-backup-files{
  margin-top:14px;
}
.er-settings-pro .er-full-backup-files__title{
  margin-bottom:8px;
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}
.er-settings-pro .er-full-backup-file{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  padding:9px 10px;
  border-top:1px solid #edf2f7;
  font-size:12px;
}
.er-settings-pro .er-full-backup-file span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#334155;
  font-weight:800;
}
.er-settings-pro .er-full-backup-file b{color:#0f172a;white-space:nowrap}
.er-settings-pro .er-full-backup-file em{font-style:normal;color:#64748b;white-space:nowrap}
.er-settings-pro .er-full-backup-empty{
  padding:12px;
  border:1px dashed rgba(148,163,184,.55);
  border-radius:12px;
  color:#64748b;
  font-size:13px;
}
@media(max-width:1200px){
  .er-settings-pro .er-full-backup-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .er-settings-pro .er-full-backup-panel{padding:15px;border-radius:19px}
  .er-settings-pro .er-full-backup-panel__head{flex-direction:column}
  .er-settings-pro .er-full-backup-status-grid{grid-template-columns:1fr}
  .er-settings-pro .er-full-backup-actions .er-btn{width:100%}
  .er-settings-pro .er-full-backup-file{grid-template-columns:1fr auto}
  .er-settings-pro .er-full-backup-file em{grid-column:1/-1}
}
.er-settings-pro .er-full-backup-file{grid-template-columns:minmax(0,1fr) auto auto auto}
@media(max-width:760px){
  .er-settings-pro .er-full-backup-file{grid-template-columns:minmax(0,1fr) auto}
  .er-settings-pro .er-full-backup-file em{grid-column:1/2}
  .er-settings-pro .er-full-backup-file .er-btn{grid-column:2/3;grid-row:2/3}
}

/* 2.14.0 — password controls for full backup */

.er-settings-pro .er-full-backup-password-field .er-token-eye{
  top:34px;
  bottom:auto;
}
.er-settings-pro .er-settings-inline-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:9px;
  color:#475569;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  cursor:pointer;
}
.er-settings-pro .er-settings-inline-check input{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  padding:0!important;
}


.er-settings-pro .er-full-backup-enable{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  color:#334155;
  font-size:12px;
}
.er-settings-pro .er-full-backup-enable b{
  white-space:nowrap;
}


/* 2.14.1 — settings loader recovery */
.er-settings-load-error{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:8px !important;
  padding:16px !important;
  border:1px solid rgba(239,68,68,.28) !important;
  border-radius:16px !important;
  background:#fff7f7 !important;
  color:#7f1d1d !important;
}
.er-settings-load-error b{
  font-size:15px !important;
  line-height:1.3 !important;
}
.er-settings-load-error span{
  color:#991b1b !important;
  font-size:13px !important;
  line-height:1.45 !important;
}
.er-settings-load-error .er-btn{
  margin-top:2px !important;
}

/* 2.14.2 — PDF diagnostics stored on Yandex Disk */
.er-record-pdf-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.er-record-pdf-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:14px;
  background:#f8fafc;
}
.er-record-pdf-row__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#fee2e2;
  color:#b91c1c;
  font-size:12px;
  font-weight:900;
}
.er-record-pdf-row__body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.er-record-pdf-row__body b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#0f172a;
}
.er-record-pdf-row__body span{
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
.er-record-pdf-row__actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.er-record-pdf-upload{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:12px;
  border:1px dashed rgba(59,130,246,.45);
  border-radius:14px;
  background:#eff6ff;
}
.er-record-pdf-upload input[type="file"]{
  width:100%;
  min-width:0;
}
.er-record-pdf-upload .er-muted{
  grid-column:1/-1;
  font-size:12px;
}
@media (max-width:760px){
  .er-record-pdf-row{
    grid-template-columns:auto minmax(0,1fr);
  }
  .er-record-pdf-row__actions{
    grid-column:1/-1;
    justify-content:flex-start;
  }
  .er-record-pdf-upload{
    grid-template-columns:1fr;
  }
  .er-record-pdf-upload .er-btn{
    width:100%;
  }
}


/* 2.14.2 — fixed archive structure and encryption compatibility */
.er-settings-pro input[name="yadisk_path_pattern"][readonly],
.er-settings-pro input[name="yadisk_root_folder"][readonly]{
  background:#f8fafc !important;
  color:#334155 !important;
  cursor:default !important;
}
.er-full-backup-compat-note{
  grid-column:1/-1;
  padding:10px 12px;
  border:1px solid rgba(245,158,11,.35);
  border-radius:12px;
  background:#fffbeb;
  color:#92400e;
  font-size:12px;
  line-height:1.45;
  font-weight:700;
}

/* 2.14.3 — быстрый PDF ДК в таблице записей и при создании записи */
.er-table th.er-col-pdf,
.er-table td.er-col-pdf{
  width:72px !important;
  min-width:72px !important;
  max-width:72px !important;
  text-align:center !important;
  vertical-align:middle !important;
}
.er-record-pdf-quick-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}
.er-record-pdf-quick{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  min-width:38px;
  max-width:38px;
  padding:0 !important;
  overflow:hidden;
  white-space:nowrap;
  border-radius:12px;
  border:1px solid transparent;
  color:#fff;
  font:900 20px/1 Arial,sans-serif;
  cursor:pointer;
  box-sizing:border-box;
  box-shadow:0 7px 16px rgba(15,23,42,.15);
  transition:transform .12s ease,box-shadow .12s ease,filter .12s ease;
}
.er-record-pdf-quick:hover:not(:disabled){
  transform:translateY(-1px) scale(1.04);
  box-shadow:0 10px 20px rgba(15,23,42,.20);
  filter:brightness(1.03);
}
.er-record-pdf-quick:active:not(:disabled){transform:translateY(0) scale(.97);}
.er-record-pdf-quick.is-missing{
  background:linear-gradient(180deg,#ef4444 0%,#dc2626 100%);
  border-color:#b91c1c;
}
.er-record-pdf-quick.is-ready{
  background:linear-gradient(180deg,#22c55e 0%,#16a34a 100%);
  border-color:#15803d;
}
.er-record-pdf-quick:disabled{
  cursor:not-allowed;
  opacity:.45;
  box-shadow:none;
}
.er-record-pdf-quick > .er-record-pdf-quick-label{
  display:block;
  max-width:100%;
  overflow:hidden;
  line-height:1;
  transform:translateY(-1px);
}
.er-record-pdf-quick.is-ready > .er-record-pdf-quick-label{
  font:900 10px/1 Arial,sans-serif;
  letter-spacing:.2px;
  transform:none;
}
.er-record-pdf-quick.is-loading > .er-record-pdf-quick-label,
.er-record-pdf-quick.is-loading > em{
  visibility:hidden;
}
.er-record-pdf-quick.is-loading::after{
  content:"";
  position:absolute;
  width:15px;
  height:15px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  border-radius:50%;
  animation:er-record-pdf-spin .75s linear infinite;
}
@keyframes er-record-pdf-spin{to{transform:rotate(360deg)}}
.er-record-pdf-quick > em{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font:900 10px/16px Arial,sans-serif;
  font-style:normal;
}

.er-record-create-pdf-box{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  margin:14px 0 4px;
  padding:13px 14px;
  border:1px solid rgba(239,68,68,.38);
  border-radius:16px;
  background:linear-gradient(180deg,#fffafa 0%,#fff 100%);
  box-shadow:0 7px 20px rgba(15,23,42,.05);
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.er-record-create-pdf-box.is-ready{
  border-color:rgba(34,197,94,.45);
  background:linear-gradient(180deg,#f0fdf4 0%,#fff 100%);
  box-shadow:0 7px 20px rgba(22,163,74,.08);
}
.er-record-create-pdf-box__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:13px;
  background:#fee2e2;
  color:#b91c1c;
  font-size:12px;
  font-weight:950;
  letter-spacing:.04em;
}
.er-record-create-pdf-box.is-ready .er-record-create-pdf-box__icon{
  background:#dcfce7;
  color:#15803d;
}
.er-record-create-pdf-box__body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.er-record-create-pdf-box__body b{
  color:#0f172a;
  font-size:14px;
  line-height:1.25;
}
.er-record-create-pdf-box__body span{
  overflow:hidden;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.er-record-create-pdf-box__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

[data-er-modal="actions"].er-modal-record-pdf-viewer .er-modal{
  width:min(1240px,calc(100vw - 28px)) !important;
  max-width:calc(100vw - 28px) !important;
  height:calc(100vh - 70px) !important;
  height:calc(100dvh - 70px) !important;
  max-height:calc(100vh - 70px) !important;
  max-height:calc(100dvh - 70px) !important;
}
[data-er-modal="actions"].er-modal-record-pdf-viewer .er-modal-body{
  display:flex !important;
  padding:0 !important;
  overflow:hidden !important;
}
.er-record-pdf-viewer{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  flex-direction:column;
  background:#e2e8f0;
}
.er-record-pdf-viewer__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid #cbd5e1;
  background:#fff;
}
.er-record-pdf-viewer__bar > div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}
.er-record-pdf-viewer__bar b{
  overflow:hidden;
  color:#0f172a;
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.er-record-pdf-viewer__bar span{
  color:#64748b;
  font-size:11px;
}
.er-record-pdf-viewer__frame{
  display:block;
  flex:1 1 auto;
  width:100%;
  min-height:0;
  border:0;
  background:#fff;
}

@media (max-width:760px){
  .er-record-create-pdf-box{
    grid-template-columns:auto minmax(0,1fr);
  }
  .er-record-create-pdf-box__actions{
    grid-column:1 / -1;
    justify-content:stretch;
  }
  .er-record-create-pdf-box__actions .er-btn{
    flex:1 1 auto;
  }
  .er-record-pdf-viewer__bar{
    align-items:flex-start;
    flex-direction:column;
  }
  [data-er-modal="actions"].er-modal-record-pdf-viewer .er-modal{
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
    height:calc(100dvh - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}


/* 2.14.4 — компактная таблица записей и PDF ДК справа */
.er-table-records th.er-col-id-dk,
.er-table-records td.er-record-id-dk{
  width:92px !important;
  min-width:92px !important;
  white-space:nowrap !important;
}
.er-record-id-dk{
  vertical-align:middle !important;
}
.er-record-id-dk strong{
  display:block;
  color:#0f172a;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
}
.er-record-id-dk span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:11px;
  line-height:1.2;
}
.er-record-id-dk span b{
  color:#475569;
  font-weight:800;
}
.er-table-records th.er-col-branch-employee,
.er-table-records td.er-record-branch-employee{
  min-width:158px !important;
  max-width:210px !important;
}
.er-record-branch-employee .er-branch-tag{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
}
.er-record-branch-employee .er-branch-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.er-record-branch-employee .er-muted{
  flex:0 0 auto;
  margin:0 !important;
  white-space:nowrap;
}
.er-record-employee-line{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  margin-top:7px;
  color:#334155;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.er-record-employee-line span{
  flex:0 0 auto;
  color:#7c3aed;
  font-size:8px;
}
.er-table-records th.er-col-agent-pay,
.er-table-records td.er-record-agent-pay{
  min-width:112px !important;
  max-width:150px !important;
}
.er-record-agent-pay code{
  display:block;
  width:max-content;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#0f172a;
  font-size:12px;
  font-weight:900;
}
.er-record-agent-pay span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
}
.er-table-records td.er-record-agent-pay.is-payment-mismatch{
  background:#fff4dc !important;
  border-left:3px solid #f59e0b !important;
  box-shadow:inset 0 0 0 1px rgba(245,158,11,.24);
}
.er-record-agent-pay.is-payment-mismatch .er-record-payment-current{
  color:#9a3412;
  font-weight:900;
}
.er-record-payment-mismatch{
  display:flex !important;
  flex-direction:column;
  gap:2px;
  margin-top:6px !important;
  padding:5px 6px;
  border:1px solid rgba(220,38,38,.28);
  border-radius:8px;
  background:#fff;
  color:#b91c1c !important;
  font-size:10px !important;
  line-height:1.15 !important;
}
.er-record-payment-mismatch b{
  color:#b91c1c;
  font-size:10px;
  font-weight:900;
}
.er-record-payment-mismatch small{
  color:#7c2d12;
  font-size:9px;
  font-weight:800;
}
.er-records-live-status{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  margin-left:auto;
  padding:4px 9px;
  border:1px solid rgba(16,185,129,.25);
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.er-records-live-status.is-offline{
  border-color:rgba(245,158,11,.35);
  background:#fffbeb;
  color:#92400e;
}
.er-table-records tbody tr.er-record-live-new td{
  animation:er-record-live-new-pulse 4.5s ease-out;
}
@keyframes er-record-live-new-pulse{
  0%,20%{background:#d1fae5 !important;box-shadow:inset 0 0 0 2px rgba(16,185,129,.38)}
  100%{box-shadow:inset 0 0 0 0 rgba(16,185,129,0)}
}
.er-table-records th.er-col-pdf,
.er-table-records td.er-col-pdf{
  position:sticky;
  right:0;
  z-index:3;
  background:#f8fafc !important;
  border-left:1px solid rgba(148,163,184,.35) !important;
  box-shadow:-8px 0 16px rgba(15,23,42,.05);
}
.er-table-records tbody tr:nth-child(odd) td.er-col-pdf{
  background:#fff !important;
}
.er-table-records tbody tr:nth-child(even) td.er-col-pdf{
  background:#f8fafc !important;
}
.er-table-records tr.er-record-pending td.er-col-pdf{
  background:#fff7e6 !important;
}
.er-record-pdf-quick{
  text-decoration:none !important;
}
.er-record-pdf-quick.is-ready{
  cursor:pointer;
}
@media (max-width:900px){
  .er-table-records th.er-col-pdf,
  .er-table-records td.er-col-pdf{
    position:static;
    box-shadow:none;
  }
}


/* 2.14.5 — объединённый столбец «Статус / действие» */
.er-table-records th.er-col-status-action,
.er-table-records td.er-record-status-action{
  min-width:148px !important;
  width:148px !important;
  max-width:176px !important;
  vertical-align:middle !important;
}
.er-record-status-action{
  text-align:left !important;
}
.er-record-status-action__status{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:0;
}
.er-record-status-action__status .er-status{
  max-width:100%;
  white-space:normal;
  line-height:1.2;
}
.er-record-status-action__status .er-status-sub{
  margin:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.er-record-status-action__controls{
  display:flex !important;
  justify-content:flex-start !important;
  margin-top:8px !important;
}
.er-record-status-action__controls .er-link-confirm{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:30px !important;
  width:auto !important;
  max-width:100% !important;
  padding:6px 10px !important;
  border-radius:10px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:center !important;
}
.er-record-status-action__result{
  display:inline-flex !important;
  margin-top:7px !important;
}
@media (max-width:900px){
  .er-table-records th.er-col-status-action,
  .er-table-records td.er-record-status-action{
    min-width:136px !important;
    width:136px !important;
  }
}

/* 2.15.0 — centralized FOTOTO mobile integrations */
.er-mobile-integrations-panel{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(148,163,184,.32);
  border-radius:20px;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.er-mobile-integrations-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(226,232,240,.94);
}
.er-mobile-integrations-panel__head > div:first-child{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.er-mobile-integrations-panel__head b{
  font-size:17px;
  line-height:1.25;
  color:#0f172a;
}
.er-mobile-integrations-panel__head span{
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.er-mobile-revision{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:13px;
  border:1px solid rgba(147,197,253,.72);
  background:#eff6ff;
  color:#1e3a8a;
  font-size:12px;
  font-weight:800;
}
.er-mobile-revision strong{font-size:14px;}
.er-mobile-revision small{font-size:11px;color:#64748b;font-weight:600;}
.er-mobile-integrations-panel .er-settings-actions-inline{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 0;
}
.er-mobile-chat-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);
  gap:16px;
  align-items:start;
}
.er-mobile-chat-layout section{
  min-width:0;
  padding:14px;
  border-radius:17px;
  border:1px solid rgba(203,213,225,.84);
  background:#fff;
}
.er-mobile-chat-layout h4{
  margin:0 0 12px;
  font-size:14px;
  line-height:1.25;
  color:#0f172a;
}
.er-mobile-chat-card{
  padding:14px;
  margin-bottom:10px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:16px;
  background:#fbfdff;
  box-shadow:0 5px 16px rgba(15,23,42,.04);
}
.er-mobile-chat-card:last-child{margin-bottom:0;}
.er-mobile-chat-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.er-mobile-chat-card__top > div:first-child{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.er-mobile-chat-card__top b{
  font-size:14px;
  color:#0f172a;
  overflow-wrap:anywhere;
}
.er-mobile-chat-card__top code{
  width:max-content;
  max-width:100%;
  overflow-wrap:anywhere;
  color:#475569;
  background:#f1f5f9;
  padding:3px 7px;
  border-radius:8px;
}
.er-mobile-chat-card__badges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.er-mobile-chat-card__badges span,
.er-mobile-chat-card__badges strong,
.er-mobile-chat-card__badges em{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-style:normal;
  font-weight:800;
}
.er-mobile-chat-card__badges span{background:#f1f5f9;color:#475569;}
.er-mobile-chat-card__badges strong{background:#dbeafe;color:#1d4ed8;}
.er-mobile-chat-card__badges em.is-on{background:#dcfce7;color:#166534;}
.er-mobile-chat-card__badges em.is-off{background:#fee2e2;color:#991b1b;}
.er-mobile-chat-card__fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px auto;
  gap:10px;
  align-items:end;
}
.er-mobile-chat-card__fields label{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.er-mobile-chat-card__fields label > span{
  font-size:11px;
  font-weight:800;
  color:#64748b;
}
.er-mobile-chat-card__fields input[type="text"],
.er-mobile-chat-card__fields input[type="number"]{
  width:100%;
  min-height:38px;
}
.er-mobile-chat-card__fields .er-mobile-chat-enabled{
  min-height:38px;
  flex-direction:row;
  align-items:center;
  padding:8px 10px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:12px;
  background:#fff;
}
.er-mobile-chat-card__fields .er-mobile-chat-enabled input{margin:0;}
.er-mobile-chat-card__actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:11px;
}
.er-mobile-chat-candidate{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px;
  margin-bottom:8px;
  border:1px solid rgba(191,219,254,.86);
  border-radius:14px;
  background:#f8fbff;
}
.er-mobile-chat-candidate:last-child{margin-bottom:0;}
.er-mobile-chat-candidate > div{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.er-mobile-chat-candidate b{font-size:13px;color:#0f172a;overflow-wrap:anywhere;}
.er-mobile-chat-candidate span{font-size:11px;color:#475569;overflow-wrap:anywhere;}
.er-mobile-chat-candidate small{font-size:11px;color:#64748b;overflow-wrap:anywhere;}
.er-max-chats-empty{
  padding:14px;
  border:1px dashed rgba(148,163,184,.7);
  border-radius:14px;
  background:#f8fafc;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
@media (max-width:1180px){
  .er-mobile-chat-layout{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .er-mobile-integrations-panel{padding:13px;border-radius:17px;}
  .er-mobile-integrations-panel__head{flex-direction:column;}
  .er-mobile-revision{width:100%;justify-content:center;flex-wrap:wrap;}
  .er-mobile-chat-card__top{flex-direction:column;}
  .er-mobile-chat-card__badges{justify-content:flex-start;}
  .er-mobile-chat-card__fields{grid-template-columns:1fr;}
  .er-mobile-chat-card__actions .er-btn{width:100%;}
  .er-mobile-chat-candidate{align-items:flex-start;flex-direction:column;}
  .er-mobile-chat-candidate .er-btn{width:100%;}
}
.er-settings-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width:760px){
  .er-settings-head-actions{width:100%;justify-content:space-between;}
  .er-settings-head-actions .er-mobile-revision{width:auto;}
}


/* 2.15.1 — confirm column back to the right, no pending label, eye icon details */
.er-table-records th.er-col-status,
.er-table-records td.er-record-status-action{
  min-width:118px !important;
  width:118px !important;
  max-width:140px !important;
  vertical-align:middle !important;
}
.er-table-records th.er-col-confirm,
.er-table-records td.er-col-confirm{
  min-width:128px !important;
  width:128px !important;
  max-width:148px !important;
  vertical-align:middle !important;
  text-align:center !important;
}
.er-table-records td.er-col-confirm .er-record-status-action__controls{
  justify-content:center !important;
  margin-top:0 !important;
}
.er-link-eye{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:38px !important;
  min-width:38px !important;
  height:34px !important;
  padding:0 !important;
  border-radius:12px !important;
  border:1px solid rgba(59,130,246,.28) !important;
  background:linear-gradient(180deg,#eff6ff 0%,#dbeafe 100%) !important;
  color:#2563eb !important;
  box-shadow:0 8px 18px rgba(37,99,235,.10) !important;
  text-decoration:none !important;
}
.er-link-eye:hover{
  background:linear-gradient(180deg,#dbeafe 0%,#bfdbfe 100%) !important;
  color:#1d4ed8 !important;
}
.er-link-eye span{
  font-size:18px !important;
  line-height:1 !important;
}
@media (max-width:900px){
  .er-table-records th.er-col-status,
  .er-table-records td.er-record-status-action,
  .er-table-records th.er-col-confirm,
  .er-table-records td.er-col-confirm{
    min-width:110px !important;
    width:110px !important;
  }
}


/* 2.15.2 — ultra compact status/details columns */
.er-table-records th.er-col-actions,
.er-table-records td.er-col-actions{
  min-width:58px !important;
  width:58px !important;
  max-width:58px !important;
  text-align:center !important;
  padding-left:6px !important;
  padding-right:6px !important;
}
.er-table-records th.er-col-status,
.er-table-records td.er-record-status-action{
  min-width:52px !important;
  width:52px !important;
  max-width:52px !important;
  text-align:center !important;
  padding-left:6px !important;
  padding-right:6px !important;
}
.er-table-records td.er-record-status-action{
  vertical-align:middle !important;
}
.er-table-records td.er-record-status-action .er-record-status-action__status,
.er-table-records td.er-record-status-action .er-record-status-dot{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
}
.er-record-status-dot{
  min-height:24px;
}
.er-record-status-dot span{
  display:inline-block;
  width:14px;
  height:14px;
  border-radius:999px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72), 0 3px 8px rgba(15,23,42,.12);
}
.er-record-status-dot.is-pending span{
  background:linear-gradient(180deg,#fbbf24 0%,#f59e0b 100%);
}
.er-record-status-dot.is-active span{
  background:linear-gradient(180deg,#34d399 0%,#16a34a 100%);
}
.er-record-status-dot.is-archived span{
  background:linear-gradient(180deg,#93c5fd 0%,#3b82f6 100%);
}
.er-record-status-dot.is-rejected span{
  background:linear-gradient(180deg,#f87171 0%,#dc2626 100%);
}
.er-record-status-dot.is-deleted span{
  background:linear-gradient(180deg,#94a3b8 0%,#64748b 100%);
}
.er-table-records td.er-col-actions .er-actions-inline{
  justify-content:center !important;
}
.er-link-eye{
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  border-radius:10px !important;
}
@media (max-width:900px){
  .er-table-records th.er-col-actions,
  .er-table-records td.er-col-actions,
  .er-table-records th.er-col-status,
  .er-table-records td.er-record-status-action{
    min-width:52px !important;
    width:52px !important;
  }
}


/* 2.15.3 — fixed confirm flow and stable record visibility */
.er-link-confirmed{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:30px !important;
  width:auto !important;
  max-width:100% !important;
  padding:6px 10px !important;
  border-radius:10px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:center !important;
  border:1px solid rgba(21,128,61,.34) !important;
  background:linear-gradient(180deg, rgba(74,222,128,.20) 0%, rgba(22,163,74,.24) 100%) !important;
  color:#166534 !important;
  box-shadow:0 10px 22px rgba(22,163,74,.15) !important;
  font-weight:800 !important;
  letter-spacing:.03em;
}


/* 2.15.6 — hide redundant status/details labels in record tables */
.er-table-records thead th.er-col-status,
.er-table-records thead th.er-col-actions{
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
}


/* 2.15.7 — thinner record rows + cleaner branch/employee cell */
.er-table-records thead th{
  padding-top:8px !important;
  padding-bottom:8px !important;
}
.er-table-records tbody td{
  padding-top:6px !important;
  padding-bottom:6px !important;
}
.er-table-records tbody td.er-col-check,
.er-table-records tbody td.er-record-status-action,
.er-table-records tbody td.er-col-actions,
.er-table-records tbody td.er-col-confirm,
.er-table-records tbody td.er-col-pdf{
  padding-top:5px !important;
  padding-bottom:5px !important;
}
.er-record-branch-employee{
  min-width:170px !important;
}
.er-record-branch-stack{
  display:grid;
  gap:4px;
}
.er-record-branch-employee .er-branch-tag{
  min-height:28px !important;
  padding:4px 8px !important;
  border-radius:12px !important;
  background:linear-gradient(180deg,rgba(248,250,252,.98) 0%,rgba(255,255,255,.98) 100%) !important;
  box-shadow:none !important;
}
.er-record-branch-employee .er-branch-tag::before{
  width:9px;
  height:9px;
  box-shadow:0 0 0 2px rgba(37,99,235,.10);
}
.er-record-branch-employee .er-branch-name{
  font-size:12px;
}
.er-record-branch-employee .er-muted{
  font-size:11px;
  color:#64748b;
}
.er-record-employee-line{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:0 !important;
  padding-left:2px;
  color:#475569;
  font-size:11px;
  font-weight:700;
  line-height:1.15;
}
.er-record-employee-line::before{
  content:"";
  width:12px;
  height:12px;
  border-radius:999px;
  flex:0 0 auto;
  background:
    radial-gradient(circle at 50% 35%, #64748b 0 28%, transparent 31%),
    radial-gradient(circle at 50% 95%, #64748b 0 46%, transparent 49%),
    linear-gradient(180deg, rgba(99,102,241,.10), rgba(59,130,246,.10));
}
.er-record-id-dk{
  line-height:1.2;
}
.er-record-id-dk strong,
.er-record-id-dk span{
  display:block;
}

/* 2.18.0 — поиск и безопасное устранение финансовых расхождений */
.er-finance-errors-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
  padding:13px 14px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#eff6ff;
}
.er-finance-errors-toolbar>div{display:grid;gap:3px;min-width:0}
.er-finance-errors-toolbar strong{color:#172033;font-size:14px}
.er-finance-errors-toolbar span{color:#64748b;font-size:12px;line-height:1.4}
.er-finance-error-card__repair{
  margin-top:9px;
  padding:8px 10px;
  border-radius:8px;
  font-size:11px;
  font-weight:750;
  line-height:1.4;
}
.er-finance-error-card__repair.is-safe{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.er-finance-error-card__repair.is-manual{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.er-finance-error-card details{margin-top:9px}
.er-finance-error-card summary{cursor:pointer;color:#475569;font-size:11px;font-weight:750}
.er-finance-health__actions .er-btn[disabled]{opacity:.55;cursor:not-allowed}
@media(max-width:760px){
  .er-finance-errors-toolbar{align-items:stretch;flex-direction:column}
  .er-finance-errors-toolbar .er-btn{width:100%}
  .er-finance-health__actions{margin-left:0!important}
  .er-finance-health__actions .er-btn{flex:1 1 180px}
}

/* 2.19.0 — ручная контрольная граница остатков касс */
.er-finance-cutover{display:grid;gap:14px;min-width:min(980px,calc(100vw - 64px))}
.er-finance-cutover-warning,.er-finance-cutover-previous{display:grid;gap:5px;padding:14px 16px;border-radius:12px;line-height:1.45}
.er-finance-cutover-warning{border:1px solid #fdba74;background:#fff7ed;color:#7c2d12}
.er-finance-cutover-warning strong{font-size:15px;color:#9a3412}
.er-finance-cutover-warning span{font-size:13px;font-weight:700}
.er-finance-cutover-warning small{font-size:11px;color:#9a3412}
.er-finance-cutover-previous{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a}
.er-finance-cutover-previous strong{font-size:13px}.er-finance-cutover-previous span{font-size:12px;font-weight:750}.er-finance-cutover-previous small{font-size:11px}
.er-finance-cutover-list{display:grid;gap:10px}
.er-finance-cutover-row{display:grid;grid-template-columns:minmax(280px,1fr) minmax(250px,340px);gap:10px 18px;align-items:center;padding:13px 14px;border:1px solid #dbe4f0;border-radius:12px;background:#fff}
.er-finance-cutover-row__name{display:grid;gap:3px}.er-finance-cutover-row__name strong{font-size:14px;color:#172033}.er-finance-cutover-row__name span{font-size:12px;color:#475569}.er-finance-cutover-row__name small{font-size:11px;color:#64748b}
.er-finance-cutover-row label,.er-finance-cutover-reason{display:grid;gap:6px;font-size:11px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.02em}
.er-finance-cutover-row input,.er-finance-cutover-reason textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:10px 11px;color:#0f172a;font-size:15px;font-weight:750;box-sizing:border-box}
.er-finance-cutover-row input:focus,.er-finance-cutover-reason textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.er-finance-cutover-row input.is-error{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.10)}
.er-finance-cutover-row__result{grid-column:2;font-size:11px;color:#475569}.er-finance-cutover-row__result b{color:#0f172a}
.er-finance-cutover-reason textarea{font-size:13px;font-weight:600;line-height:1.45;text-transform:none;resize:vertical}
.er-finance-cutover-confirm{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2;color:#7f1d1d;font-size:12px;font-weight:750;line-height:1.4}
.er-finance-cutover-confirm input{margin-top:2px;flex:0 0 auto}
.er-finance-cutover-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:2px}
@media(max-width:760px){
  .er-finance-cutover{min-width:0}
  .er-finance-cutover-row{grid-template-columns:1fr}
  .er-finance-cutover-row__result{grid-column:1}
  .er-finance-cutover-actions{display:grid;grid-template-columns:1fr}
  .er-finance-cutover-actions .er-btn{width:100%}
}

.er-cash-breakdown-ledger-note{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#eff6ff;
  color:#334155;
  display:flex;
  gap:8px;
  align-items:flex-start;
  font-size:12px;
  line-height:1.45;
}
.er-cash-breakdown-ledger-note strong{color:#0f172a;white-space:nowrap}
@media(max-width:700px){.er-cash-breakdown-ledger-note{display:block}.er-cash-breakdown-ledger-note strong{display:block;margin-bottom:4px}}

/* 2.24.0 — readable MAX integration workspace */
.er-settings-card-max{
  --er-max-blue:#2563eb;
  --er-max-navy:#0f172a;
  --er-max-soft:#f8fafc;
}
.er-settings-card-max > .er-settings-card-head{
  padding:20px;
  border:1px solid rgba(37,99,235,.18);
  border-radius:20px;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 62%);
}
.er-settings-card-max > .er-settings-grid{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(203,213,225,.86);
  border-radius:18px;
  background:#fff;
}
.er-mobile-overview{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}
.er-mobile-overview-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-height:108px;
  padding:15px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.er-mobile-overview-card > span{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:13px;
  background:#f1f5f9;
  font-size:20px;
}
.er-mobile-overview-card > div{display:flex;flex-direction:column;gap:4px;min-width:0;}
.er-mobile-overview-card small{font-size:11px;font-weight:850;letter-spacing:.03em;text-transform:uppercase;color:#64748b;}
.er-mobile-overview-card b{font-size:16px;line-height:1.25;color:#0f172a;}
.er-mobile-overview-card em{font-size:12px;line-height:1.4;font-style:normal;color:#64748b;overflow-wrap:anywhere;}
.er-mobile-overview-card.is-ok{border-color:rgba(34,197,94,.34);background:linear-gradient(180deg,#f0fdf4,#fff);}
.er-mobile-overview-card.is-ok > span{background:#dcfce7;}
.er-mobile-overview-card.is-warn{border-color:rgba(245,158,11,.34);background:linear-gradient(180deg,#fffbeb,#fff);}
.er-mobile-overview-card.is-warn > span{background:#fef3c7;}
.er-mobile-overview-card.is-bad{border-color:rgba(239,68,68,.34);background:linear-gradient(180deg,#fef2f2,#fff);}
.er-mobile-overview-card.is-bad > span{background:#fee2e2;}
.er-mobile-setup-guide{
  padding:16px;
  border:1px solid rgba(96,165,250,.35);
  border-radius:18px;
  background:#f8fbff;
}
.er-mobile-setup-guide__title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.er-mobile-setup-guide__title b{font-size:15px;color:#0f172a;}
.er-mobile-setup-guide__title span{font-size:11px;font-weight:800;color:#1d4ed8;background:#dbeafe;padding:5px 9px;border-radius:999px;}
.er-mobile-setup-guide ol{
  list-style:none;
  counter-reset:er-max-step;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0;
  padding:0;
}
.er-mobile-setup-guide li{
  counter-increment:er-max-step;
  position:relative;
  min-height:98px;
  padding:12px 12px 12px 46px;
  border:1px solid rgba(191,219,254,.8);
  border-radius:14px;
  background:#fff;
}
.er-mobile-setup-guide li::before{
  content:counter(er-max-step);
  position:absolute;
  left:12px;
  top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  border-radius:9px;
  background:#2563eb;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.er-mobile-setup-guide li b{display:block;margin-bottom:4px;font-size:13px;color:#0f172a;}
.er-mobile-setup-guide li span{display:block;font-size:11px;line-height:1.45;color:#64748b;}
.er-mobile-toolbar{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin:14px 0 18px;
  padding:12px;
  border:1px solid rgba(203,213,225,.8);
  border-radius:15px;
  background:#fff;
}
.er-mobile-toolbar .er-settings-note{flex:1 1 320px;margin:0;}
.er-mobile-chat-section{
  margin-top:14px;
  padding:15px;
  border:1px solid rgba(203,213,225,.88);
  border-radius:18px;
  background:#fff;
}
.er-mobile-chat-section--discovered{background:#fbfdff;}
.er-mobile-chat-section__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid #e2e8f0;
}
.er-mobile-chat-section__head h4{margin:0 0 4px;font-size:15px;color:#0f172a;}
.er-mobile-chat-section__head span{display:block;font-size:12px;line-height:1.45;color:#64748b;}
.er-mobile-chat-section__head > strong{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;white-space:nowrap;}
.er-mobile-chat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.er-mobile-chat-card{margin:0;display:flex;flex-direction:column;min-height:100%;background:#fff;}
.er-mobile-chat-card.is-default{border-color:rgba(37,99,235,.52);box-shadow:0 10px 26px rgba(37,99,235,.08);}
.er-mobile-chat-card.is-disabled{opacity:.82;background:#f8fafc;}
.er-mobile-chat-card__identity{display:flex;align-items:flex-start;gap:10px;min-width:0;}
.er-mobile-chat-card__identity > div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0;}
.er-mobile-chat-card__identity span{font-size:11px;color:#64748b;}
.er-mobile-chat-card__icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#eff6ff;font-size:18px;}
.er-mobile-chat-card__fields{grid-template-columns:minmax(0,1fr) 92px;}
.er-mobile-chat-card__fields .er-mobile-chat-card__title-field{grid-column:1/2;}
.er-mobile-chat-card__fields .er-mobile-chat-enabled{grid-column:1/-1;}
.er-mobile-chat-card__activity{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:10px;
  padding:9px 10px;
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
  font-size:11px;
  line-height:1.4;
}
.er-mobile-chat-card__activity small{overflow-wrap:anywhere;}
.er-mobile-chat-card__actions{margin-top:auto;padding-top:11px;}
.er-mobile-discovered-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.er-mobile-chat-candidate{margin:0;justify-content:flex-start;}
.er-mobile-chat-candidate__icon{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#e0f2fe;font-size:17px;}
.er-mobile-chat-candidate__body{flex:1 1 auto;}
.er-max-chats-empty{display:flex;flex-direction:column;gap:4px;}
.er-settings-max-webhook{margin-top:14px;padding:14px;border:1px solid rgba(203,213,225,.86);border-radius:15px;background:#f8fafc;}
.er-settings-max-webhook code{display:block;margin:7px 0;padding:8px 10px;border-radius:10px;background:#0f172a;color:#e2e8f0;overflow-wrap:anywhere;white-space:normal;}
@media(max-width:1180px){
  .er-mobile-overview{grid-template-columns:1fr 1fr;}
  .er-mobile-overview-card:last-child{grid-column:1/-1;}
  .er-mobile-setup-guide ol{grid-template-columns:1fr 1fr;}
  .er-mobile-chat-grid,.er-mobile-discovered-list{grid-template-columns:1fr;}
}
@media(max-width:760px){
  .er-settings-card-max > .er-settings-card-head,.er-settings-card-max > .er-settings-grid{padding:14px;border-radius:16px;}
  .er-mobile-overview{grid-template-columns:1fr;}
  .er-mobile-overview-card:last-child{grid-column:auto;}
  .er-mobile-setup-guide__title,.er-mobile-chat-section__head{flex-direction:column;}
  .er-mobile-setup-guide ol{grid-template-columns:1fr;}
  .er-mobile-toolbar .er-btn{width:100%;}
  .er-mobile-chat-card__fields{grid-template-columns:1fr;}
  .er-mobile-chat-card__fields .er-mobile-chat-card__title-field,.er-mobile-chat-card__fields .er-mobile-chat-enabled{grid-column:auto;}
  .er-mobile-chat-card__actions .er-btn{width:100%;}
}

/* 2.24.0 — MAX section quick navigation */
.er-max-section-nav{
  position:sticky;
  top:8px;
  z-index:12;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:14px 0 4px;
  padding:8px;
  border:1px solid rgba(148,163,184,.32);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  backdrop-filter:blur(10px);
}
.er-max-section-nav button{
  appearance:none;
  border:1px solid transparent;
  border-radius:12px;
  background:#f8fafc;
  color:#334155;
  min-height:44px;
  padding:7px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  font:inherit;
}
.er-max-section-nav button:hover,.er-max-section-nav button.is-active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;}
.er-max-section-nav button span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:8px;background:#e2e8f0;font-size:11px;font-weight:900;}
.er-max-section-nav button:hover span,.er-max-section-nav button.is-active span{background:#2563eb;color:#fff;}
.er-max-section-nav button b{font-size:11px;line-height:1.15;}
[data-er-max-anchor]{scroll-margin-top:92px;}
@media(max-width:860px){
  .er-max-section-nav{position:relative;top:auto;grid-template-columns:repeat(2,minmax(0,1fr));}
  .er-max-section-nav button:last-child{grid-column:1/-1;}
}

/* 2.24.3 — recovery of final FOTOTO record data from MAX */
.er-mobile-record-sync{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin:14px 0 18px;
  padding:15px 16px;
  border:1px solid #c9d9f8;
  border-radius:16px;
  background:linear-gradient(135deg,#f5f9ff 0%,#eef5ff 100%);
}
.er-mobile-record-sync.is-ready{border-color:#b8dfca;background:linear-gradient(135deg,#f4fbf7 0%,#edf9f2 100%)}
.er-mobile-record-sync.has-errors{border-color:#f2c2bd;background:linear-gradient(135deg,#fff8f7 0%,#fff1ef 100%)}
.er-mobile-record-sync__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#fff;
  box-shadow:0 5px 18px rgba(20,67,145,.10);
  font-size:21px;
}
.er-mobile-record-sync__body{display:flex;flex-direction:column;gap:4px;min-width:0}
.er-mobile-record-sync__body b{font-size:14px;color:#13213a}
.er-mobile-record-sync__body span{font-size:12px;line-height:1.45;color:#506079}
.er-mobile-record-sync__body small{font-size:11px;color:#66758d}
@media (max-width:900px){
  .er-mobile-record-sync{grid-template-columns:auto minmax(0,1fr)}
  .er-mobile-record-sync .er-btn{grid-column:1/-1;width:100%}
}

/* 2.24.6 — independent MAX chat permissions and readable chat registry */
.er-mobile-overview--max{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.er-mobile-chat-grid{
  grid-template-columns:1fr;
  gap:14px;
}
.er-mobile-chat-card{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid #d8e2f1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.055);
  opacity:1;
}
.er-mobile-chat-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:#cbd5e1;
}
.er-mobile-chat-card.is-default::before{background:#2563eb;}
.er-mobile-chat-card.is-reply-enabled:not(.is-default)::before{background:#16a34a;}
.er-mobile-chat-card.is-reply-disabled{background:linear-gradient(135deg,#fff 0%,#fffaf1 100%);}
.er-mobile-chat-card.is-disabled{opacity:1;background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);}
.er-mobile-chat-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:14px;
  border-bottom:1px solid #e7edf6;
}
.er-mobile-chat-card__identity{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
}
.er-mobile-chat-card__identity>div:last-child{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  min-width:0;
}
.er-mobile-chat-card__identity b{font-size:15px;color:#111f38;line-height:1.3;}
.er-mobile-chat-card__identity span{font-size:11px;color:#64748b;}
.er-mobile-chat-card__identity code{
  display:inline-flex;
  max-width:100%;
  padding:4px 8px;
  border-radius:8px;
  background:#111827;
  color:#fff;
  font-size:11px;
  overflow-wrap:anywhere;
}
.er-mobile-chat-card__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#eef4ff;
  font-size:21px;
}
.er-mobile-chat-card__badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.er-mobile-chat-card__badges strong,
.er-mobile-chat-card__badges em{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  white-space:nowrap;
}
.er-mobile-chat-card__badges strong{background:#e7efff;color:#1d4ed8;}
.er-mobile-chat-card__badges .is-on{background:#eaf8ef;color:#15803d;}
.er-mobile-chat-card__badges .is-off{background:#f1f5f9;color:#64748b;}
.er-mobile-chat-card__badges .is-reply-on{background:#dcfce7;color:#166534;}
.er-mobile-chat-card__badges .is-reply-off{background:#fff1d6;color:#9a5700;}
.er-mobile-chat-card__fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px;
  gap:12px;
  margin-top:14px;
}
.er-mobile-chat-card__fields label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.er-mobile-chat-card__fields label>span{
  font-size:10px;
  font-weight:800;
  color:#52627b;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.er-mobile-chat-card__fields input{
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  border:1px solid #cad7ea;
  border-radius:11px;
  padding:9px 11px;
  background:#fff;
  color:#18243a;
  font:inherit;
}
.er-mobile-chat-permissions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.er-mobile-chat-permission{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  align-items:start;
  gap:10px;
  min-height:82px;
  box-sizing:border-box;
  padding:13px 14px;
  border:1px solid #d6e0ee;
  border-radius:14px;
  background:#f8fafc;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.er-mobile-chat-permission:hover{border-color:#9db7df;box-shadow:0 5px 16px rgba(30,64,175,.07);}
.er-mobile-chat-permission.is-selected.is-app{border-color:#7ea8ef;background:#f0f6ff;}
.er-mobile-chat-permission.is-selected.is-bot{border-color:#70c98e;background:#effbf3;}
.er-mobile-chat-permission input{
  width:19px;
  height:19px;
  margin:1px 0 0;
  accent-color:#2563eb;
}
.er-mobile-chat-permission.is-bot input{accent-color:#16a34a;}
.er-mobile-chat-permission span{display:flex;flex-direction:column;gap:5px;min-width:0;}
.er-mobile-chat-permission b{font-size:12px;line-height:1.35;color:#17233a;}
.er-mobile-chat-permission em{font-size:11px;line-height:1.45;font-style:normal;color:#607089;}
.er-mobile-chat-card__activity{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 16px;
  margin-top:13px;
  padding:9px 11px;
  border-radius:11px;
  background:#f8fafc;
  color:#64748b;
  font-size:10px;
}
.er-mobile-chat-card__activity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:700px;}
.er-mobile-chat-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.er-max-reply-policy-note{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  margin:14px 0;
  padding:14px 15px;
  border:1px solid #f0ce8c;
  border-radius:15px;
  background:linear-gradient(135deg,#fffaf0 0%,#fff5df 100%);
}
.er-max-reply-policy-note__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#fff;
  font-size:21px;
  box-shadow:0 4px 16px rgba(146,92,0,.08);
}
.er-max-reply-policy-note__body{display:flex;flex-direction:column;gap:4px;min-width:0;}
.er-max-reply-policy-note__body b{font-size:13px;color:#5c3b00;}
.er-max-reply-policy-note__body span{font-size:11px;line-height:1.45;color:#795b21;}
.er-max-reply-policy-note__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;}
.er-max-chat-edit{flex-wrap:wrap;}
.er-max-chat-visible{white-space:nowrap;}
@media(max-width:1180px){
  .er-mobile-overview--max{grid-template-columns:repeat(2,minmax(0,1fr));}
  .er-max-reply-policy-note{grid-template-columns:auto minmax(0,1fr);}
  .er-max-reply-policy-note__actions{grid-column:1/-1;justify-content:flex-start;}
}
@media(max-width:760px){
  .er-mobile-overview--max{grid-template-columns:1fr;}
  .er-mobile-chat-card{padding:15px;}
  .er-mobile-chat-card__top{flex-direction:column;}
  .er-mobile-chat-card__badges{justify-content:flex-start;}
  .er-mobile-chat-card__fields,.er-mobile-chat-permissions{grid-template-columns:1fr;}
  .er-mobile-chat-card__actions .er-btn{width:100%;}
  .er-max-reply-policy-note{grid-template-columns:1fr;}
  .er-max-reply-policy-note__actions{grid-column:auto;}
  .er-max-reply-policy-note__actions .er-btn{width:100%;}
}

/* 2.24.7 — save without page reload + separate MAX/Telegram auto-reply center */
.er-btn.is-saved{background:#16834a!important;border-color:#16834a!important;color:#fff!important;box-shadow:0 8px 20px rgba(22,131,74,.2)!important}
.er-inline-save-state{display:inline-flex;align-items:center;min-height:32px;padding:7px 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:850;white-space:nowrap}
.er-settings-card-autoreply{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important}
.er-auto-bot-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.er-auto-bot-card{position:relative;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:12px;padding:16px;border:1px solid #dce6f3;border-radius:18px;background:#fff;cursor:pointer;transition:.15s ease}
.er-auto-bot-card:hover{border-color:#93c5fd;transform:translateY(-1px)}
.er-auto-bot-card.is-enabled{border-color:#86d3a5;background:linear-gradient(135deg,#f0fff6 0%,#fff 100%);box-shadow:0 10px 24px rgba(22,163,74,.08)}
.er-auto-bot-card.is-disabled{background:#f8fafc}
.er-auto-bot-card>input{width:20px;height:20px;margin:0;accent-color:#16834a}
.er-auto-bot-card__icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:#eef4ff;font-size:20px}
.er-auto-bot-card>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.er-auto-bot-card b{font-size:15px;color:#0f172a}.er-auto-bot-card em{font-style:normal;font-size:11px;color:#64748b;line-height:1.35}
.er-auto-text-settings{margin-bottom:14px}
.er-auto-text-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.er-auto-text-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:900;color:#334155}
.er-auto-text-grid textarea{width:100%;min-height:125px;resize:vertical;border:1px solid #d8e3f0;border-radius:14px;padding:12px;background:#fff;color:#0f172a;line-height:1.45}
.er-auto-platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.er-auto-platform-card{min-width:0;margin:0!important}
.er-auto-platform-card .er-settings-section-title{align-items:flex-start}
.er-auto-platform-card .er-settings-section-title strong{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-size:11px;white-space:nowrap}
.er-auto-quick-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.er-auto-chat-list{display:flex;flex-direction:column;gap:10px}
.er-auto-chat-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.8fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid #dce6f3;border-radius:16px;background:#fff;transition:.15s ease}
.er-auto-chat-card.is-enabled{border-color:#86d3a5;background:linear-gradient(135deg,#f3fff7 0%,#fff 100%)}
.er-auto-chat-card.is-disabled{background:#f8fafc}
.er-auto-chat-card__main{display:flex;align-items:flex-start;gap:10px;min-width:0}
.er-auto-chat-card__icon{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:#eef4ff;font-size:17px}
.er-auto-chat-card__main>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.er-auto-chat-card__main b{font-size:13px;color:#0f172a;overflow-wrap:anywhere}
.er-auto-chat-card__main input[type=text]{width:100%;min-width:0;border:1px solid #d8e3f0;border-radius:10px;padding:7px 9px;font-size:13px;font-weight:850;color:#0f172a;background:#fff}
.er-auto-chat-card__main code{font-size:10px;color:#475569;overflow-wrap:anywhere}.er-auto-chat-card__main small{font-size:10px;color:#94a3b8}
.er-auto-chat-switch{display:flex;align-items:center;gap:9px;min-width:0;cursor:pointer}
.er-auto-chat-switch input{width:18px;height:18px;margin:0;accent-color:#16834a;flex:0 0 auto}
.er-auto-chat-switch span{display:flex;flex-direction:column;gap:2px;min-width:0}.er-auto-chat-switch b{font-size:12px;color:#0f172a}.er-auto-chat-switch em{font-style:normal;font-size:10px;line-height:1.3;color:#64748b}
.er-auto-chat-card__actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.er-auto-empty{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px dashed #bfcee0;border-radius:14px;background:#f8fafc}.er-auto-empty b{font-size:13px;color:#334155}.er-auto-empty span{font-size:11px;color:#64748b;line-height:1.4}
.er-auto-telegram-health{display:flex;flex-direction:column;gap:3px;padding:11px 12px;margin-bottom:10px;border-radius:14px;border:1px solid #dce6f3;background:#f8fafc}.er-auto-telegram-health b{font-size:12px}.er-auto-telegram-health span{font-size:10px;color:#64748b;overflow-wrap:anywhere}.er-auto-telegram-health.is-ok{border-color:#86d3a5;background:#f0fff6}.er-auto-telegram-health.is-warn{border-color:#f5cf85;background:#fffaf0}.er-auto-telegram-health.is-error{border-color:#f1a8a8;background:#fff4f4}.er-auto-telegram-health.is-error b{color:#9f1d1d}.er-auto-telegram-health.is-error span{color:#7f1d1d}
.er-auto-telegram-add{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:7px;align-items:center;margin-bottom:9px}.er-auto-telegram-add input{width:100%;min-width:0;border:1px solid #d8e3f0;border-radius:11px;padding:8px 10px;background:#fff;color:#0f172a;font-size:12px}.er-auto-telegram-add input:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.er-auto-chat-status{display:inline-flex;width:fit-content;max-width:100%;padding:3px 7px;border-radius:999px;font-size:9px!important;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.er-auto-chat-status.is-ok{background:#dcfce7;color:#166534}.er-auto-chat-status.is-error{background:#fee2e2;color:#991b1b}.er-auto-chat-status.is-stale{background:#fff1c2;color:#854d0e}.er-auto-chat-status.is-unknown{background:#e8eef6;color:#475569}.er-auto-chat-card.has-access-error{border-color:#efc4c4;background:#fffafa}.er-auto-chat-card.has-access-error .er-auto-chat-switch input:checked{accent-color:#b42318}
.er-auto-discovery-help{display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:12px;border-radius:14px;background:#f5f8ff;border:1px solid #dbe7ff}.er-auto-discovery-help b{font-size:12px;color:#1e3a8a}.er-auto-discovery-help span{font-size:11px;color:#475569;line-height:1.45}
@media(max-width:1280px){.er-auto-platform-grid{grid-template-columns:1fr}.er-auto-chat-card{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr) auto}}
@media(max-width:800px){.er-auto-bot-overview,.er-auto-text-grid{grid-template-columns:1fr}.er-auto-telegram-add{grid-template-columns:1fr}.er-auto-telegram-add .er-btn{width:100%}.er-auto-chat-card{grid-template-columns:1fr}.er-auto-chat-card__actions,.er-auto-chat-card>.er-btn{width:100%}.er-auto-chat-card__actions .er-btn,.er-auto-chat-card>.er-btn{width:100%}.er-inline-save-state{white-space:normal}}

/* CRM-ТО 2.24.9: безопасная отмена списания агента */
.er-agent-reverse-form{display:grid;gap:18px;min-width:min(760px,100%);}
.er-agent-reverse-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.er-agent-reverse-summary>div{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border:1px solid var(--er-border,#d9e2ef);border-radius:14px;background:var(--er-surface-soft,#f7f9fc);min-width:0;}
.er-agent-reverse-summary>div span{font-size:12px;color:var(--er-muted,#667085);}
.er-agent-reverse-summary>div strong{font-size:15px;overflow-wrap:anywhere;}
.er-agent-reverse-summary__wide{grid-column:1/-1;}
.er-agent-reverse-alert{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border:1px solid #b9dcff;border-radius:14px;background:#eff7ff;color:#174b78;}
.er-agent-reverse-alert--danger{border-color:#ffb6b6;background:#fff1f1;color:#8f1d1d;}
.er-agent-reverse-alert span{font-size:13px;line-height:1.45;}
.er-agent-reverse-section{display:grid;gap:10px;}
.er-agent-reverse-section__head{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.er-agent-reverse-section__head span{display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;border-radius:999px;background:#eaf1ff;color:#1d5fd1;font-weight:700;}
.er-agent-reverse-records{display:grid;gap:8px;max-height:250px;overflow:auto;padding-right:3px;}
.er-agent-reverse-record{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border:1px solid var(--er-border,#d9e2ef);border-radius:12px;background:#fff;}
.er-agent-reverse-record>div{display:flex;flex-direction:column;gap:3px;min-width:0;}
.er-agent-reverse-record span{font-size:12px;color:var(--er-muted,#667085);}
.er-agent-reverse-record b{white-space:nowrap;}
.er-agent-reverse-empty{padding:14px;border:1px dashed var(--er-border,#d9e2ef);border-radius:12px;color:var(--er-muted,#667085);}
.er-agent-reverse-reason{display:grid;gap:7px;}
.er-agent-reverse-reason>span{font-weight:700;}
.er-agent-reverse-reason>span b{color:#d92d20;}
.er-agent-reverse-reason textarea{width:100%;resize:vertical;min-height:105px;border:1px solid var(--er-border,#cfd8e6);border-radius:12px;padding:12px 14px;font:inherit;}
.er-agent-reverse-reason textarea:focus{outline:none;border-color:#2f6fed;box-shadow:0 0 0 3px rgba(47,111,237,.13);}
.er-agent-reverse-reason small{color:var(--er-muted,#667085);}
.er-agent-reverse-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
@media(max-width:700px){
  .er-agent-reverse-summary{grid-template-columns:1fr;}
  .er-agent-reverse-summary__wide{grid-column:auto;}
  .er-agent-reverse-actions .er-btn{flex:1 1 100%;}
}

/* CRM-ТО 2.26.2: temporary secure reveal of the saved Yandex WebDAV app password */
.er-yadisk-reveal-button{
  width:100%;
  margin-top:8px;
  justify-content:center;
}
.er-secret-reveal{
  display:grid;
  gap:16px;
  min-width:min(520px,calc(100vw - 64px));
}
.er-secret-reveal__warning{
  display:grid;
  gap:6px;
  padding:14px 16px;
  border:1px solid rgba(180,83,9,.28);
  border-radius:14px;
  background:rgba(245,158,11,.08);
  line-height:1.45;
}
.er-secret-reveal__warning b{
  font-size:15px;
  color:#7c2d12;
}
.er-secret-reveal__warning span{
  color:#6b4f36;
  font-size:13px;
}
.er-secret-reveal__warning--success{
  border-color:rgba(22,163,74,.28);
  background:rgba(22,163,74,.08);
}
.er-secret-reveal__warning--success b{color:#166534;}
.er-secret-reveal__warning--success span{color:#355c42;}
.er-secret-reveal__field{
  display:grid;
  gap:7px;
  font-weight:800;
  color:#172033;
}
.er-secret-reveal__field>span{
  font-size:13px;
}
.er-secret-reveal__field input{
  width:100%;
  min-height:42px;
  padding:9px 12px;
  border:1px solid rgba(15,23,42,.18);
  border-radius:12px;
  background:#fff;
  font:700 14px/1.3 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  box-sizing:border-box;
}
.er-secret-reveal__field input:focus{
  outline:2px solid rgba(37,99,235,.18);
  border-color:#2563eb;
}
.er-secret-reveal__value-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.er-secret-reveal__error{
  padding:10px 12px;
  border:1px solid rgba(185,28,28,.25);
  border-radius:12px;
  background:rgba(220,38,38,.07);
  color:#991b1b;
  font-weight:800;
  font-size:13px;
}
.er-secret-reveal__note{
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}
.er-secret-reveal__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width:640px){
  .er-secret-reveal{min-width:0;}
  .er-secret-reveal__value-row{grid-template-columns:1fr;}
  .er-secret-reveal__actions>.er-btn,
  .er-secret-reveal__value-row>.er-btn{width:100%;justify-content:center;}
}

/* 2.27.0 — каталог договорных списков юридических лиц */
.er-contract-directory-card{
  margin:0 0 14px;
  padding:16px;
  border:1px solid #cfe0ff;
  border-radius:18px;
  background:linear-gradient(135deg,#f7fbff 0%,#eef5ff 100%);
  box-shadow:0 10px 30px rgba(27,76,150,.08);
}
.er-contract-directory-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.er-contract-directory-head h4{margin:6px 0 4px;font-size:20px;line-height:1.25;color:#172033}
.er-contract-directory-head p{margin:0;color:#60708b;max-width:850px}
.er-contract-directory-toolbar{display:flex;align-items:stretch;gap:12px;margin-bottom:14px}
.er-contract-directory-filters{display:flex;flex:1;gap:8px;flex-wrap:wrap}
.er-contract-directory-filters button{
  min-width:132px;
  padding:9px 12px;
  border:1px solid #d7e1f0;
  border-radius:12px;
  background:#fff;
  color:#34425a;
  text-align:left;
  cursor:pointer;
  transition:.15s ease;
}
.er-contract-directory-filters button:hover{transform:translateY(-1px);border-color:#9cbaf4;box-shadow:0 5px 14px rgba(38,91,181,.10)}
.er-contract-directory-filters button.is-active{border-color:#2563eb;background:#eaf1ff;color:#1748a7;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.er-contract-directory-filters button b{float:right;font-size:18px;line-height:1}
.er-contract-directory-filters button small{display:block;clear:both;margin-top:4px;color:#75839b;font-size:10px}
.er-contract-directory-toolbar>input{
  width:min(360px,34vw);
  min-width:260px;
  border:1px solid #cad8eb;
  border-radius:12px;
  background:#fff;
  padding:0 14px;
  min-height:48px;
}
.er-contract-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.er-contract-directory-agent{
  overflow:hidden;
  border:1px solid #d8e2ef;
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 16px rgba(28,52,84,.05);
}
.er-contract-directory-agent__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid #e8eef6;
  background:#fbfdff;
}
.er-contract-directory-agent__title{font-size:15px;font-weight:800;color:#172033}
.er-contract-directory-agent__sub{margin-top:2px;color:#78869b;font-size:11px}
.er-contract-directory-agent__badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.er-contract-directory-agent__badges span,
.er-contract-directory-state{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.er-contract-directory-agent__badges .is-active,
.er-contract-directory-state.is-active{background:#dcfce7;color:#137333;border:1px solid #a7e7bd}
.er-contract-directory-agent__badges .is-expired,
.er-contract-directory-state.is-expired{background:#fff1e5;color:#a14800;border:1px solid #ffd1a8}
.er-contract-directory-state.is-upcoming{background:#e0f2fe;color:#075985;border:1px solid #a8d9f2}
.er-contract-directory-state.is-draft{background:#f1f5f9;color:#475569;border:1px solid #d8e0e9}
.er-contract-directory-state.is-archive{background:#f3e8ff;color:#6b21a8;border:1px solid #d8b4fe}
.er-contract-directory-agent__lists{display:flex;flex-direction:column}
.er-contract-directory-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #edf1f6;
  border-left:4px solid transparent;
}
.er-contract-directory-row:last-child{border-bottom:0}
.er-contract-directory-row.is-active{border-left-color:#22c55e}
.er-contract-directory-row.is-expired{border-left-color:#f59e0b;background:#fffdf9}
.er-contract-directory-row.is-upcoming{border-left-color:#0ea5e9}
.er-contract-directory-row.is-draft{border-left-color:#94a3b8}
.er-contract-directory-row.is-archive{border-left-color:#a855f7}
.er-contract-directory-row__main{min-width:0;flex:1}
.er-contract-directory-row__title{font-size:13px;font-weight:800;color:#1d2939;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.er-contract-directory-row__meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:6px;color:#69778d;font-size:10px}
.er-contract-directory-empty{grid-column:1/-1;padding:26px;text-align:center;border:1px dashed #cbd8ea;border-radius:14px;background:#fff;color:#64748b}
.er-contract-directory-empty.is-error{color:#b42318;border-color:#f3b4ad;background:#fff7f6}
@media (max-width:1180px){
  .er-contract-directory{grid-template-columns:1fr}
  .er-contract-directory-toolbar{flex-direction:column}
  .er-contract-directory-toolbar>input{width:100%;min-width:0;min-height:44px}
}
@media (max-width:720px){
  .er-contract-directory-head,.er-contract-directory-agent__head,.er-contract-directory-row{align-items:stretch;flex-direction:column}
  .er-contract-directory-agent__badges{justify-content:flex-start}
  .er-contract-directory-row .er-btn{width:100%}
  .er-contract-directory-filters button{min-width:calc(50% - 4px)}
}


/* 2.28.0 — документы: список юрлиц, модальное окно списков и понятная активация */
.er-contract-directory{display:block!important}
.er-legal-entity-list-head{
  display:grid;grid-template-columns:minmax(300px,1.4fr) minmax(280px,1.3fr) 190px 170px;gap:16px;
  padding:0 18px 8px;color:#7a879a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em
}
.er-legal-entity-row{
  width:100%;display:grid;grid-template-columns:minmax(300px,1.4fr) minmax(280px,1.3fr) 190px 170px;
  align-items:center;gap:16px;margin:0 0 8px;padding:14px 18px;border:1px solid #d9e3ef;border-radius:14px;
  background:#fff;color:#1e293b;text-align:left;cursor:pointer;box-shadow:0 3px 12px rgba(28,52,84,.04);transition:.16s ease
}
.er-legal-entity-row:hover{border-color:#7aa7ff;box-shadow:0 10px 24px rgba(37,99,235,.11);transform:translateY(-1px)}
.er-legal-entity-row__identity{display:flex;align-items:center;gap:12px;min-width:0}
.er-legal-entity-row__identity>i,.er-contract-agent-modal__avatar{
  display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;
  background:linear-gradient(135deg,#2563eb,#04b8d9);color:#fff;font-style:normal;font-size:14px;font-weight:900;box-shadow:0 7px 15px rgba(37,99,235,.2)
}
.er-legal-entity-row__identity span{min-width:0}.er-legal-entity-row__identity b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.er-legal-entity-row__identity small{display:block;margin-top:3px;color:#718096;font-size:11px}
.er-legal-entity-row__statuses{display:flex;gap:6px;flex-wrap:wrap}
.er-legal-entity-row__statuses em,.er-contract-agent-modal__legend span{
  padding:5px 8px;border-radius:999px;font-style:normal;font-size:10px;font-weight:850;white-space:nowrap;border:1px solid transparent
}
.er-legal-entity-row__statuses .is-active,.er-contract-agent-modal__legend .is-active{background:#dcfce7;color:#137333;border-color:#a7e7bd}
.er-legal-entity-row__statuses .is-draft,.er-contract-agent-modal__legend .is-draft{background:#f1f5f9;color:#475569;border-color:#d8e0e9}
.er-legal-entity-row__statuses .is-upcoming,.er-contract-agent-modal__legend .is-upcoming{background:#e0f2fe;color:#075985;border-color:#a8d9f2}
.er-legal-entity-row__statuses .is-expired,.er-contract-agent-modal__legend .is-expired{background:#fff1e5;color:#a14800;border-color:#ffd1a8}
.er-legal-entity-row__statuses .is-archive{background:#f3e8ff;color:#6b21a8;border-color:#d8b4fe}
.er-legal-entity-row__numbers{display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:baseline;gap:4px 6px}
.er-legal-entity-row__numbers b{font-size:18px;color:#172033}.er-legal-entity-row__numbers small{font-size:10px;color:#7b8798}
.er-legal-entity-row__open{display:flex;justify-content:flex-end;align-items:center;gap:10px;color:#1d5ed8;font-size:12px;font-weight:850}
.er-legal-entity-row__open i{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eaf1ff;font-size:22px;font-style:normal}
.er-contract-workbench-empty{display:flex;align-items:center;gap:12px;margin:14px 0;padding:16px 18px;border:1px dashed #b9c9df;border-radius:15px;background:#f8fbff;color:#65758b}
.er-contract-workbench-empty b{color:#23324a}.er-contract-workbench-empty span{font-size:12px}
.er-contract-flow{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0 4px}
.er-contract-flow span{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:10px;background:#f4f7fb;color:#5b6b82;font-size:11px;font-weight:700}
.er-contract-flow b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#2563eb;color:#fff;font-size:10px}
.er-btn-success{background:linear-gradient(135deg,#16a34a,#22c55e)!important;border-color:#159447!important;color:#fff!important;box-shadow:0 7px 16px rgba(22,163,74,.2)}
.er-contract-readiness{margin-top:12px}.er-contract-readiness-card{padding:13px 15px;border-radius:13px;border:1px solid #d9e3ef;background:#f8fafc}
.er-contract-readiness-card b{display:block;margin-bottom:4px;font-size:13px}.er-contract-readiness-card span{display:block;color:#5f6f84;font-size:11px;line-height:1.45}
.er-contract-readiness-card ul{margin:8px 0 0 18px;color:#9a3412;font-size:11px;line-height:1.5}
.er-contract-readiness-card.is-active{border-color:#9fdfb6;background:#ecfdf3}.er-contract-readiness-card.is-active b{color:#137333}
.er-contract-readiness-card.is-draft{border-color:#ccd7e5;background:#f8fafc}.er-contract-readiness-card.is-expired{border-color:#ffc98f;background:#fff8ed}.er-contract-readiness-card.is-expired b{color:#a14800}
.er-contract-readiness-card.is-done{border-color:#b9d4ff;background:#eff6ff}.er-contract-readiness-card.is-done b{color:#1d4ed8}.er-contract-readiness-card.is-archive{border-color:#d8b4fe;background:#faf5ff}.er-contract-readiness-card.is-archive b{color:#7e22ce}
body.er-contract-modal-open{overflow:hidden}.er-contract-agent-modal-host{position:fixed;inset:0;z-index:100000}
.er-contract-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52);backdrop-filter:blur(3px)}
.er-contract-agent-modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(920px,calc(100vw - 34px));max-height:min(820px,calc(100vh - 34px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #d5e0ee;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.3)}
.er-contract-agent-modal>header{display:flex;align-items:center;gap:13px;padding:18px 20px;border-bottom:1px solid #e6edf5;background:linear-gradient(135deg,#f8fbff,#eef5ff)}
.er-contract-agent-modal>header h4{margin:4px 0 2px;font-size:19px;color:#172033}.er-contract-agent-modal>header p{margin:0;color:#687890;font-size:11px}
.er-contract-agent-modal__close{margin-left:auto;width:38px;height:38px;border:0;border-radius:11px;background:#fff;color:#59677b;font-size:25px;cursor:pointer;box-shadow:0 3px 12px rgba(15,23,42,.08)}
.er-contract-agent-modal__legend{display:flex;gap:7px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #edf1f6}
.er-contract-agent-modal__lists{padding:10px 14px;overflow:auto}
.er-contract-modal-list-row{width:100%;display:grid;grid-template-columns:125px minmax(0,1fr) 150px 30px;align-items:center;gap:12px;margin:0 0 8px;padding:13px 14px;border:1px solid #dce5ef;border-left:5px solid #94a3b8;border-radius:13px;background:#fff;text-align:left;color:#1f2937;cursor:pointer;transition:.14s ease}
.er-contract-modal-list-row:hover{border-color:#80a9f7;box-shadow:0 7px 18px rgba(37,99,235,.09)}.er-contract-modal-list-row.is-active{border-left-color:#22c55e}.er-contract-modal-list-row.is-expired{border-left-color:#f59e0b}.er-contract-modal-list-row.is-upcoming{border-left-color:#0ea5e9}.er-contract-modal-list-row.is-archive{border-left-color:#a855f7}
.er-contract-modal-list-row__state{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:850}.er-contract-modal-list-row__state i{width:9px;height:9px;border-radius:50%;background:#94a3b8}.er-contract-modal-list-row__state i.is-active{background:#22c55e}.er-contract-modal-list-row__state i.is-expired{background:#f59e0b}.er-contract-modal-list-row__state i.is-upcoming{background:#0ea5e9}.er-contract-modal-list-row__state i.is-archive{background:#a855f7}
.er-contract-modal-list-row__main b{display:block;font-size:13px}.er-contract-modal-list-row__main small{display:block;margin-top:4px;color:#708096;font-size:10px}.er-contract-modal-list-row__main em{display:block;margin-top:4px;color:#b45309;font-size:10px;font-style:normal}
.er-contract-modal-list-row__stats{display:grid;grid-template-columns:auto 1fr;gap:2px 6px;align-items:baseline}.er-contract-modal-list-row__stats strong{font-size:16px}.er-contract-modal-list-row__stats small{font-size:9px;color:#7b8798}.er-contract-modal-list-row__arrow{color:#2563eb;font-size:26px;text-align:right}
.er-contract-agent-modal>footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 18px;border-top:1px solid #e7edf5;background:#fbfdff}
.er-contract-actions button:disabled,.er-contract-control-actions button:disabled,.er-contract-vehicles-card button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none!important}
@media(max-width:1050px){.er-legal-entity-list-head{display:none}.er-legal-entity-row{grid-template-columns:1fr auto}.er-legal-entity-row__statuses{grid-column:1/-1}.er-legal-entity-row__numbers{display:none}.er-contract-modal-list-row{grid-template-columns:110px minmax(0,1fr) 30px}.er-contract-modal-list-row__stats{display:none}}
@media(max-width:650px){.er-legal-entity-row{grid-template-columns:1fr;padding:13px}.er-legal-entity-row__open{justify-content:flex-start}.er-contract-agent-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px);border-radius:15px}.er-contract-agent-modal>header{align-items:flex-start;padding:14px}.er-contract-agent-modal__avatar{display:none}.er-contract-modal-list-row{grid-template-columns:1fr 24px}.er-contract-modal-list-row__state{grid-column:1/-1}.er-contract-agent-modal>footer{flex-direction:column}.er-contract-agent-modal>footer .er-btn{width:100%;justify-content:center}.er-contract-flow{flex-direction:column}}


/* 2.29.0 — визуальное обновление раздела «Документы» */
.er-view[data-er-view="documents"]>.er-card.er-block{
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important
}
.er-view[data-er-view="documents"]>.er-card.er-block>.er-block-head{display:none!important}
.er-view[data-er-view="documents"] .er-documents-root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.er-docs-v229,.er-contracts-v229{--doc-blue:#2563eb;--doc-blue-dark:#1748c7;--doc-bg:#f4f7fb;--doc-border:#dce5f0;--doc-text:#172033;--doc-muted:#66758a;color:var(--doc-text)}
.er-docs-v229{min-height:calc(100vh - 150px);padding:18px;border-radius:22px;background:linear-gradient(180deg,#f8fbff 0,#f3f6fa 100%)}
.er-docs-commandbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;margin:-18px -18px 16px;padding:14px 18px;border-bottom:1px solid rgba(196,210,227,.82);background:rgba(248,251,255,.94);backdrop-filter:blur(12px);border-radius:22px 22px 0 0}
.er-docs-commandbar__back{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d6e0ed;border-radius:13px;background:#fff;color:#334155;font-size:22px;cursor:pointer;box-shadow:0 5px 15px rgba(15,23,42,.06)}
.er-docs-commandbar__back:hover{border-color:#91b4ff;color:#1d4ed8;transform:translateX(-1px)}
.er-docs-commandbar__title span{display:block;margin-bottom:2px;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.er-docs-commandbar__title h4{margin:0;color:#172033;font-size:20px;line-height:1.15}.er-docs-commandbar__title p{margin:4px 0 0;color:#6b7a90;font-size:11px}
.er-docs-commandbar__actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.er-contracts-v229{display:flex;flex-direction:column;gap:14px}
.er-contract-directory-card-v229,.er-contract-selection-card-v229,.er-contract-period-card-v229,.er-contract-documents-card-v229,.er-contract-vehicles-card-v229{
  border:1px solid var(--doc-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 24px rgba(31,55,88,.055)!important;overflow:hidden
}
.er-contract-directory-hero{display:flex;align-items:center;gap:14px;padding:17px 18px;border-bottom:1px solid #e8eef5;background:linear-gradient(135deg,#fff,#f5f9ff)}
.er-contract-directory-hero__icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#2563eb,#14b8d4);color:#fff;font-size:14px;font-weight:950;box-shadow:0 10px 22px rgba(37,99,235,.22)}
.er-contract-directory-hero__text{min-width:0}.er-contract-directory-hero__text h4{margin:3px 0 3px;font-size:19px;line-height:1.15}.er-contract-directory-hero__text p{margin:0;color:#69788d;font-size:11px}.er-contract-directory-hero>.er-btn{margin-left:auto;white-space:nowrap}
.er-contract-directory-toolbar-v229{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:12px!important;align-items:center!important;padding:12px 16px!important;background:#fbfdff;border-bottom:1px solid #edf2f7}
.er-contract-directory-filters-v229{display:flex!important;gap:7px!important;flex-wrap:wrap!important}
.er-contract-directory-filters-v229 button{display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;column-gap:7px!important;align-items:center!important;min-width:0!important;padding:8px 11px!important;border:1px solid #dce5ef!important;border-radius:11px!important;background:#fff!important;color:#526176!important;text-align:left!important;box-shadow:none!important}
.er-contract-directory-filters-v229 button>span{font-size:11px;font-weight:850}.er-contract-directory-filters-v229 button>b{grid-column:2;grid-row:1/3;display:grid;place-items:center;min-width:26px;height:26px;border-radius:9px;background:#edf2f8;color:#334155;font-size:12px}.er-contract-directory-filters-v229 button>small{font-size:8px;color:#8a97a8;line-height:1.1}
.er-contract-directory-filters-v229 button.is-active{border-color:#7fa8ff!important;background:#eef5ff!important;color:#1d4ed8!important;box-shadow:inset 0 0 0 1px rgba(37,99,235,.07)!important}.er-contract-directory-filters-v229 button.is-active>b{background:#2563eb;color:#fff}
.er-contract-directory-search,.er-contract-vehicle-search-v229{display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #d7e1ed;border-radius:12px;background:#fff;transition:.15s ease}.er-contract-directory-search:focus-within,.er-contract-vehicle-search-v229:focus-within{border-color:#7aa6ff;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
.er-contract-directory-search>span,.er-contract-vehicle-search-v229>span{color:#718096;font-size:20px}.er-contract-directory-search input,.er-contract-vehicle-search-v229 input{width:100%!important;min-width:0!important;height:42px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.er-contract-directory{padding:10px 12px 12px!important;background:#f8fafc}
.er-legal-entity-list-head-v229{grid-template-columns:minmax(290px,1.45fr) minmax(300px,1.25fr) 180px 145px!important;padding:0 14px 7px!important}
.er-legal-entity-row-v229{grid-template-columns:minmax(290px,1.45fr) minmax(300px,1.25fr) 180px 145px!important;min-height:68px;margin:0 0 7px!important;padding:11px 14px!important;border-radius:13px!important;box-shadow:none!important}
.er-legal-entity-row-v229:hover{transform:none!important;background:#f9fbff!important;border-color:#8cb0fb!important;box-shadow:0 7px 18px rgba(37,99,235,.08)!important}
.er-legal-entity-row-v229 .er-legal-entity-row__identity>i{flex-basis:38px;width:38px;height:38px;border-radius:11px;font-size:12px}.er-legal-entity-row-v229 .er-legal-entity-row__identity b{font-size:13px}.er-legal-entity-row-v229 .er-legal-entity-row__identity small{font-size:9px}
.er-legal-entity-row-v229 .er-legal-entity-row__statuses em{padding:4px 7px;font-size:9px}
.er-legal-entity-row-v229 .er-legal-entity-row__numbers b{font-size:16px}.er-legal-entity-row-v229 .er-legal-entity-row__open{font-size:10px}.er-legal-entity-row-v229 .er-legal-entity-row__open i{width:26px;height:26px;border-radius:8px}
.er-contract-workbench-empty{justify-content:center;min-height:88px;margin:0!important;border:1px dashed #b8c8dd!important;background:linear-gradient(135deg,#f9fbff,#f3f7fc)!important;text-align:left}
.er-contract-workbench-empty__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8f0ff;color:#2563eb;font-size:21px}.er-contract-workbench-empty>span:last-child{display:flex;flex-direction:column;gap:3px}.er-contract-workbench-empty small{color:#758398;font-size:10px}
.er-contract-workbench-v229{display:flex;flex-direction:column;gap:14px}
.er-contract-selection-card-v229{padding:0!important}.er-contract-selection-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px 12px}.er-contract-selection-title h4{margin:4px 0 3px;font-size:17px}.er-contract-selection-title p{margin:0;color:#6b7a90;font-size:10px}.er-contract-control-actions-v229{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.er-contract-control-grid-v229{display:grid!important;grid-template-columns:minmax(260px,1fr) minmax(300px,1.3fr)!important;gap:10px!important;padding:0 18px 13px!important}.er-contract-control-grid-v229 .er-field{margin:0}.er-contract-control-grid-v229 label{font-size:9px!important}.er-contract-control-grid-v229 select{height:43px!important;font-weight:750}
.er-contract-flow-v229{margin:0!important;padding:10px 18px!important;border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7;background:#fbfdff}.er-contract-flow-v229 span{flex:1;min-width:180px;display:grid!important;grid-template-columns:24px 1fr;grid-template-rows:auto auto;column-gap:8px;padding:0!important;background:transparent!important}.er-contract-flow-v229 b{grid-row:1/3;width:24px;height:24px}.er-contract-flow-v229 i{font-style:normal;color:#334155;font-size:10px;font-weight:900}.er-contract-flow-v229 small{color:#8491a2;font-size:8px}
.er-contract-status-row-v229{display:grid!important;grid-template-columns:minmax(260px,1fr) auto!important;gap:10px!important;align-items:center!important;padding:12px 18px!important}.er-contract-status-row-v229 .er-contract-statusline{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:#405169;font-size:11px}.er-contract-status-row-v229 .er-contract-counters{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.er-contract-status-row-v229 .er-contract-counter{min-width:66px;padding:6px 8px;border:1px solid #e0e7f0;border-radius:10px;background:#f8fafc;font-size:8px}.er-contract-status-row-v229 .er-contract-counter b{font-size:14px}
.er-contract-selection-card-v229>.er-contract-readiness{margin:0!important;padding:0 18px 14px}.er-contract-selection-card-v229 .er-contract-readiness-card{padding:10px 12px;border-radius:11px}.er-contract-selection-card-v229 .er-contract-readiness-card b{font-size:11px}.er-contract-selection-card-v229 .er-contract-readiness-card span,.er-contract-selection-card-v229 .er-contract-readiness-card li{font-size:9px}
.er-contract-section-head-v229{align-items:flex-start!important;padding:15px 17px 11px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important}.er-contract-section-head-v229 h5{margin:4px 0 3px!important;font-size:16px!important}.er-contract-section-head-v229 p{margin:0!important;color:#718096!important;font-size:10px!important}.er-contract-section-head-v229 .er-contract-actions{justify-content:flex-end}
.er-contract-topline-v229{display:grid!important;grid-template-columns:minmax(280px,1.5fr) minmax(220px,1fr) repeat(3,minmax(150px,.72fr))!important;gap:10px!important;padding:13px 17px 16px!important}.er-contract-topline-v229 .er-field{margin:0}.er-contract-topline-v229 .er-field-wide:last-child{grid-column:1/-1}.er-contract-topline-v229 label,.er-contract-document-grid-v229 label{font-size:9px!important}.er-contract-topline-v229 input,.er-contract-document-grid-v229 input{height:41px!important}.er-contract-topline-v229 .er-field-note{font-size:8px!important;line-height:1.25!important}
.er-contract-documents-card-v229{padding:0!important}.er-contract-document-grid-v229{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px;padding:13px 17px 16px}.er-contract-doc-actions-v229{display:flex;gap:7px;flex-wrap:wrap}
.er-contract-vehicles-card-v229{padding:0!important}.er-contract-add-disclosure-v229{margin:12px 16px 0;border:1px solid #dbe5ef;border-radius:13px;background:#fbfdff;overflow:hidden}.er-contract-add-disclosure-v229>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;list-style:none;color:#2759b4;font-size:11px;font-weight:900}.er-contract-add-disclosure-v229>summary::-webkit-details-marker{display:none}.er-contract-add-disclosure-v229>summary small{color:#8290a2;font-size:8px;font-weight:650}.er-contract-add-disclosure-v229[open]>summary{border-bottom:1px solid #e7edf4;background:#f2f7ff}
.er-contract-add-card-v229{display:grid!important;grid-template-columns:minmax(130px,.65fr) minmax(220px,1fr) minmax(280px,1.5fr) 100px 95px 120px auto!important;gap:9px!important;margin:0!important;padding:12px!important;border:0!important;border-radius:0!important;background:#fff!important}.er-contract-add-card-v229 .er-field{margin:0}.er-contract-add-card-v229 label{font-size:8px!important}.er-contract-add-card-v229 input{height:39px!important}.er-contract-add-card-v229 .er-contract-vehicle-form-actions{display:flex;align-items:end;gap:6px}
.er-contract-vehicle-tools-v229{display:grid!important;grid-template-columns:minmax(0,1fr) 210px!important;gap:10px!important;margin:12px 16px 10px!important;padding:0!important;border:0!important;background:transparent!important}.er-contract-vehicle-tools-v229 select{height:42px!important}
.er-contract-vehicle-list-v229{display:flex!important;flex-direction:column!important;gap:6px!important;padding:0 16px 16px!important}
.er-contract-vehicle-list-v229 .er-contract-vehicle-card{display:grid!important;grid-template-columns:34px minmax(0,1fr) 250px!important;gap:10px!important;align-items:center!important;min-height:68px;padding:9px 10px!important;border:1px solid #dce5ef!important;border-left:4px solid #c5d0de!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
.er-contract-vehicle-list-v229 .er-contract-vehicle-card:hover{border-color:#91aff0!important;background:#fbfdff!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card.is-doc-selected{border-left-color:#2563eb!important;background:#f7faff!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card.is-contract-completed{border-left-color:#22c55e!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card.is-contract-in-work{border-left-color:#0ea5e9!important}
.er-contract-vehicle-list-v229 .er-contract-vehicle-card__check{display:grid;place-items:center}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__check input{width:18px!important;height:18px!important;margin:0!important;accent-color:#2563eb}
.er-contract-vehicle-list-v229 .er-contract-vehicle-card__main{min-width:0}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__top{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__top>div{display:flex;align-items:baseline;gap:8px;min-width:0}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__plate{font-size:13px!important;font-weight:950!important;white-space:nowrap}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__model{font-size:10px!important;color:#65758a!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.er-contract-vehicle-list-v229 .er-contract-status{margin-left:auto!important;padding:4px 7px!important;font-size:8px!important}
.er-contract-vehicle-list-v229 .er-contract-vehicle-card__meta{display:flex!important;gap:5px 12px!important;flex-wrap:wrap!important;margin-top:5px!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__meta span{padding:0!important;border:0!important;background:transparent!important;color:#768499!important;font-size:8px!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__meta span b{color:#41516a!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__meta span:nth-child(4),.er-contract-vehicle-list-v229 .er-contract-vehicle-card__meta span:nth-child(5){display:none!important}
.er-contract-vehicle-list-v229 .er-contract-vehicle-card__actions{display:flex!important;justify-content:flex-end!important;gap:5px!important;flex-wrap:wrap!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__actions .er-btn{min-height:30px!important;padding:5px 8px!important;font-size:8px!important;border-radius:8px!important}
.er-contract-agent-modal{border-radius:18px!important}.er-contract-agent-modal>header{padding:16px 18px!important}.er-contract-agent-modal__lists{padding:9px 12px!important;background:#f8fafc}.er-contract-modal-list-row{min-height:64px!important;margin-bottom:6px!important;padding:10px 12px!important;border-radius:11px!important;box-shadow:none!important}.er-contract-modal-list-row:hover{background:#fbfdff!important}.er-contract-agent-modal>footer{padding:11px 15px!important}
@media(max-width:1280px){.er-contract-topline-v229{grid-template-columns:repeat(3,minmax(180px,1fr))!important}.er-contract-topline-v229 .er-contract-list-name-field{grid-column:span 2}.er-contract-document-grid-v229{grid-template-columns:repeat(3,minmax(170px,1fr))}.er-contract-add-card-v229{grid-template-columns:repeat(3,minmax(160px,1fr))!important}.er-contract-add-card-v229 .er-contract-vehicle-form-actions{grid-column:1/-1}.er-legal-entity-list-head-v229{display:none!important}.er-legal-entity-row-v229{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr) 145px!important}.er-legal-entity-row-v229 .er-legal-entity-row__numbers{display:none!important}}
@media(max-width:900px){.er-docs-v229{padding:10px;border-radius:16px}.er-docs-commandbar{position:relative;top:auto;margin:-10px -10px 12px;padding:11px;grid-template-columns:40px 1fr}.er-docs-commandbar__actions{grid-column:1/-1;justify-content:flex-start}.er-contract-directory-toolbar-v229{grid-template-columns:1fr!important}.er-contract-selection-main{flex-direction:column}.er-contract-control-actions-v229{justify-content:flex-start}.er-contract-control-grid-v229{grid-template-columns:1fr!important}.er-contract-status-row-v229{grid-template-columns:1fr!important}.er-contract-status-row-v229 .er-contract-counters{justify-content:flex-start}.er-contract-topline-v229,.er-contract-document-grid-v229{grid-template-columns:repeat(2,minmax(150px,1fr))!important}.er-contract-topline-v229 .er-contract-list-name-field{grid-column:1/-1}.er-legal-entity-row-v229{grid-template-columns:1fr auto!important}.er-legal-entity-row-v229 .er-legal-entity-row__statuses{grid-column:1/-1}.er-contract-vehicle-list-v229 .er-contract-vehicle-card{grid-template-columns:30px minmax(0,1fr)!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__actions{grid-column:2;justify-content:flex-start!important}.er-contract-vehicle-tools-v229{grid-template-columns:1fr!important}}
@media(max-width:600px){.er-docs-commandbar__title h4{font-size:17px}.er-contract-directory-hero{align-items:flex-start;padding:14px}.er-contract-directory-hero__icon{display:none}.er-contract-directory-hero>.er-btn{margin-left:0}.er-contract-directory-hero{flex-wrap:wrap}.er-contract-directory-filters-v229 button{flex:1 1 calc(50% - 7px)}.er-legal-entity-row-v229{grid-template-columns:1fr!important}.er-legal-entity-row-v229 .er-legal-entity-row__open{justify-content:flex-start}.er-contract-topline-v229,.er-contract-document-grid-v229,.er-contract-add-card-v229{grid-template-columns:1fr!important}.er-contract-topline-v229 .er-contract-list-name-field,.er-contract-topline-v229 .er-field-wide:last-child{grid-column:auto}.er-contract-section-head-v229{flex-direction:column!important}.er-contract-section-head-v229 .er-contract-actions{justify-content:flex-start}.er-contract-doc-actions-v229 .er-btn{width:100%}.er-contract-add-disclosure-v229>summary{align-items:flex-start;flex-direction:column}.er-contract-flow-v229{flex-direction:column}.er-contract-flow-v229 span{min-width:0}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__top{align-items:flex-start!important}.er-contract-vehicle-list-v229 .er-contract-vehicle-card__top>div{align-items:flex-start;flex-direction:column;gap:2px}.er-contract-vehicle-list-v229 .er-contract-status{margin-left:0!important}.er-contract-agent-modal__legend{padding:9px 12px!important}}

/* 2.29.1 — активация списков и действия в окне юридического лица */
.er-contract-readiness-card.is-upcoming{border-color:#9bd7ee;background:#effaff}.er-contract-readiness-card.is-upcoming b{color:#036b8f}
.er-contract-document-warning{display:block!important;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(180,83,9,.24);color:#9a5a00!important;font-size:10px!important;line-height:1.4}
.er-contract-modal-list-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:8px!important;cursor:default!important}
.er-contract-modal-list-row__open{appearance:none;-webkit-appearance:none;width:100%;display:grid;grid-template-columns:125px minmax(0,1fr) 150px 30px;align-items:center;gap:12px;padding:5px 6px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;border-radius:9px}
.er-contract-modal-list-row__open:hover{background:#f7faff}
.er-contract-modal-list-row__actions{display:flex;align-items:center;justify-content:flex-end;min-width:128px}
.er-contract-modal-list-row__actions .er-btn{white-space:nowrap}
.er-contract-modal-active-mark{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #a7e7bd;border-radius:10px;background:#dcfce7;color:#137333;font-size:10px;font-weight:900;white-space:nowrap}
.er-contract-status-actions [data-status="draft"]{border-color:#c5d1e0;background:#f8fafc;color:#475569}
.er-contract-control-actions-v229 .er-btn-success{min-width:190px;font-weight:900}
.er-contract-readiness-card ul{padding-left:2px}
@media(max-width:1050px){.er-contract-modal-list-row__open{grid-template-columns:110px minmax(0,1fr) 30px}.er-contract-modal-list-row__open .er-contract-modal-list-row__stats{display:none}}
@media(max-width:720px){.er-contract-modal-list-row{grid-template-columns:1fr!important}.er-contract-modal-list-row__open{grid-template-columns:1fr 24px}.er-contract-modal-list-row__open .er-contract-modal-list-row__state{grid-column:1/-1}.er-contract-modal-list-row__actions{justify-content:flex-start;min-width:0}.er-contract-modal-list-row__actions .er-btn{width:100%}}


/* 2.29.2 — единые действия Word / PDF для юридических документов */
.er-doc-format-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.er-doc-format-group{display:grid;grid-template-columns:auto auto;gap:6px;padding:7px;border:1px solid #dbe5f2;border-radius:12px;background:#f8fafc;min-width:126px}
.er-doc-format-group>span{grid-column:1/-1;font-size:10px;line-height:1;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#64748b}
.er-btn.er-btn-pdf{background:linear-gradient(135deg,#dc2626,#b91c1c)!important;border-color:#b91c1c!important;color:#fff!important;box-shadow:0 6px 16px rgba(185,28,28,.16)!important}
.er-btn.er-btn-pdf:hover:not(:disabled){background:linear-gradient(135deg,#ef4444,#b91c1c)!important;transform:translateY(-1px)}
.er-contract-doc-formats{align-items:stretch!important}
.er-contract-doc-formats .er-doc-format-group .er-btn{min-width:52px;justify-content:center}
@media(max-width:900px){.er-contract-doc-formats{width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))}.er-doc-format-group{min-width:0;width:100%;box-sizing:border-box}}
@media(max-width:640px){.er-contract-doc-formats{grid-template-columns:1fr}}

/* 2.29.3 — поиск автомобилей в активных договорных списках по госномеру */
.er-contract-plate-alert{display:flex;gap:11px;align-items:flex-start;margin-top:9px;padding:11px 12px;border:1px solid #9fc2ff;border-radius:13px;background:linear-gradient(135deg,#eff6ff,#f8fbff);box-shadow:0 7px 18px rgba(37,99,235,.08)}
.er-contract-plate-alert__icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:#2563eb;color:#fff;font-size:15px;font-weight:950}
.er-contract-plate-alert__body{min-width:0}.er-contract-plate-alert__title{margin:0 0 3px;color:#153e91;font-size:12px;font-weight:950}.er-contract-plate-alert__text{color:#334155;font-size:11px;line-height:1.42;font-weight:650}
.er-contract-plate-alert__meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.er-contract-plate-alert__meta span{display:inline-flex;padding:4px 7px;border:1px solid #c8daf8;border-radius:999px;background:#fff;color:#40516b;font-size:9px}.er-contract-plate-alert__meta span.is-alert{border-color:#f2c66d;background:#fff8df;color:#925500;font-weight:900}
.er-contract-plate-alert__manager{margin-top:7px;padding-top:7px;border-top:1px dashed rgba(37,99,235,.25);color:#1e3a5f;font-size:10px;font-weight:850}
.er-contract-plate-alert.is-warning{border-color:#efc46a;background:linear-gradient(135deg,#fff8df,#fffdf6);box-shadow:0 7px 18px rgba(180,83,9,.08)}.er-contract-plate-alert.is-warning .er-contract-plate-alert__icon{background:#d97706}.er-contract-plate-alert.is-warning .er-contract-plate-alert__title{color:#92400e}.er-contract-plate-alert.is-warning .er-contract-plate-alert__manager{border-top-color:rgba(180,83,9,.25);color:#7c3f00}
.er-contract-plate-alert.is-danger{border-color:#f2a8a8;background:linear-gradient(135deg,#fff1f1,#fffafa);box-shadow:0 7px 18px rgba(185,28,28,.08)}.er-contract-plate-alert.is-danger .er-contract-plate-alert__icon{background:#dc2626}.er-contract-plate-alert.is-danger .er-contract-plate-alert__title{color:#991b1b}.er-contract-plate-alert.is-danger .er-contract-plate-alert__manager{border-top-color:rgba(185,28,28,.22);color:#8b1d1d}

.er-table-records tr.er-record-contract-match>td{background-image:linear-gradient(90deg,rgba(37,99,235,.075),rgba(37,99,235,.018))!important}.er-table-records tr.er-record-contract-match>td:first-child{box-shadow:inset 5px 0 0 #2563eb}
.er-table-records tr.er-record-contract-mismatch>td{background-image:linear-gradient(90deg,rgba(245,158,11,.13),rgba(245,158,11,.025))!important}.er-table-records tr.er-record-contract-mismatch>td:first-child{box-shadow:inset 5px 0 0 #d97706}
.er-table-records tr.er-record-contract-ambiguous>td{background-image:linear-gradient(90deg,rgba(239,68,68,.13),rgba(239,68,68,.025))!important}.er-table-records tr.er-record-contract-ambiguous>td:first-child{box-shadow:inset 5px 0 0 #dc2626}
.er-table-records tr.er-record-contract-completed>td{background-image:linear-gradient(90deg,rgba(34,197,94,.105),rgba(34,197,94,.02))!important}.er-table-records tr.er-record-contract-completed>td:first-child{box-shadow:inset 5px 0 0 #16a34a}
.er-record-contract-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px;max-width:360px}.er-record-contract-badge{display:inline-flex;align-items:center;max-width:100%;padding:3px 6px;border:1px solid #a9c5f7;border-radius:7px;background:#edf5ff;color:#1d4ed8;font-size:8px;font-weight:900;line-height:1.25;white-space:normal}.er-record-contract-badge.is-list{border-color:#d5deeb;background:#f8fafc;color:#5b687a}.er-record-contract-badge.is-linked{border-color:#b6d5ff;background:#eff6ff;color:#1d4ed8}.er-record-contract-badge.is-completed{border-color:#9de0b4;background:#eafbef;color:#16723a}.er-record-contract-badge.is-mismatch{border-color:#efc66f;background:#fff7dc;color:#925500}.er-record-contract-badge.is-ambiguous{border-color:#efaaaa;background:#fff0f0;color:#a71919}.er-record-contract-badge.is-contact{border-color:#f4c0a2;background:#fff4eb;color:#9a4312}

.er-record-contract-notice{margin:0 0 14px;padding:14px;border:1px solid #9fc2ff;border-radius:15px;background:linear-gradient(135deg,#eef6ff,#fbfdff);box-shadow:0 9px 24px rgba(37,99,235,.08)}.er-record-contract-notice__head{display:flex;align-items:flex-start;gap:10px}.er-record-contract-notice__icon{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:10px;background:#2563eb;color:#fff;font-size:16px;font-weight:950}.er-record-contract-notice__head b{display:block;color:#173d83;font-size:13px}.er-record-contract-notice__head span{display:block;margin-top:3px;color:#40516b;font-size:11px;line-height:1.42}.er-record-contract-notice__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:11px}.er-record-contract-notice__grid>div{padding:8px 9px;border:1px solid #d6e3f5;border-radius:10px;background:rgba(255,255,255,.82)}.er-record-contract-notice__grid span{display:block;color:#748198;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.er-record-contract-notice__grid b{display:block;margin-top:3px;color:#27364d;font-size:10px;overflow-wrap:anywhere}.er-record-contract-notice__warning{margin-top:10px;padding:9px 10px;border-radius:10px;background:#fff7dc;color:#854d0e;font-size:10px;font-weight:900}.er-record-contract-notice.is-warning{border-color:#e9be65;background:linear-gradient(135deg,#fff8e2,#fffdfa)}.er-record-contract-notice.is-warning .er-record-contract-notice__icon{background:#d97706}.er-record-contract-notice.is-warning .er-record-contract-notice__head b{color:#874400}.er-record-contract-notice.is-danger{border-color:#eea4a4;background:linear-gradient(135deg,#fff0f0,#fffafa)}.er-record-contract-notice.is-danger .er-record-contract-notice__icon{background:#dc2626}.er-record-contract-notice.is-danger .er-record-contract-notice__head b{color:#991b1b}.er-record-contract-notice.is-completed{border-color:#99dfb0;background:linear-gradient(135deg,#ebfaef,#fbfffc)}.er-record-contract-notice.is-completed .er-record-contract-notice__icon{background:#16a34a}.er-record-contract-notice.is-completed .er-record-contract-notice__head b{color:#166534}
.er-duplicate-popup--contract{border-top:7px solid #2563eb!important}.er-duplicate-popup--contract .er-duplicate-popup-title{color:#153e91!important}.er-duplicate-popup--contract .er-duplicate-popup-body{font-weight:700;line-height:1.48}
@media(max-width:760px){.er-record-contract-notice__grid{grid-template-columns:1fr 1fr}.er-record-contract-badges{max-width:250px}}
@media(max-width:520px){.er-record-contract-notice__grid{grid-template-columns:1fr}.er-contract-plate-alert{padding:10px}.er-contract-plate-alert__meta{display:grid}.er-contract-plate-alert__meta span{width:fit-content}}


/* 2.29.7 — отдельные даты счёта и акта */
.er-contract-documents-card-v2297{overflow:hidden}
.er-contract-document-period-v2297{display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(170px,.6fr) minmax(170px,.6fr);gap:12px;align-items:end;padding:14px 17px;background:#f8fbff;border-bottom:1px solid #dbe7f5}
.er-contract-document-period-v2297__title{display:flex;flex-direction:column;gap:3px;color:#10203b}.er-contract-document-period-v2297__title b{font-size:13px}.er-contract-document-period-v2297__title small{font-size:10px;color:#64748b}
.er-contract-document-period-v2297 .er-field{margin:0}.er-contract-document-period-v2297 label,.er-contract-document-card-v2297 label{font-size:9px!important}.er-contract-document-period-v2297 input,.er-contract-document-card-v2297 input{height:41px!important}
.er-contract-document-cards-v2297{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(380px,1.45fr) minmax(300px,1.1fr);gap:12px;padding:15px 17px 17px}
.er-contract-document-card-v2297{display:flex;flex-direction:column;min-width:0;border:1px solid #d9e3f0;border-radius:15px;background:#fff;padding:13px;box-shadow:0 7px 20px rgba(15,23,42,.045)}
.er-contract-document-card-v2297.is-invoice{border-color:#93c5fd;background:linear-gradient(180deg,#f8fbff,#fff)}
.er-contract-document-card-v2297.is-act{border-color:#c4b5fd;background:linear-gradient(180deg,#fbfaff,#fff)}
.er-contract-document-card-v2297__head{display:flex;flex-direction:column;gap:2px;margin-bottom:11px}.er-contract-document-card-v2297__head span{font-size:14px;font-weight:950;color:#10203b}.er-contract-document-card-v2297__head small{font-size:9px;line-height:1.35;color:#64748b}
.er-contract-document-card-v2297__date{display:flex;flex-direction:column;gap:2px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;padding:10px 11px}.er-contract-document-card-v2297__date b{font-size:14px;color:#1d4ed8}.er-contract-document-card-v2297__date span{font-size:9px;color:#64748b}
.er-contract-document-card-v2297__fields{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px}.er-contract-document-card-v2297.is-act .er-contract-document-card-v2297__fields{grid-template-columns:repeat(2,minmax(130px,1fr))}.er-contract-document-card-v2297__fields .er-field{margin:0;min-width:0}
.er-contract-document-card-v2297__hint{margin-top:8px;padding:7px 9px;border-radius:9px;background:#dbeafe;color:#1e40af;font-size:9px;font-weight:800}
.er-contract-document-card-v2297__actions{display:flex;gap:7px;align-items:center;margin-top:auto;padding-top:12px}.er-contract-document-card-v2297__actions .er-btn{min-width:70px}
@media(max-width:1300px){.er-contract-document-cards-v2297{grid-template-columns:1fr 1fr}.er-contract-document-card-v2297.is-contract{grid-column:1/-1}.er-contract-document-card-v2297.is-contract{display:grid;grid-template-columns:1fr minmax(180px,.45fr) auto;gap:12px;align-items:center}.er-contract-document-card-v2297.is-contract .er-contract-document-card-v2297__head{margin:0}.er-contract-document-card-v2297.is-contract .er-contract-document-card-v2297__actions{margin:0;padding:0}}
@media(max-width:900px){.er-contract-document-period-v2297{grid-template-columns:1fr 1fr}.er-contract-document-period-v2297__title{grid-column:1/-1}.er-contract-document-cards-v2297{grid-template-columns:1fr}.er-contract-document-card-v2297.is-contract{grid-column:auto;display:flex}.er-contract-document-card-v2297__fields{grid-template-columns:1fr 1fr}.er-contract-document-card-v2297__fields .er-field:last-child{grid-column:1/-1}}
@media(max-width:600px){.er-contract-document-period-v2297,.er-contract-document-cards-v2297{padding-left:12px;padding-right:12px}.er-contract-document-period-v2297{grid-template-columns:1fr}.er-contract-document-period-v2297__title{grid-column:auto}.er-contract-document-card-v2297__fields,.er-contract-document-card-v2297.is-act .er-contract-document-card-v2297__fields{grid-template-columns:1fr}.er-contract-document-card-v2297__fields .er-field:last-child{grid-column:auto}.er-contract-document-card-v2297__actions .er-btn{flex:1}}


/* 2.29.8 — мастер настройки новых MAX-чатов после поиска */
body.er-max-new-chats-modal-open{overflow:hidden!important;}
.er-max-new-chats-modal{position:fixed;inset:0;z-index:1000500;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .18s ease;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.er-max-new-chats-modal.is-open{opacity:1;}
.er-max-new-chats-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px);}
.er-max-new-chats-modal__panel{position:relative;display:flex;flex-direction:column;width:min(1120px,calc(100vw - 32px));max-height:min(92vh,940px);overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:24px;background:#f5f8fc;box-shadow:0 32px 90px rgba(15,23,42,.35);transform:translateY(10px) scale(.99);transition:transform .18s ease;}
.er-max-new-chats-modal.is-open .er-max-new-chats-modal__panel{transform:none;}
.er-max-new-chats-modal__head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 20px;background:linear-gradient(135deg,#10244d 0%,#1757b8 100%);color:#fff;}
.er-max-new-chats-modal__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:16px;background:rgba(255,255,255,.15);font-size:23px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);}
.er-max-new-chats-modal__head h3{margin:0 0 4px!important;color:#fff!important;font-size:20px!important;line-height:1.2!important;}
.er-max-new-chats-modal__head p{margin:0!important;color:rgba(255,255,255,.82)!important;font-size:12px!important;line-height:1.45!important;}
.er-max-new-chats-modal__close{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;font-size:27px;line-height:1;cursor:pointer;}
.er-max-new-chats-modal__close:hover{background:rgba(255,255,255,.23);}
.er-max-new-chats-modal__summary{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:11px 20px;border-bottom:1px solid #dce5f0;background:#fff;color:#334155;font-size:12px;}
.er-max-new-chats-modal__summary span{display:inline-flex;gap:5px;padding:5px 9px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-weight:800;}
.er-max-new-chats-modal__summary em{font-style:normal;color:#64748b;}
.er-max-new-chats-modal__body{display:flex;flex-direction:column;gap:12px;padding:16px 18px;overflow-y:auto;overscroll-behavior:contain;}
.er-max-new-chat-card{position:relative;display:flex;flex-direction:column;gap:13px;padding:16px;border:1px solid #d7e2f0;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.055);transition:.16s ease;}
.er-max-new-chat-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;border-radius:18px 0 0 18px;background:#2563eb;}
.er-max-new-chat-card.is-skipped{opacity:.62;background:#f8fafc;box-shadow:none;}
.er-max-new-chat-card.is-skipped::before{background:#94a3b8;}
.er-max-new-chat-card.is-saving::before{background:#f59e0b;}
.er-max-new-chat-card.is-saved{border-color:#8bd2a6;background:#f5fff8;}
.er-max-new-chat-card.is-saved::before{background:#16a34a;}
.er-max-new-chat-card.has-error{border-color:#efabab;background:#fff7f7;}
.er-max-new-chat-card.has-error::before{background:#dc2626;}
.er-max-new-chat-card__head{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(260px,1fr) auto;align-items:center;gap:12px;}
.er-max-new-chat-select{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:900;color:#1e3a8a;cursor:pointer;}
.er-max-new-chat-select input{width:19px;height:19px;margin:0;accent-color:#2563eb;}
.er-max-new-chat-identity{display:flex;align-items:center;gap:10px;min-width:0;}
.er-max-new-chat-icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#eaf2ff;font-size:18px;}
.er-max-new-chat-identity>div{display:flex;flex-direction:column;gap:3px;min-width:0;}
.er-max-new-chat-identity b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#10203b;}
.er-max-new-chat-identity span{font-size:10px;color:#64748b;overflow-wrap:anywhere;}
.er-max-new-chat-grid{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;}
.er-max-new-chat-field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:850;color:#475569;}
.er-max-new-chat-field input{width:100%;box-sizing:border-box;border:1px solid #cfdaea;border-radius:11px;padding:9px 10px;background:#fff;color:#0f172a;font:700 13px/1.25 inherit;}
.er-max-new-chat-field input:focus{outline:0;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.11);}
.er-max-new-chat-destinations{display:grid;grid-template-columns:minmax(170px,.7fr) repeat(3,minmax(190px,1fr));gap:9px;align-items:stretch;}
.er-max-new-chat-destinations__title{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:11px 12px;border-radius:13px;background:#f1f5f9;}
.er-max-new-chat-destinations__title b{font-size:12px;color:#334155;}.er-max-new-chat-destinations__title span{font-size:10px;color:#64748b;}
.er-max-new-chat-option{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid #d6e0ee;border-radius:13px;background:#fbfdff;cursor:pointer;transition:.15s ease;}
.er-max-new-chat-option:hover{border-color:#93b4e7;box-shadow:0 4px 14px rgba(30,64,175,.06);}
.er-max-new-chat-option input{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0;accent-color:#2563eb;}
.er-max-new-chat-option.is-bot input{accent-color:#16a34a;}.er-max-new-chat-option.is-default input{accent-color:#7c3aed;}
.er-max-new-chat-option span{display:flex;flex-direction:column;gap:3px;min-width:0;}.er-max-new-chat-option b{font-size:11px;color:#17233a;}.er-max-new-chat-option em{font-size:10px;line-height:1.35;font-style:normal;color:#64748b;}
.er-max-new-chat-last{display:flex;align-items:center;gap:7px 12px;flex-wrap:wrap;padding:8px 10px;border-radius:10px;background:#f8fafc;font-size:10px;color:#64748b;}
.er-max-new-chat-last b{color:#475569;}.er-max-new-chat-last small{max-width:620px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.er-max-new-chat-card__status{min-height:16px;font-size:11px;font-weight:800;color:#64748b;}.er-max-new-chat-card.has-error .er-max-new-chat-card__status{color:#b91c1c;}.er-max-new-chat-card.is-saved .er-max-new-chat-card__status{color:#15803d;}
.er-max-new-chats-modal__footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:14px 18px;border-top:1px solid #dce5f0;background:#fff;box-shadow:0 -8px 20px rgba(15,23,42,.04);}
.er-max-new-chats-modal__footer>div{font-size:11px;color:#64748b;}
.er-max-new-chats-modal.is-saving [data-er-max-new-chats-close]{pointer-events:none;opacity:.55;}
@media(max-width:1050px){.er-max-new-chat-card__head{grid-template-columns:1fr auto}.er-max-new-chat-select{grid-column:1/-1}.er-max-new-chat-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}.er-max-new-chat-destinations__title{grid-column:1/-1}}
@media(max-width:720px){.er-max-new-chats-modal{padding:7px}.er-max-new-chats-modal__panel{width:100%;max-height:calc(100vh - 14px);border-radius:18px}.er-max-new-chats-modal__head{grid-template-columns:auto minmax(0,1fr) auto;padding:14px}.er-max-new-chats-modal__icon{width:40px;height:40px}.er-max-new-chats-modal__head h3{font-size:17px!important}.er-max-new-chat-card__head,.er-max-new-chat-grid,.er-max-new-chat-destinations{grid-template-columns:1fr}.er-max-new-chat-select{grid-column:auto}.er-max-new-chat-destinations__title{grid-column:auto}.er-max-new-chat-card__head>.er-btn{width:100%}.er-max-new-chats-modal__footer{grid-template-columns:1fr}.er-max-new-chats-modal__footer .er-btn{width:100%}.er-max-new-chats-modal__summary{padding:10px 14px}.er-max-new-chats-modal__body{padding:12px}.er-max-new-chat-identity b{white-space:normal}}


/* 2.30.0 — one-day shift editor: explicit single-date assignment */
.er-shift-single-day-box{
  min-width:0;
  border-color:#86efac!important;
  background:linear-gradient(180deg,#f0fdf4 0%,#f8fffb 100%)!important;
}
.er-shift-single-day-help{
  margin:-2px 0 10px;
  padding:9px 10px;
  border-radius:11px;
  background:#fff;
  border:1px solid #bbf7d0;
  color:#166534;
  font-size:12px;
  line-height:1.45;
}
.er-shift-single-day-box .er-shift-day-info{min-height:0!important;}
.er-shift-single-day-box .er-shift-quick-actions{
  margin:12px 0 0!important;
  padding:13px!important;
  border:1px solid #93c5fd!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(37,99,235,.08);
}
.er-shift-quick-actions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.er-shift-one-day-badge{
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
  padding:5px 9px;border-radius:999px;background:#dcfce7;color:#15803d;
  border:1px solid #86efac;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;
}
.er-shift-one-day-note{
  margin-top:9px;padding:9px 10px;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe;
  color:#1e3a8a;font-size:12px;line-height:1.42;
}
.er-shift-quick-actions-row--single-day{display:grid!important;grid-template-columns:1fr;gap:8px!important;}
.er-shift-quick-actions-row--single-day .er-btn{width:100%;min-height:42px;justify-content:center;text-align:center;white-space:normal;line-height:1.25;}
.er-shift-one-day-primary{background:linear-gradient(135deg,#16a34a,#15803d)!important;border-color:#15803d!important;color:#fff!important;box-shadow:0 9px 20px rgba(22,163,74,.18)!important;}
.er-shift-one-day-primary:hover{background:linear-gradient(135deg,#15803d,#166534)!important;transform:translateY(-1px);}
.er-shift-one-day-primary.is-loading{opacity:.72;cursor:wait;}
.er-shift-one-day-primary.is-loading::after{content:"…";margin-left:6px;}
@media (min-width:1441px){
  .er-shift-employee-block-body{grid-template-columns:minmax(560px,660px) minmax(720px,820px)!important;}
  .er-shift-employee-settings{grid-template-columns:290px minmax(410px,1fr)!important;max-width:820px!important;}
}
@media (max-width:1440px){
  .er-shift-single-day-box{min-width:0;}
}


/* CRM-ТО 2.32.4: explicit one-working-day-in-month action */
.er-shift-only-one-month-box{
  margin-top:12px;
  padding:12px;
  border:1px solid #fecaca;
  border-radius:12px;
  background:#fff7f7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.er-shift-only-one-month-box span{color:#64748b;font-size:12px;line-height:1.45;}
.er-shift-only-one-month-box .er-btn{white-space:normal;text-align:center;}
@media (max-width:900px){
  .er-shift-only-one-month-box .er-btn{width:100%;}
}


/* 2.32.5 — redesigned shift schedules with restored classic actions */
.er-shift-filter-card{border:1px solid #dce7f6;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);box-shadow:0 10px 24px rgba(15,23,42,.05)}
.er-shift-employee-block{border:1px solid #dbe4f2;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.05);overflow:hidden;background:#fff}
.er-shift-employee-block-head{padding:16px 18px;background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%);border-bottom:1px solid #dce7f4}
.er-shift-employee-block-title{font-size:24px;font-weight:900;color:#10203b}
.er-shift-employee-block-meta{margin-top:4px;color:#5b6b81;font-size:12px}
.er-shift-employee-block-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.er-shift-employee-block-badges .er-btn{min-height:34px}
.er-shift-employee-block-body{padding:16px}
.er-shift-employee-settings{grid-template-columns:minmax(260px,320px) minmax(260px,320px) minmax(420px,1fr)!important;max-width:none!important;align-items:start}
.er-shift-settings-box{border:1px solid #dce6f3;border-radius:16px;background:#fff;box-shadow:0 7px 18px rgba(15,23,42,.04)}
.er-shift-settings-box .er-form{margin-top:10px}
.er-shift-settings-sub{margin:-3px 0 10px;color:#64748b;font-size:12px;line-height:1.45}
.er-shift-settings-box--classic{background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%)}
.er-shift-settings-box--legacy{background:linear-gradient(180deg,#fffdfa 0%,#ffffff 100%);border-color:#f0d7a8}
.er-shift-legacy-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
.er-shift-legacy-hint{margin-top:10px;padding:10px 11px;border-radius:11px;background:#fff7e6;border:1px solid #f6d597;color:#8a5a00;font-size:12px;line-height:1.45}
.er-shift-classic-selected-box{margin-top:12px;padding:12px;border:1px solid #d6e4ff;border-radius:12px;background:#f8fbff;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.er-shift-classic-selected-box span{color:#64748b;font-size:12px;line-height:1.45}
.er-shift-single-day-box{background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%)!important}
.er-shift-day-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.er-shift-day-info-item{background:#fff;border:1px solid #dce7f4;border-radius:12px;padding:10px 11px}
.er-shift-day-info-item span{display:block;color:#7c8aa0;font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.04em;margin-bottom:4px}
.er-shift-day-info-item strong{display:block;color:#10203b;font-size:13px;line-height:1.35}
.er-shift-day-info-item--wide{grid-column:1/-1}
@media (max-width:1400px){.er-shift-employee-settings{grid-template-columns:repeat(2,minmax(280px,1fr)) !important}.er-shift-single-day-box{grid-column:1/-1}}
@media (max-width:900px){.er-shift-employee-block-title{font-size:20px}.er-shift-employee-settings{grid-template-columns:1fr !important}.er-shift-single-day-box{grid-column:auto}.er-shift-classic-selected-box .er-btn,.er-shift-only-one-month-box .er-btn{width:100%}.er-shift-day-info-grid{grid-template-columns:1fr!important}}


/* 2.32.6 — unified and clearer shift schedule UI */
.er-shift-filter-card{border:1px solid #dbe5f2;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);box-shadow:0 12px 28px rgba(15,23,42,.05)}
.er-shift-global-hint{margin-top:10px;padding:12px 14px;border-radius:14px;background:#f1f6ff;border:1px solid #d8e6fb;color:#31435f;line-height:1.45}
.er-shift-all-employees-grid{display:flex;flex-direction:column;gap:16px}
.er-shift-employee-block{border:1px solid #dbe4f1;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05);overflow:hidden}
.er-shift-employee-block-head{padding:18px 20px;background:linear-gradient(180deg,#fbfdff 0%,#f6faff 100%);border-bottom:1px solid #dce6f3}
.er-shift-employee-block-title{font-size:22px;font-weight:900;color:#10203b;line-height:1.15}
.er-shift-employee-block-meta{margin-top:5px;color:#5d6f86;font-size:12px}
.er-shift-employee-block-badges{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.er-shift-employee-block-badges .er-btn{min-height:34px}
.er-shift-employee-block-body--unified{display:grid;grid-template-columns:minmax(540px,720px) minmax(420px,1fr);gap:18px;padding:18px;align-items:start}
.er-shift-calendar-shell{border:1px solid #dbe5f3;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.er-shift-calendar-shell__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.er-shift-calendar-shell__title{font-size:18px;font-weight:900;color:#10203b}
.er-shift-calendar-shell__sub{margin-top:4px;color:#64748b;font-size:12px;line-height:1.45}
.er-shift-sidebar-unified{display:flex;flex-direction:column;gap:14px}
.er-shift-unified-card{border:1px solid #dbe5f2;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);padding:14px 14px 15px}
.er-shift-unified-card__head{margin-bottom:10px}
.er-shift-unified-card--overview{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}
.er-shift-unified-card--quick{background:linear-gradient(180deg,#f0fdf4 0%,#fff 100%);border-color:#b7ebc6}
.er-shift-unified-card--classic{background:linear-gradient(180deg,#fffaf0 0%,#fff 100%);border-color:#edd9b2}
.er-shift-settings-title{font-size:16px;font-weight:900;color:#0f172a;line-height:1.2}
.er-shift-settings-sub{margin-top:4px;color:#64748b;font-size:12px;line-height:1.45}
.er-shift-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.er-shift-overview-item{padding:10px 11px;border:1px solid #dce6f3;border-radius:12px;background:#fff}
.er-shift-overview-item span{display:block;color:#7b8a9f;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.er-shift-overview-item b{display:block;color:#10203b;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.er-shift-day-info{min-height:0!important}
.er-shift-day-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.er-shift-day-info-item{padding:10px 11px;border:1px solid #dce6f3;border-radius:12px;background:#fff}
.er-shift-day-info-item span{display:block;color:#7b8a9f;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.er-shift-day-info-item strong{display:block;color:#10203b;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.er-shift-day-info-item--wide{grid-column:1/-1}
.er-shift-day-info-empty,.er-shift-quick-placeholder{padding:12px 13px;border-radius:12px;border:1px dashed #c8d7ee;background:#f8fbff;color:#52637b;font-size:12px;line-height:1.5}
.er-shift-quick-placeholder{background:#ffffff;border-color:#cde8d5}
.er-shift-unified-card .er-form{margin-top:10px}
.er-shift-unified-card .er-field{margin-bottom:10px}
.er-shift-legacy-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px}
.er-shift-legacy-hint{margin-top:10px;padding:11px 12px;border-radius:12px;background:#fff7e6;border:1px solid #f2d59d;color:#8c5a00;font-size:12px;line-height:1.5}
.er-shift-quick-actions{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.er-shift-quick-actions-head{padding:12px;border:1px solid #dce7f4;border-radius:14px;background:#fff}
.er-shift-quick-actions-title{font-size:16px;font-weight:900;color:#10203b;line-height:1.2}
.er-shift-quick-actions-sub{margin-top:4px;color:#64748b;font-size:12px;line-height:1.45}
.er-shift-one-day-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#dcfce7;border:1px solid #86efac;color:#166534;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.er-shift-one-day-note,.er-shift-classic-selected-box,.er-shift-only-one-month-box{margin-top:12px}
.er-shift-one-day-note{padding:11px 12px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:12px;line-height:1.48}
.er-shift-quick-branch-field,.er-shift-quick-time-grid{margin-top:12px}
.er-shift-quick-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.er-shift-quick-actions-row--single-day{display:grid!important;grid-template-columns:1fr;gap:8px!important;margin-top:12px}
.er-shift-quick-actions-row--single-day .er-btn,.er-shift-classic-selected-box .er-btn,.er-shift-only-one-month-box .er-btn{width:100%;min-height:42px;justify-content:center;text-align:center;white-space:normal;line-height:1.25}
.er-shift-one-day-primary{background:linear-gradient(135deg,#16a34a,#15803d)!important;border-color:#15803d!important;color:#fff!important;box-shadow:0 8px 18px rgba(22,163,74,.18)!important}
.er-shift-classic-selected-box,.er-shift-only-one-month-box{padding:12px;border-radius:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.er-shift-classic-selected-box{border:1px solid #d7e5fb;background:#f8fbff}
.er-shift-only-one-month-box{border:1px solid #fecaca;background:#fff7f7}
.er-shift-classic-selected-box span,.er-shift-only-one-month-box span{color:#64748b;font-size:12px;line-height:1.45}
.er-shift-sidebar-quick.is-flash{box-shadow:0 0 0 3px rgba(34,197,94,.2),0 10px 28px rgba(15,23,42,.07);transition:box-shadow .2s ease}
@media (max-width:1500px){.er-shift-employee-block-body--unified{grid-template-columns:minmax(420px,1fr) minmax(380px,.9fr)}}
@media (max-width:1180px){.er-shift-employee-block-body--unified{grid-template-columns:1fr}.er-shift-overview-grid,.er-shift-day-info-grid,.er-shift-quick-time-grid{grid-template-columns:1fr}}
@media (max-width:820px){.er-shift-employee-block-head{padding:14px}.er-shift-employee-block-title{font-size:19px}.er-shift-employee-block-body--unified{padding:12px}.er-shift-calendar-shell,.er-shift-unified-card{padding:12px}}


/* 2.32.7 — full visual redesign for shift schedule page */
[data-er-manage="shift_schedules"]{display:block}
.er-shift-page-shell{display:flex;flex-direction:column;gap:14px}
.er-shift-page-hero{display:grid;grid-template-columns:minmax(320px,1.2fr) minmax(380px,1fr);gap:16px;padding:20px 22px;border-radius:24px;background:linear-gradient(135deg,#0f172a 0%,#13315c 54%,#1d4ed8 100%);box-shadow:0 18px 38px rgba(15,23,42,.16);color:#fff}
.er-shift-page-hero__eyebrow{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.er-shift-page-hero h2{margin:12px 0 8px!important;color:#fff!important;font-size:30px!important;line-height:1.08!important}
.er-shift-page-hero p{margin:0!important;color:rgba(255,255,255,.82)!important;font-size:13px!important;line-height:1.55!important;max-width:760px}
.er-shift-page-hero__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.er-shift-page-stat{padding:14px 15px;border-radius:18px;background:rgba(255,255,255,.11);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.er-shift-page-stat span{display:block;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.er-shift-page-stat b{display:block;margin-top:7px;font-size:22px;line-height:1.15;color:#fff;overflow-wrap:anywhere}
.er-shift-page-stat small{display:block;margin-top:6px;font-size:11px;line-height:1.45;color:rgba(255,255,255,.76)}
.er-shift-filter-card{border:1px solid #dbe5f2;background:#fff;border-radius:22px;box-shadow:0 12px 28px rgba(15,23,42,.05)}
.er-shift-toolbar{display:grid;grid-template-columns:minmax(360px,1fr) minmax(340px,.9fr);gap:16px;align-items:end;padding:18px 18px 14px}
.er-shift-toolbar__label{margin-bottom:6px;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.er-shift-toolbar__month-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid #dce7f4;border-radius:16px;background:#f8fbff}
.er-shift-toolbar__month-nav input[type="month"]{min-width:165px;height:40px;padding:0 11px;border:1px solid #cdd9eb;border-radius:12px;background:#fff;font-weight:800;color:#0f172a}
.er-shift-toolbar__right{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.er-shift-toolbar__search{display:flex;flex-direction:column;gap:6px}
.er-shift-toolbar__search label{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.er-shift-toolbar__search input{height:42px;padding:0 12px;border:1px solid #cfdced;border-radius:12px;background:#fff;font-weight:700;color:#10203b}
.er-shift-global-hint{margin:0 18px 18px;padding:14px 15px;border-radius:16px;background:linear-gradient(180deg,#f8fbff 0%,#f5f9ff 100%);border:1px solid #d9e7fb;color:#31435f;line-height:1.55}
.er-shift-legend-inline{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.er-shift-legend-inline span{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #dbe5f2;color:#334155;font-size:11px;font-weight:800}
.er-shift-legend-inline span::before{content:"";width:10px;height:10px;border-radius:999px;display:inline-block}
.er-shift-legend-inline .is-work::before{background:#bbf7d0;border:1px solid #4ade80}
.er-shift-legend-inline .is-off::before{background:#fff;border:1px solid #94a3b8}
.er-shift-legend-inline .is-today::before{background:#dbeafe;border:1px solid #3b82f6}
.er-shift-legend-inline .is-override::before{background:#fef3c7;border:1px solid #f59e0b}
.er-shift-hidden-card,.er-shift-swaps-card{border-radius:20px;border:1px solid #dbe4f1;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.er-shift-all-employees-grid{display:flex;flex-direction:column;gap:18px}
.er-shift-employee-block{border:1px solid #dbe4f1;border-radius:24px;background:#fff;box-shadow:0 14px 30px rgba(15,23,42,.05);overflow:hidden}
.er-shift-employee-block-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:18px 20px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border-bottom:1px solid #dde7f4}
.er-shift-employee-identity{display:flex;align-items:flex-start;gap:14px;min-width:0}
.er-shift-employee-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 54px;width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;font-size:18px;font-weight:900;box-shadow:0 10px 22px rgba(37,99,235,.22)}
.er-shift-employee-block-title{font-size:24px;font-weight:900;color:#10203b;line-height:1.1}
.er-shift-employee-block-meta{margin-top:5px;color:#607188;font-size:12px;line-height:1.45}
.er-shift-employee-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.er-shift-chip{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef4ff;border:1px solid #d4e1f7;color:#274364;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.er-shift-chip.is-role{background:#eefbf2;border-color:#c3eed0;color:#17603f}
.er-shift-chip.is-branch{background:#fff8e9;border-color:#f6dfaa;color:#946200}
.er-shift-chip.is-month{background:#f8fafc;border-color:#dbe4f1;color:#475569}
.er-shift-employee-block-badges{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.er-shift-employee-block-body--unified{display:grid;grid-template-columns:minmax(560px,1.1fr) minmax(420px,.9fr);gap:18px;padding:18px 20px 20px;align-items:start}
.er-shift-calendar-shell{border:1px solid #dbe5f2;border-radius:22px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);padding:16px;box-shadow:0 10px 22px rgba(15,23,42,.04)}
.er-shift-calendar-shell__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.er-shift-calendar-shell__title{font-size:18px;font-weight:900;color:#10203b}
.er-shift-calendar-shell__sub{margin-top:4px;color:#64748b;font-size:12px;line-height:1.45;max-width:560px}
.er-shift-employee-calendar-wrap,.er-shift-employee-calendar-wrap .er-shift-month-card{max-width:100%!important;width:100%!important}
.er-shift-employee-calendar-wrap .er-shift-month-card{padding:16px!important;border-radius:18px!important;border:1px solid #dce7f4!important;background:#fff!important;box-shadow:none!important}
.er-shift-employee-calendar-wrap .er-shift-month-title{font-size:24px!important;color:#10203b!important;margin-bottom:12px!important}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{font-size:11px!important;font-weight:900!important;color:#64748b!important;padding:5px 0!important}
.er-shift-employee-calendar-wrap .er-shift-month-grid{border-color:#dbe5f2!important;border-radius:14px;overflow:hidden}
.er-shift-employee-calendar-wrap .er-shift-month-cell,.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:74px!important;padding:9px 10px!important;border-color:#dbe5f2!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell{border-radius:0!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-work{background:#eefbf2!important;color:#166534!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-off{background:#fff!important;color:#334155!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-today{outline:2px solid rgba(37,99,235,.35)!important;outline-offset:-2px!important;box-shadow:inset 0 0 0 1px rgba(37,99,235,.15)!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell.has-override{box-shadow:inset 0 0 0 2px rgba(245,158,11,.38)!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(15,23,42,.08);z-index:2}
.er-shift-employee-calendar-wrap .er-shift-month-cell.is-selected{box-shadow:inset 0 0 0 2px rgba(22,163,74,.58),0 12px 20px rgba(22,163,74,.12)!important;transform:translateY(-1px);z-index:3}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{font-size:18px!important;font-weight:900!important}
.er-shift-employee-calendar-wrap .er-shift-month-note{left:8px!important;right:8px!important;bottom:7px!important;font-size:9px!important;line-height:1.15!important;max-height:none!important}
.er-shift-employee-calendar-wrap .er-shift-month-stats{padding-top:12px!important;font-size:14px!important;line-height:1.35!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.er-shift-sidebar-unified{display:flex;flex-direction:column;gap:14px;position:sticky;top:18px}
.er-shift-unified-card{border:1px solid #dbe5f2;border-radius:20px;background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.04);padding:15px 15px 16px}
.er-shift-unified-card__head{margin-bottom:10px}
.er-shift-unified-card--overview{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}
.er-shift-unified-card--quick{background:linear-gradient(180deg,#f0fdf4 0%,#fff 100%);border-color:#c2ebcd}
.er-shift-unified-card--classic{background:linear-gradient(180deg,#fffaf0 0%,#fff 100%);border-color:#f0ddba}
.er-shift-settings-title{font-size:17px;font-weight:900;color:#10203b;line-height:1.2}
.er-shift-settings-sub{margin-top:4px;color:#64748b;font-size:12px;line-height:1.48}
.er-shift-overview-grid,.er-shift-day-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.er-shift-overview-item,.er-shift-day-info-item{padding:10px 11px;border:1px solid #dde7f4;border-radius:13px;background:#fff}
.er-shift-overview-item span,.er-shift-day-info-item span{display:block;color:#7b8a9f;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.er-shift-overview-item b,.er-shift-day-info-item strong{display:block;color:#10203b;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.er-shift-day-info-item--wide{grid-column:1/-1}
.er-shift-day-info-empty,.er-shift-quick-placeholder{padding:13px 14px;border-radius:14px;border:1px dashed #d3dfee;background:#f8fbff;color:#52637b;font-size:12px;line-height:1.5}
.er-shift-quick-placeholder{border-color:#cce6d4;background:#fff}
.er-shift-unified-card .er-form{margin-top:10px}
.er-shift-unified-card .er-field{margin-bottom:10px}
.er-shift-unified-card .er-field label{font-size:10px!important;font-weight:900!important;letter-spacing:.04em;text-transform:uppercase;color:#64748b!important}
.er-shift-unified-card input,.er-shift-unified-card select{height:42px!important;border-radius:12px!important;border-color:#cfdaea!important;background:#fff!important;font-weight:700!important;color:#0f172a!important}
.er-shift-unified-card .er-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.er-shift-unified-card .er-checklist-row{padding:8px 9px;border:1px solid #dbe5f2;border-radius:12px;background:#fff}
.er-shift-legacy-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px}
.er-shift-legacy-hint{margin-top:10px;padding:11px 12px;border-radius:12px;background:#fff7e6;border:1px solid #f2d59d;color:#8c5a00;font-size:12px;line-height:1.5}
.er-shift-quick-actions{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.er-shift-quick-actions-head{padding:12px 13px;border:1px solid #dce7f4;border-radius:15px;background:#fff}
.er-shift-quick-actions-title{font-size:16px;font-weight:900;color:#10203b;line-height:1.2}
.er-shift-quick-actions-sub{margin-top:4px;color:#64748b;font-size:12px;line-height:1.45}
.er-shift-one-day-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#dcfce7;border:1px solid #86efac;color:#166534;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.er-shift-one-day-note,.er-shift-classic-selected-box,.er-shift-only-one-month-box{margin-top:12px}
.er-shift-one-day-note{padding:11px 12px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:12px;line-height:1.48}
.er-shift-quick-branch-field,.er-shift-quick-time-grid{margin-top:12px}
.er-shift-quick-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.er-shift-quick-actions-row--single-day{display:grid!important;grid-template-columns:1fr;gap:8px!important;margin-top:12px}
.er-shift-quick-actions-row--single-day .er-btn,.er-shift-classic-selected-box .er-btn,.er-shift-only-one-month-box .er-btn{width:100%;min-height:42px;justify-content:center;text-align:center;white-space:normal;line-height:1.25}
.er-shift-one-day-primary{background:linear-gradient(135deg,#16a34a,#15803d)!important;border-color:#15803d!important;color:#fff!important;box-shadow:0 8px 18px rgba(22,163,74,.18)!important}
.er-shift-classic-selected-box,.er-shift-only-one-month-box{padding:12px;border-radius:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.er-shift-classic-selected-box{border:1px solid #d7e5fb;background:#f8fbff}
.er-shift-only-one-month-box{border:1px solid #fecaca;background:#fff7f7}
.er-shift-classic-selected-box span,.er-shift-only-one-month-box span{color:#64748b;font-size:12px;line-height:1.45}
.er-shift-sidebar-quick.is-flash{box-shadow:0 0 0 3px rgba(34,197,94,.2),0 10px 28px rgba(15,23,42,.07);transition:box-shadow .2s ease}
@media (max-width:1500px){.er-shift-page-hero{grid-template-columns:1fr}.er-shift-page-hero__stats{grid-template-columns:repeat(3,minmax(0,1fr))}.er-shift-employee-block-body--unified{grid-template-columns:minmax(400px,1fr) minmax(360px,.92fr)}}
@media (max-width:1220px){.er-shift-toolbar{grid-template-columns:1fr}.er-shift-toolbar__right{grid-template-columns:1fr}.er-shift-employee-block-head{grid-template-columns:1fr}.er-shift-employee-block-badges{justify-content:flex-start}.er-shift-employee-block-body--unified{grid-template-columns:1fr}.er-shift-sidebar-unified{position:static}.er-shift-page-hero__stats,.er-shift-overview-grid,.er-shift-day-info-grid,.er-shift-quick-time-grid{grid-template-columns:1fr 1fr}}
@media (max-width:820px){.er-shift-page-hero{padding:16px}.er-shift-page-hero h2{font-size:24px!important}.er-shift-page-hero__stats,.er-shift-overview-grid,.er-shift-day-info-grid,.er-shift-quick-time-grid,.er-shift-unified-card .er-checklist{grid-template-columns:1fr}.er-shift-employee-identity{gap:10px}.er-shift-employee-avatar{width:46px;height:46px;border-radius:14px}.er-shift-employee-block-title{font-size:20px}.er-shift-employee-block-head,.er-shift-employee-block-body--unified{padding:14px}.er-shift-calendar-shell,.er-shift-unified-card{padding:13px}.er-shift-toolbar__month-nav{align-items:stretch}.er-shift-toolbar__month-nav input[type="month"]{width:100%}.er-shift-employee-calendar-wrap .er-shift-month-cell,.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:58px!important;padding:8px 7px!important}.er-shift-employee-calendar-wrap .er-shift-month-title{font-size:20px!important}.er-shift-employee-calendar-wrap .er-shift-month-daynum{font-size:15px!important}}

/* CRM-ТО 2.32.9 — compact master/detail shift planner */
.er-view-shift-planner{overflow:visible}
.er-shift-page-host{width:100%;max-width:none}
.er-shift-page-shell--planner{display:flex;flex-direction:column;gap:12px}
.er-shift-page-compact-head{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:16px 18px;border:1px solid #dbe5f2;border-radius:18px;background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.045)
}
.er-shift-page-kicker{display:block;color:#2563eb;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:3px}
.er-shift-page-compact-head h2{margin:0!important;color:#10203b!important;font-size:24px!important;line-height:1.1!important}
.er-shift-page-compact-head p{margin:4px 0 0!important;color:#64748b!important;font-size:12px!important;line-height:1.4!important}
.er-shift-page-compact-stats{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.er-shift-page-compact-stats>div{min-width:84px;padding:8px 11px;border:1px solid #dde7f4;border-radius:12px;background:#f8fbff;text-align:center}
.er-shift-page-compact-stats b{display:block;color:#10203b;font-size:18px;line-height:1}
.er-shift-page-compact-stats span{display:block;margin-top:4px;color:#718096;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}

.er-shift-controlbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important;border-radius:16px!important;margin:0!important}
.er-shift-controlbar-month{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.er-shift-controlbar-month input[type="month"]{height:38px;min-width:158px;padding:0 10px;border:1px solid #cfdbea;border-radius:10px;background:#fff;color:#10203b;font-weight:800}
.er-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid #d3deec;border-radius:10px;background:#fff;color:#334155;font-size:18px;font-weight:800;cursor:pointer}
.er-icon-btn:hover{background:#f1f5f9;border-color:#b9c8dc}
.er-shift-controlbar-filters{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(120px,.75fr) minmax(140px,.9fr) minmax(130px,.8fr) auto;gap:8px;align-items:center;flex:1;max-width:900px}
.er-shift-controlbar-filters input,.er-shift-controlbar-filters select{width:100%;height:38px;padding:0 10px;border:1px solid #cfdbea;border-radius:10px;background:#fff;color:#10203b;font-size:12px;font-weight:700}

.er-shift-planner-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:12px;align-items:start;min-height:620px}
.er-shift-people-panel{padding:0!important;overflow:hidden;position:sticky;top:12px;max-height:calc(100vh - 150px);display:flex;flex-direction:column;border-radius:18px!important}
.er-shift-people-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border-bottom:1px solid #e2eaf4;background:#f8fbff}
.er-shift-people-panel-head strong{color:#10203b;font-size:14px}
.er-shift-people-panel-head span{color:#718096;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.er-shift-person-list{padding:7px;overflow:auto;overscroll-behavior:contain}
.er-shift-person-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left;cursor:pointer;color:inherit;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.er-shift-person-row+ .er-shift-person-row{margin-top:3px}
.er-shift-person-row:hover{background:#f8fafc;border-color:#e2e8f0}
.er-shift-person-row.is-active{background:#eef5ff;border-color:#9ec3ff;box-shadow:inset 3px 0 0 #2563eb}
.er-shift-person-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#e8eef8;color:#304866;font-size:12px;font-weight:900}
.er-shift-person-row.is-active .er-shift-person-avatar{background:#2563eb;color:#fff}
.er-shift-person-copy{min-width:0;display:block}
.er-shift-person-copy strong{display:block;color:#13233e;font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.er-shift-person-copy small{display:block;margin-top:2px;color:#6b7c92;font-size:10px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.er-shift-person-copy em{display:inline-block;margin-top:4px;padding:2px 6px;border-radius:999px;background:#f1f5f9;color:#52637a;font-size:9px;font-style:normal;font-weight:900}
.er-shift-person-row.is-active .er-shift-person-copy em{background:#dbeafe;color:#1d4ed8}
.er-shift-person-count{min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:900}
.er-shift-person-row.is-active .er-shift-person-count{background:#fff;color:#1d4ed8}
.er-shift-filter-empty,.er-shift-list-empty{margin:8px;padding:12px;border:1px dashed #cbd5e1;border-radius:11px;background:#f8fafc;color:#64748b;font-size:11px;text-align:center}

.er-shift-detail-stack{min-width:0}
.er-shift-detail-card{margin:0!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(15,23,42,.045)!important}
.er-shift-detail-card[hidden]{display:none!important}
.er-shift-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e0e8f3;background:#fff}
.er-shift-detail-head .er-shift-employee-avatar{width:44px;height:44px;border-radius:12px;font-size:13px}
.er-shift-detail-head .er-shift-employee-block-title{font-size:18px!important}
.er-shift-detail-head .er-shift-employee-block-meta{font-size:11px!important;margin-top:3px}
.er-shift-detail-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.er-shift-employee-block-body--planner{display:grid!important;grid-template-columns:minmax(560px,1fr) 390px!important;gap:12px!important;padding:12px!important;align-items:start!important}
.er-shift-employee-block-body--planner .er-shift-calendar-shell{padding:12px!important;border-radius:16px!important;box-shadow:none!important}
.er-shift-calendar-shell__head{margin-bottom:9px!important;align-items:center!important}
.er-shift-calendar-shell__title{font-size:16px!important}
.er-shift-calendar-shell__sub{font-size:10px!important;margin-top:2px!important}
.er-shift-legend-inline--calendar{margin:0!important;padding:0!important;justify-content:flex-end}
.er-shift-legend-inline--calendar span{font-size:9px!important;padding:4px 7px!important}
.er-shift-employee-calendar-wrap .er-shift-month-card{padding:10px!important;border-radius:13px!important}
.er-shift-employee-calendar-wrap .er-shift-month-title{font-size:18px!important;margin-bottom:7px!important}
.er-shift-employee-calendar-wrap .er-shift-month-weekday{font-size:9px!important;padding:3px 0!important}
.er-shift-employee-calendar-wrap .er-shift-month-cell,.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:61px!important;padding:6px 7px!important}
.er-shift-employee-calendar-wrap .er-shift-month-daynum{font-size:15px!important}
.er-shift-employee-calendar-wrap .er-shift-month-note{left:5px!important;right:5px!important;bottom:5px!important;font-size:8px!important;max-height:19px!important;overflow:hidden!important}
.er-shift-employee-calendar-wrap .er-shift-month-stats{padding-top:8px!important;font-size:11px!important}
.er-shift-calendar-loading{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#64748b}
.er-shift-calendar-loading span{width:30px;height:30px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:erShiftSpin .8s linear infinite}
.er-shift-calendar-loading b{font-size:11px}
@keyframes erShiftSpin{to{transform:rotate(360deg)}}

.er-shift-inspector{position:sticky;top:12px;border:1px solid #dbe5f2;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.035)}
.er-shift-inspector-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-bottom:1px solid #dde7f4;background:#f8fafc}
.er-shift-inspector-tabs button{min-height:42px;padding:8px 7px;border:0;border-right:1px solid #e2e8f0;background:transparent;color:#64748b;font-size:10px;font-weight:900;cursor:pointer}
.er-shift-inspector-tabs button:last-child{border-right:0}
.er-shift-inspector-tabs button.is-active{background:#fff;color:#1d4ed8;box-shadow:inset 0 -3px 0 #2563eb}
.er-shift-inspector-panel{display:none;padding:12px}
.er-shift-inspector-panel.is-active{display:block}
.er-shift-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.er-shift-panel-heading strong{display:block;color:#10203b;font-size:14px}
.er-shift-panel-heading span{display:block;margin-top:2px;color:#718096;font-size:10px;line-height:1.35}
.er-link-btn{padding:0;border:0;background:none;color:#2563eb;font-size:10px;font-weight:900;cursor:pointer;white-space:nowrap}
.er-shift-inspector .er-shift-day-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
.er-shift-inspector .er-shift-day-info-item{padding:8px 9px!important;border-radius:10px!important}
.er-shift-inspector .er-shift-day-info-item span{font-size:8px!important;margin-bottom:2px!important}
.er-shift-inspector .er-shift-day-info-item strong{font-size:11px!important}
.er-shift-inspector .er-shift-day-info-empty,.er-shift-inspector .er-shift-quick-placeholder{padding:10px!important;border-radius:10px!important;font-size:10px!important;line-height:1.4!important}
.er-shift-inspector .er-shift-quick-placeholder{margin-top:8px}
.er-shift-inspector .er-shift-quick-actions-head{padding:9px 10px!important;border-radius:10px!important}
.er-shift-inspector .er-shift-quick-actions-title{font-size:13px!important}
.er-shift-inspector .er-shift-quick-actions-sub,.er-shift-inspector .er-shift-one-day-note,.er-shift-inspector .er-shift-classic-selected-box span,.er-shift-inspector .er-shift-only-one-month-box span{font-size:10px!important}
.er-shift-inspector .er-shift-one-day-note{padding:8px 9px!important;margin-top:8px!important}
.er-shift-inspector .er-field{margin-bottom:8px!important}
.er-shift-inspector .er-field label{font-size:9px!important;margin-bottom:4px!important}
.er-shift-inspector input,.er-shift-inspector select{height:36px!important;border-radius:9px!important;font-size:11px!important}
.er-shift-inspector .er-shift-quick-time-grid{gap:7px!important;margin-top:8px!important}
.er-shift-inspector .er-shift-quick-actions-row--single-day{gap:6px!important;margin-top:8px!important}
.er-shift-inspector .er-shift-quick-actions-row--single-day .er-btn,.er-shift-inspector .er-shift-classic-selected-box .er-btn,.er-shift-inspector .er-shift-only-one-month-box .er-btn{min-height:36px!important;font-size:10px!important;padding:7px 9px!important}
.er-shift-inspector .er-shift-classic-selected-box,.er-shift-inspector .er-shift-only-one-month-box{margin-top:8px!important;padding:9px!important;border-radius:10px!important}
.er-shift-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.er-shift-template-grid .er-field:last-child{grid-column:1/-1}
.er-shift-inspector .er-checklist{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
.er-shift-inspector .er-checklist-row{padding:6px!important;border-radius:8px!important;justify-content:center}
.er-shift-more-actions{display:grid;gap:8px}
.er-shift-more-actions .er-btn{width:100%;justify-content:center;min-height:38px}
.er-btn-danger-outline{background:#fff!important;border-color:#fecaca!important;color:#b91c1c!important}
.er-btn-danger-outline:hover{background:#fff1f2!important;border-color:#fca5a5!important}
.er-shift-more-note{margin-top:9px;padding:9px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:10px;line-height:1.4}

.er-shift-collapsible{padding:0!important;overflow:hidden;border-radius:16px!important}
.er-shift-collapsible>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;cursor:pointer;list-style:none;background:#fff;color:#10203b;font-size:12px;font-weight:900}
.er-shift-collapsible>summary::-webkit-details-marker{display:none}
.er-shift-collapsible>summary::after{content:"⌄";font-size:16px;color:#64748b;transition:transform .15s ease}
.er-shift-collapsible[open]>summary::after{transform:rotate(180deg)}
.er-shift-collapsible>summary b{margin-left:auto;min-width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#eef2ff;color:#4338ca;font-size:11px}
.er-shift-collapsible>summary small{margin-left:auto;color:#64748b;font-size:10px;font-weight:700}
.er-shift-collapsible .er-shift-hidden-list,.er-shift-collapsible>[data-er-manage-shift-swaps]{padding:10px 12px 12px;border-top:1px solid #e2e8f0}

@media (max-width:1500px){
  .er-shift-planner-layout{grid-template-columns:235px minmax(0,1fr)}
  .er-shift-employee-block-body--planner{grid-template-columns:minmax(480px,1fr) 350px!important}
  .er-shift-controlbar-filters{grid-template-columns:minmax(170px,1fr) repeat(3,minmax(110px,.7fr)) auto}
}
@media (max-width:1220px){
  .er-shift-controlbar{align-items:stretch;flex-direction:column}
  .er-shift-controlbar-filters{max-width:none;grid-template-columns:repeat(4,minmax(0,1fr)) auto}
  .er-shift-planner-layout{grid-template-columns:220px minmax(0,1fr)}
  .er-shift-employee-block-body--planner{grid-template-columns:1fr!important}
  .er-shift-inspector{position:static}
}
@media (max-width:860px){
  .er-shift-page-compact-head{align-items:flex-start;flex-direction:column;padding:13px}
  .er-shift-page-compact-stats{width:100%;justify-content:stretch}
  .er-shift-page-compact-stats>div{flex:1;min-width:0}
  .er-shift-controlbar-month{width:100%;flex-wrap:wrap}
  .er-shift-controlbar-month input[type="month"]{flex:1;min-width:150px}
  .er-shift-controlbar-filters{grid-template-columns:1fr 1fr}
  .er-shift-controlbar-filters [data-er-shift-employee-search]{grid-column:1/-1}
  .er-shift-planner-layout{grid-template-columns:1fr;min-height:0}
  .er-shift-people-panel{position:static;max-height:none}
  .er-shift-person-list{display:flex;gap:7px;overflow-x:auto;padding:8px}
  .er-shift-person-row{flex:0 0 235px;margin:0!important}
  .er-shift-detail-head{align-items:flex-start;flex-direction:column}
  .er-shift-detail-head-actions{justify-content:flex-start}
  .er-shift-employee-block-body--planner{padding:8px!important}
  .er-shift-calendar-shell__head{align-items:flex-start!important;flex-direction:column}
  .er-shift-legend-inline--calendar{justify-content:flex-start}
  .er-shift-employee-calendar-wrap .er-shift-month-cell,.er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{min-height:52px!important;padding:5px!important}
  .er-shift-employee-calendar-wrap .er-shift-month-daynum{font-size:13px!important}
  .er-shift-employee-calendar-wrap .er-shift-month-note{font-size:7px!important}
  .er-shift-inspector-tabs{position:sticky;top:0;z-index:4}
}
@media (max-width:520px){
  .er-shift-page-compact-head h2{font-size:20px!important}
  .er-shift-controlbar-filters{grid-template-columns:1fr}
  .er-shift-controlbar-filters [data-er-shift-employee-search]{grid-column:auto}
  .er-shift-controlbar-filters .er-btn{width:100%}
  .er-shift-person-row{flex-basis:210px}
  .er-shift-inspector-tabs button{font-size:9px;padding:7px 4px}
  .er-shift-template-grid{grid-template-columns:1fr}
  .er-shift-template-grid .er-field:last-child{grid-column:auto}
  .er-shift-inspector .er-shift-day-info-grid,.er-shift-inspector .er-shift-quick-time-grid{grid-template-columns:1fr!important}
}
.er-shift-controlbar{flex-wrap:wrap}
.er-shift-controlbar>.er-shift-gap-alert{flex:1 0 100%;width:100%;margin:0!important}
@media (min-width:1221px){.er-shift-inspector{max-height:calc(100vh - 145px);overflow:auto;overscroll-behavior:contain}}
.er-shift-branch-stat-details{margin-top:8px;border:1px solid #dce6f3;border-radius:10px;background:#f8fafc;overflow:hidden}
.er-shift-branch-stat-details>summary{padding:8px 10px;cursor:pointer;color:#475569;font-size:10px;font-weight:900;list-style:none}
.er-shift-branch-stat-details>summary::-webkit-details-marker{display:none}
.er-shift-branch-stat-details>summary::after{content:"⌄";float:right;color:#64748b;font-size:14px}
.er-shift-branch-stat-details[open]>summary::after{transform:rotate(180deg)}
.er-shift-branch-stat-details .er-shift-branch-stat-table{margin:0!important;padding:0 8px 8px;overflow:auto}

/* CRM-ТО 2.33.0 — compact calendar and unified shift settings */
.er-shift-page-shell--planner .er-shift-employee-block-body--planner{
  grid-template-columns:minmax(500px,1fr) 360px!important;
  gap:10px!important;
  padding:10px!important;
}
.er-shift-page-shell--planner .er-shift-calendar-shell{
  padding:8px!important;
  border-radius:14px!important;
}
.er-shift-page-shell--planner .er-shift-calendar-shell__head{
  min-height:34px;
  margin-bottom:5px!important;
}
.er-shift-page-shell--planner .er-shift-calendar-shell__title{font-size:15px!important}
.er-shift-page-shell--planner .er-shift-calendar-shell__sub{font-size:9px!important}
.er-shift-page-shell--planner .er-shift-legend-inline--calendar span{
  padding:3px 6px!important;
  font-size:8px!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-card{
  max-width:none!important;
  padding:4px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-title{display:none!important}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-weekdays{margin-bottom:2px!important}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-weekday{
  padding:2px 0!important;
  font-size:8px!important;
  line-height:1.15!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-cell,
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{
  height:41px!important;
  min-height:41px!important;
  padding:4px 5px!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-daynum{
  font-size:12px!important;
  line-height:1!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-note{
  left:4px!important;
  right:4px!important;
  bottom:3px!important;
  max-height:12px!important;
  font-size:7px!important;
  line-height:1.1!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-stats{display:none!important}
.er-shift-page-shell--planner .er-shift-calendar-loading{min-height:275px}
.er-shift-page-shell--planner .er-shift-branch-stat-details{margin-top:5px}
.er-shift-page-shell--planner .er-shift-branch-stat-details>summary{padding:6px 8px;font-size:9px}

.er-shift-day-summary{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:9px;
  padding:9px 10px;
  border:1px solid #dbe7f4;
  border-radius:11px;
  background:#f8fbff;
}
.er-shift-day-summary-main{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.er-shift-day-summary-main>span{color:#10203b;font-size:13px;font-weight:900}
.er-shift-day-summary-main>strong,
.er-shift-state-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.er-shift-day-summary-main>strong.is-work,.er-shift-state-badge.is-work{background:#dcfce7;color:#166534;border:1px solid #86efac}
.er-shift-day-summary-main>strong.is-off,.er-shift-state-badge.is-off{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}
.er-shift-day-summary-meta{display:flex;align-items:flex-end;flex-direction:column;gap:2px;min-width:0;text-align:right}
.er-shift-day-summary-meta span{max-width:180px;color:#64748b;font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.er-shift-day-editor-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin-top:8px;
}
.er-shift-day-editor-grid .er-field{margin:0!important}
.er-shift-day-editor-grid .er-field-wide{grid-column:1/-1}
.er-shift-apply-hint{
  margin-top:4px;
  padding:6px 7px;
  border-radius:8px;
  background:#eff6ff;
  color:#1e40af;
  font-size:9px;
  line-height:1.35;
}
.er-shift-day-action-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}
.er-shift-day-action-grid .er-btn{
  width:100%;
  min-height:36px!important;
  padding:7px 9px!important;
  justify-content:center;
  text-align:center;
  white-space:normal;
  font-size:10px!important;
  line-height:1.2;
}
.er-shift-day-action-grid .er-shift-only-day-button{grid-column:1/-1}
.er-shift-template-hint{
  margin:2px 0 9px;
  padding:8px 9px;
  border:1px solid #dbeafe;
  border-radius:9px;
  background:#f8fbff;
  color:#52637a;
  font-size:9px;
  line-height:1.4;
}
.er-shift-template-save{width:100%;justify-content:center;min-height:38px}
.er-shift-additional-list{display:grid;gap:8px}
.er-shift-additional-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid #dbe5f2;
  border-radius:11px;
  background:#f8fbff;
}
.er-shift-additional-item.is-danger{border-color:#fecaca;background:#fff8f8}
.er-shift-additional-item>div{min-width:0}
.er-shift-additional-item strong{display:block;color:#10203b;font-size:11px}
.er-shift-additional-item span{display:block;margin-top:3px;color:#64748b;font-size:9px;line-height:1.4}
.er-shift-additional-item .er-btn{flex:0 0 auto;max-width:145px;white-space:normal;text-align:center;justify-content:center;font-size:9px!important}

@media (max-width:1500px){
  .er-shift-page-shell--planner .er-shift-employee-block-body--planner{grid-template-columns:minmax(450px,1fr) 340px!important}
}
@media (max-width:1220px){
  .er-shift-page-shell--planner .er-shift-employee-block-body--planner{grid-template-columns:1fr!important}
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-cell,
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{height:46px!important;min-height:46px!important}
}
@media (max-width:520px){
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-cell,
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-cell.is-empty{height:39px!important;min-height:39px!important;padding:3px!important}
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-note{display:none!important}
  .er-shift-day-editor-grid,.er-shift-day-action-grid{grid-template-columns:1fr}
  .er-shift-day-editor-grid .er-field-wide,.er-shift-day-action-grid .er-shift-only-day-button{grid-column:auto}
  .er-shift-day-summary{flex-direction:column}
  .er-shift-day-summary-meta{align-items:flex-start;text-align:left}
  .er-shift-additional-item{flex-direction:column}
  .er-shift-additional-item .er-btn{max-width:none;width:100%}
}


/* CRM-ТО 2.33.1 — balanced shift workspace without forced settings stretching */
.er-shift-page-shell--planner .er-shift-employee-block-body--planner{
  grid-template-columns:minmax(500px,620px) minmax(380px,440px)!important;
  justify-content:start!important;
  align-items:start!important;
  gap:16px!important;
}
.er-shift-page-shell--planner .er-shift-calendar-shell{
  width:100%!important;
  max-width:620px!important;
  align-self:start!important;
}
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap,
.er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-card{
  width:100%!important;
  max-width:620px!important;
}
.er-shift-page-shell--planner .er-shift-inspector{
  position:sticky!important;
  top:12px!important;
  width:100%!important;
  max-width:440px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  align-self:start!important;
  justify-self:start!important;
  overflow:visible!important;
}
.er-shift-page-shell--planner .er-shift-inspector-tabs{
  position:static!important;
}
.er-shift-page-shell--planner .er-shift-inspector-panel{
  padding:14px 14px 16px!important;
}
.er-shift-page-shell--planner .er-shift-inspector-panel.is-active{
  display:block!important;
  height:auto!important;
  min-height:0!important;
}
.er-shift-page-shell--planner .er-shift-panel-heading{
  margin-bottom:9px!important;
}
.er-shift-page-shell--planner .er-shift-day-summary{
  padding:9px 10px!important;
}
.er-shift-page-shell--planner .er-shift-quick-actions{
  margin-top:8px!important;
}
.er-shift-page-shell--planner .er-shift-day-editor-grid{
  margin-top:0!important;
}
.er-shift-page-shell--planner .er-shift-template-save{
  width:auto!important;
  min-width:220px!important;
  max-width:100%!important;
  justify-self:start!important;
}
.er-shift-page-shell--planner .er-shift-additional-item{
  align-items:center!important;
}
.er-shift-page-shell--planner .er-shift-additional-item .er-btn{
  width:auto!important;
  min-width:132px!important;
}
@media (max-width:1600px){
  .er-shift-page-shell--planner .er-shift-employee-block-body--planner{
    grid-template-columns:minmax(460px,580px) minmax(360px,420px)!important;
  }
  .er-shift-page-shell--planner .er-shift-calendar-shell,
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap,
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-card{
    max-width:580px!important;
  }
  .er-shift-page-shell--planner .er-shift-inspector{max-width:420px!important}
}
@media (max-width:1320px){
  .er-shift-page-shell--planner .er-shift-employee-block-body--planner{
    grid-template-columns:1fr!important;
  }
  .er-shift-page-shell--planner .er-shift-calendar-shell,
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap,
  .er-shift-page-shell--planner .er-shift-employee-calendar-wrap .er-shift-month-card{
    max-width:620px!important;
  }
  .er-shift-page-shell--planner .er-shift-inspector{
    position:static!important;
    max-width:620px!important;
  }
}
@media (max-width:620px){
  .er-shift-page-shell--planner .er-shift-template-save,
  .er-shift-page-shell--planner .er-shift-additional-item .er-btn{
    width:100%!important;
    min-width:0!important;
  }
  .er-shift-page-shell--planner .er-shift-additional-item{
    align-items:flex-start!important;
  }
}

/* ===== CRM-TO 2.33.5 — compact branch history filters and financial columns ===== */
.er-cash-history-filter-panel--v2{
  padding:14px !important;
  background:#fff !important;
  border:1px solid #dbe4f0 !important;
  border-radius:16px !important;
  box-shadow:0 8px 24px rgba(15,23,42,.045) !important;
}
.er-cash-history-filter-panel--v2 .er-cash-history-filter-head{
  margin:0 0 12px !important;
  padding:0 0 10px !important;
}
.er-cash-filter-period{
  display:grid !important;
  grid-template-columns:300px minmax(0,1fr) !important;
  gap:12px !important;
  align-items:end !important;
  padding-bottom:12px !important;
  border-bottom:1px solid #e7edf5 !important;
}
.er-cash-filter-period__dates{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}
.er-cash-filter-period__dates .er-field{
  min-width:0 !important;
  width:100% !important;
}
.er-cash-filter-period__dates input[type="date"]{
  width:100% !important;
  min-height:40px !important;
  border-radius:10px !important;
}
.er-cash-filter-period__presets .er-period-presets{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  min-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}
.er-cash-filter-period__presets .er-period-preset-btn{
  min-height:34px !important;
  padding:6px 11px !important;
  border-radius:10px !important;
  white-space:nowrap !important;
}
.er-cash-filter-period__presets .er-period-preset-clear{
  display:none !important;
}
.er-cash-filter-grid{
  display:grid !important;
  grid-template-columns:minmax(420px,1.35fr) minmax(320px,1fr) auto !important;
  gap:18px !important;
  align-items:start !important;
  padding-top:12px !important;
}
.er-cash-filter-section,
.er-cash-filter-actions{
  min-width:0 !important;
}
.er-cash-filter-section__title{
  margin:0 0 8px !important;
  color:#334155 !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.2 !important;
}
.er-cash-filter-section .er-cash-check-options{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  max-height:none !important;
  overflow:visible !important;
}
.er-cash-filter-section .er-cash-check-option{
  min-height:34px !important;
  padding:6px 10px !important;
  border-radius:10px !important;
  box-shadow:none !important;
}
.er-cash-filter-actions{
  padding-left:18px !important;
  border-left:1px solid #e7edf5 !important;
}
.er-cash-filter-actions .er-cash-history-actions-row{
  display:grid !important;
  grid-template-columns:auto auto auto !important;
  gap:8px !important;
  justify-content:start !important;
}
.er-cash-filter-actions .er-btn{
  min-height:38px !important;
  padding:7px 14px !important;
  border-radius:10px !important;
  white-space:nowrap !important;
}
.er-cash-history-table-wrap{
  border:1px solid #dbe4f0 !important;
  border-radius:14px !important;
  overflow:auto !important;
  background:#fff !important;
}
.er-cash-history-table{
  min-width:1460px !important;
  width:100% !important;
  table-layout:fixed !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}
.er-cash-history-table thead th{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
  background:#f4f7fb !important;
  color:#1e293b !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.25 !important;
  text-align:center !important;
  padding:10px 8px !important;
  white-space:normal !important;
}
.er-cash-history-table tbody td{
  padding:9px 9px !important;
  font-size:12.5px !important;
  line-height:1.25 !important;
  border-bottom:1px solid #e7edf5 !important;
  white-space:nowrap !important;
}
.er-cash-history-table tbody tr:hover td{
  background:#f8fbff !important;
}
.er-cash-history-table th:nth-child(1),.er-cash-history-table td:nth-child(1){width:105px !important;min-width:105px !important;}
.er-cash-history-table th:nth-child(2),.er-cash-history-table td:nth-child(2){width:145px !important;min-width:145px !important;}
.er-cash-history-table th:nth-child(3),.er-cash-history-table td:nth-child(3){width:125px !important;min-width:125px !important;}
.er-cash-history-table th:nth-child(4),.er-cash-history-table td:nth-child(4){width:135px !important;min-width:135px !important;}
.er-cash-history-table th:nth-child(5),.er-cash-history-table td:nth-child(5){width:125px !important;min-width:125px !important;}
.er-cash-history-table th:nth-child(6),.er-cash-history-table td:nth-child(6){width:125px !important;min-width:125px !important;}
.er-cash-history-table th:nth-child(7),.er-cash-history-table td:nth-child(7){width:125px !important;min-width:125px !important;}
.er-cash-history-table th:nth-child(8),.er-cash-history-table td:nth-child(8){width:125px !important;min-width:125px !important;}
.er-cash-history-table th:nth-child(9),.er-cash-history-table td:nth-child(9){width:125px !important;min-width:125px !important;}
.er-cash-history-table th:nth-child(10),.er-cash-history-table td:nth-child(10){width:80px !important;min-width:80px !important;text-align:center !important;}
.er-cash-history-table th:nth-child(11),.er-cash-history-table td:nth-child(11){width:85px !important;min-width:85px !important;text-align:center !important;}
.er-cash-history-table th:nth-child(12),.er-cash-history-table td:nth-child(12){width:95px !important;min-width:95px !important;text-align:center !important;}
.er-cash-history-table th:nth-child(1),
.er-cash-history-table td:nth-child(1){
  position:sticky !important;
  left:0 !important;
  z-index:2 !important;
  background:#fff !important;
}
.er-cash-history-table th:nth-child(2),
.er-cash-history-table td:nth-child(2){
  position:sticky !important;
  left:105px !important;
  z-index:2 !important;
  background:#fff !important;
  box-shadow:5px 0 10px rgba(15,23,42,.045) !important;
}
.er-cash-history-table thead th:nth-child(1),
.er-cash-history-table thead th:nth-child(2){
  z-index:5 !important;
  background:#f4f7fb !important;
}
.er-cash-history-table tbody tr:hover td:nth-child(1),
.er-cash-history-table tbody tr:hover td:nth-child(2){background:#f8fbff !important;}
.er-cash-history-money-cell{text-align:right !important;font-variant-numeric:tabular-nums !important;}
.er-cash-history-delta-note{
  display:block !important;
  margin-top:2px !important;
  color:#b45309 !important;
  font-size:10px !important;
  font-weight:750 !important;
}
.er-cash-history-details-btn{
  min-width:0 !important;
  padding:6px 10px !important;
  border-radius:9px !important;
}
@media (max-width:1450px){
  .er-cash-filter-period{grid-template-columns:280px minmax(0,1fr) !important;}
  .er-cash-filter-grid{grid-template-columns:1fr 1fr !important;}
  .er-cash-filter-actions{grid-column:1 / -1 !important;padding-left:0 !important;padding-top:10px !important;border-left:0 !important;border-top:1px solid #e7edf5 !important;}
}
@media (max-width:900px){
  .er-cash-filter-period{grid-template-columns:1fr !important;}
  .er-cash-filter-grid{grid-template-columns:1fr !important;gap:12px !important;}
  .er-cash-filter-actions{grid-column:auto !important;}
  .er-cash-filter-actions .er-cash-history-actions-row{grid-template-columns:1fr !important;}
  .er-cash-filter-actions .er-btn{width:100% !important;}
}
@media (max-width:760px){
  .er-cash-history-table{min-width:0 !important;}
  .er-cash-history-table th:nth-child(1),.er-cash-history-table td:nth-child(1),
  .er-cash-history-table th:nth-child(2),.er-cash-history-table td:nth-child(2){position:static !important;left:auto !important;box-shadow:none !important;}
}
.er-cash-history-table-note{margin-top:12px;padding:9px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-size:12px;line-height:1.4;}
.er-cash-history-table-note b{color:#334155;}


/* ===== CRM-TO 2.33.6 — manager cash as a first-class cash account ===== */
.er-manager-cash-overview-host{margin-top:18px}
.er-manager-cash-overview{border:1px solid rgba(37,99,235,.14);border-radius:20px;padding:18px;background:linear-gradient(135deg,#fff 0%,#f7faff 100%);box-shadow:0 10px 26px rgba(15,23,42,.045)}
.er-manager-cash-overview__head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid rgba(148,163,184,.16)}
.er-manager-cash-overview__head h3{margin:4px 0 6px;font-size:22px;line-height:1.15;color:#0f172a;font-weight:900;letter-spacing:-.02em}
.er-manager-cash-overview__head .er-hint{max-width:850px;margin:0}
.er-manager-cash-overview__total{min-width:270px;border-radius:17px;padding:14px 17px;background:#0f172a;color:#fff;text-align:right}
.er-manager-cash-overview__total span{display:block;color:#cbd5e1;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;margin-bottom:5px}
.er-manager-cash-overview__total strong{font-size:28px;line-height:1;font-weight:900;letter-spacing:-.025em}
.er-manager-cash-overview__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.er-manager-cash-overview.is-manager .er-manager-cash-overview__stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.er-manager-cash-overview__stats>div{border:1px solid rgba(148,163,184,.16);border-radius:14px;background:#fff;padding:12px 14px}
.er-manager-cash-overview__stats span{display:block;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em;margin-bottom:6px}
.er-manager-cash-overview__stats strong{display:block;color:#0f172a;font-size:20px;line-height:1.08;font-weight:900}
.er-manager-cash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.er-manager-cash-card{display:flex;flex-direction:column;gap:12px;border:1px solid rgba(148,163,184,.18);border-radius:17px;background:#fff;padding:14px;min-width:0;box-shadow:0 5px 14px rgba(15,23,42,.03)}
.er-manager-cash-card.has-balance{border-color:rgba(22,163,74,.22)}
.er-manager-cash-card.is-negative{border-color:rgba(220,38,38,.28);background:#fffafa}
.er-manager-cash-card__top{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center}
.er-manager-cash-card__avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-weight:900;font-size:13px}
.er-manager-cash-card__top>div:nth-child(2){min-width:0}
.er-manager-cash-card__top>div:nth-child(2)>strong{display:block;color:#0f172a;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.er-manager-cash-card__top>div:nth-child(2)>small{display:block;color:#64748b;font-size:11px;margin-top:3px}
.er-manager-cash-card__balance{text-align:right}
.er-manager-cash-card__balance span{display:block;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.er-manager-cash-card__balance b{display:block;color:#047857;font-size:18px;line-height:1.15;margin-top:3px}
.er-manager-cash-card.is-negative .er-manager-cash-card__balance b{color:#dc2626}
.er-manager-cash-card__sources{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.er-manager-cash-card__sources>div{border-radius:12px;background:#f8fafc;padding:9px 10px}
.er-manager-cash-card__sources span{display:block;color:#64748b;font-size:10px;font-weight:700;margin-bottom:4px}
.er-manager-cash-card__sources strong{display:block;color:#0f172a;font-size:14px}
.er-manager-cash-card__branches{display:flex;flex-direction:column;gap:6px}
.er-manager-cash-card__branches>span{display:grid;grid-template-columns:7px minmax(0,1fr) auto;gap:7px;align-items:center;color:#334155;font-size:11px}
.er-manager-cash-card__branches i{width:7px;height:7px;border-radius:50%;background:#2563eb}
.er-manager-cash-card__branches b{color:#0f172a;font-size:11px}
.er-manager-cash-card__empty{color:#94a3b8;font-size:11px;padding:4px 0}
.er-manager-cash-card>.er-btn{margin-top:auto;align-self:flex-start}
.er-manager-wallet-person-btn{display:inline-flex!important;align-items:center;justify-content:space-between;gap:12px;min-width:190px}
.er-manager-wallet-person-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.er-manager-wallet-person-btn b{font-size:12px;color:#047857;white-space:nowrap}
.er-manager-wallet-person-btn.is-active b{color:#dbeafe}
@media(max-width:1280px){.er-manager-cash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.er-manager-cash-overview__stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.er-manager-cash-overview{padding:14px}.er-manager-cash-overview__head{align-items:stretch;flex-direction:column}.er-manager-cash-overview__total{min-width:0;text-align:left}.er-manager-cash-overview__stats,.er-manager-cash-overview.is-manager .er-manager-cash-overview__stats,.er-manager-cash-grid{grid-template-columns:1fr}.er-manager-cash-card__top{grid-template-columns:40px minmax(0,1fr)}.er-manager-cash-card__balance{grid-column:1/-1;text-align:left;padding-top:4px}.er-manager-wallet-person-btn{width:100%;min-width:0}}

/* =========================================================
   MAX settings UX 2.33.9 — simple flow inside CRM
   ========================================================= */
.er-settings-card-max--simple{
  --er-max-blue:#2563eb;
  --er-max-green:#15803d;
  --er-max-amber:#b45309;
  --er-max-red:#b91c1c;
}
.er-settings-card-head--max-simple{
  align-items:center;
  padding-bottom:18px;
  border-bottom:1px solid #e7edf6;
}
.er-max-head-state{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
}
.er-max-head-state.is-ok{background:#ecfdf3;color:#166534;border-color:#bbf7d0;}
.er-max-plain-help{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  gap:10px 12px;
  align-items:center;
  margin:16px 0;
  padding:14px 16px;
  border:1px solid #dbe7fb;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#f3f7ff);
}
.er-max-plain-help>span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-size:13px;
  font-weight:950;
}
.er-max-plain-help>div{display:flex;flex-direction:column;gap:3px;min-width:0;}
.er-max-plain-help b{font-size:12px;color:#13213a;}
.er-max-plain-help em{font-style:normal;font-size:11px;line-height:1.35;color:#64748b;}
.er-mobile-integrations-panel--simple{
  margin-top:12px;
  padding:16px;
  border:1px solid #dce6f3;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.er-mobile-integrations-panel__head--simple{
  align-items:center;
  margin-bottom:14px;
}
.er-mobile-integrations-panel__head--simple>div:first-child{display:flex;flex-direction:column;gap:4px;}
.er-mobile-integrations-panel__head--simple b{font-size:17px;color:#0f172a;}
.er-mobile-integrations-panel__head--simple span{font-size:12px;color:#64748b;}
.er-max-simple-status{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 16px;
}
.er-max-simple-status>div{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:11px 12px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
}
.er-max-simple-status>div>span{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:9px;
  background:#e2e8f0;
  color:#475569;
  font-size:12px;
  font-weight:950;
}
.er-max-simple-status p{display:flex;flex-direction:column;gap:2px;margin:0;min-width:0;}
.er-max-simple-status b{font-size:12px;color:#0f172a;}
.er-max-simple-status em{font-style:normal;font-size:10.5px;color:#64748b;overflow-wrap:anywhere;}
.er-max-simple-status .is-ok{border-color:#bbf7d0;background:#f0fdf4;}
.er-max-simple-status .is-ok>span{background:#dcfce7;color:#166534;}
.er-max-simple-status .is-warn{border-color:#fed7aa;background:#fff7ed;}
.er-max-simple-status .is-warn>span{background:#ffedd5;color:#9a3412;}
.er-max-simple-status .is-bad{border-color:#fecaca;background:#fff7f7;}
.er-max-simple-status .is-bad>span{background:#fee2e2;color:#b91c1c;}
.er-mobile-chat-section__head--compact{margin:0 0 10px;}
.er-mobile-chat-section__head--compact h4{font-size:14px;}
.er-mobile-chat-section__head--compact strong{font-size:10px;}
.er-mobile-integrations-panel--simple .er-mobile-chat-grid{
  grid-template-columns:1fr;
  gap:10px;
}
.er-mobile-integrations-panel--simple .er-mobile-chat-card{
  min-height:auto;
  padding:14px;
  border-radius:16px;
  box-shadow:none;
}
.er-mobile-chat-simple-toggle{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:10px;
  padding:10px 11px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#f8fafc;
  cursor:pointer;
}
.er-mobile-chat-simple-toggle input{margin-top:2px;}
.er-mobile-chat-simple-toggle span{display:flex;flex-direction:column;gap:2px;}
.er-mobile-chat-simple-toggle b{font-size:12px;color:#0f172a;}
.er-mobile-chat-simple-toggle em{font-style:normal;font-size:10.5px;color:#64748b;}
.er-mobile-chat-simple-toggle.is-selected{border-color:#86efac;background:#f0fdf4;}
.er-max-chats-empty--primary{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  padding:20px;
  background:#f8fbff;
  border-color:#bfdbfe;
}
.er-max-chats-empty--primary b{font-size:14px;color:#0f172a;}
.er-max-chats-empty--primary span{font-size:12px;color:#64748b;}
.er-max-found-later,
.er-max-legacy-tools,
.er-max-advanced-settings{
  margin-top:14px;
  border:1px solid #dce5f0;
  border-radius:14px;
  background:#fbfdff;
  overflow:hidden;
}
.er-max-found-later>summary,
.er-max-legacy-tools>summary,
.er-max-advanced-settings>summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  cursor:pointer;
  color:#1e293b;
  font-size:12px;
  font-weight:900;
}
.er-max-found-later>summary::-webkit-details-marker,
.er-max-legacy-tools>summary::-webkit-details-marker,
.er-max-advanced-settings>summary::-webkit-details-marker{display:none;}
.er-max-found-later[open]>summary,
.er-max-legacy-tools[open]>summary,
.er-max-advanced-settings[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc;}
.er-max-found-later .er-mobile-discovered-list{padding:12px;}
.er-max-legacy-tools .er-mobile-record-sync{margin:12px;}
.er-max-simple-actions,
.er-max-technical-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.er-max-advanced-settings{margin:16px 0;}
.er-max-advanced-settings>summary>span{font-size:18px;}
.er-max-advanced-settings>summary>div{display:flex;flex-direction:column;gap:2px;}
.er-max-advanced-settings>summary b{font-size:13px;}
.er-max-advanced-settings>summary em{font-style:normal;font-size:11px;font-weight:650;color:#64748b;}
.er-max-advanced-settings__body{padding:14px;}
.er-settings-max-reports--simple{margin-top:16px;}

/* MAX chat discovery wizard */
body.er-max-discovery-modal-open{overflow:hidden;}
.er-max-discovery-modal{
  position:fixed;
  inset:0;
  z-index:1000000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease;
}
.er-max-discovery-modal.is-open{opacity:1;pointer-events:auto;}
.er-max-discovery-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52);backdrop-filter:blur(3px);}
.er-max-discovery-modal__panel{
  position:relative;
  z-index:1;
  width:min(720px,calc(100vw - 24px));
  max-height:calc(100vh - 28px);
  overflow:auto;
  border:1px solid rgba(15,23,42,.12);
  border-radius:22px;
  background:#fff;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
}
.er-max-discovery-modal__head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:16px 18px;
  border-bottom:1px solid #e2e8f0;
}
.er-max-discovery-modal__head h3{margin:0 0 3px;font-size:18px;color:#0f172a;}
.er-max-discovery-modal__head p{margin:0;font-size:12px;color:#64748b;}
.er-max-discovery-modal__icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:#eff6ff;font-size:21px;}
.er-max-discovery-modal__close{width:38px;height:38px;border:0;border-radius:12px;background:#f1f5f9;color:#334155;font-size:24px;cursor:pointer;}
.er-max-discovery-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:16px 18px 8px;
}
.er-max-discovery-steps>div{display:flex;gap:9px;align-items:flex-start;padding:11px;border:1px solid #dbe5f1;border-radius:14px;background:#f8fafc;}
.er-max-discovery-steps>div>span{display:flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:9px;background:#2563eb;color:#fff;font-size:11px;font-weight:950;}
.er-max-discovery-steps p{display:flex;flex-direction:column;gap:2px;margin:0;}
.er-max-discovery-steps b{font-size:11.5px;color:#0f172a;}
.er-max-discovery-steps em{font-style:normal;font-size:10.5px;line-height:1.35;color:#64748b;}
.er-max-discovery-state{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:12px 18px;
  padding:15px;
  border:1px solid #bfdbfe;
  border-radius:16px;
  background:#eff6ff;
}
.er-max-discovery-state>div:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;}
.er-max-discovery-state b{font-size:14px;color:#1e3a8a;}
.er-max-discovery-state span{font-size:12px;line-height:1.45;color:#334155;}
.er-max-discovery-state>strong{font-size:15px;color:#1d4ed8;font-variant-numeric:tabular-nums;}
.er-max-discovery-spinner{width:30px;height:30px;border:3px solid rgba(37,99,235,.22);border-top-color:#2563eb;border-radius:50%;animation:erMaxDiscoverySpin .8s linear infinite;}
@keyframes erMaxDiscoverySpin{to{transform:rotate(360deg)}}
.er-max-discovery-modal[data-state="error"] .er-max-discovery-state,
.er-max-discovery-modal[data-state="expired"] .er-max-discovery-state{border-color:#fecaca;background:#fff7f7;}
.er-max-discovery-modal[data-state="error"] .er-max-discovery-state b,
.er-max-discovery-modal[data-state="expired"] .er-max-discovery-state b{color:#991b1b;}
.er-max-discovery-note{margin:0 18px 16px;padding:10px 12px;border-radius:12px;background:#f8fafc;color:#64748b;font-size:11px;line-height:1.45;}
.er-max-discovery-modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid #e2e8f0;background:#fbfdff;}
.er-max-discovery-modal__footer>a{margin-right:auto;}

@media(max-width:1100px){
  .er-max-plain-help{grid-template-columns:auto minmax(0,1fr);}
  .er-max-simple-status{grid-template-columns:1fr;}
}
@media(max-width:720px){
  .er-mobile-integrations-panel__head--simple{align-items:flex-start;flex-direction:column;}
  .er-mobile-integrations-panel__head--simple .er-btn{width:100%;}
  .er-max-discovery-steps{grid-template-columns:1fr;}
  .er-max-discovery-state{grid-template-columns:auto minmax(0,1fr);}
  .er-max-discovery-state>strong{grid-column:2;}
  .er-max-discovery-modal__footer{flex-direction:column;align-items:stretch;}
  .er-max-discovery-modal__footer>a{margin-right:0;text-align:center;}
  .er-max-simple-actions .er-btn,.er-max-technical-actions .er-btn{width:100%;}
}


/* =========================================================
   2.34.1 — MAX Android chats workplace: compact registry
   ========================================================= */
.er-mobile-integrations-panel--workplace{
  --er-chat-blue:#2563eb;
  --er-chat-blue-soft:#eff6ff;
  --er-chat-green:#15803d;
  --er-chat-border:#dbe5f1;
  padding:15px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
}
.er-mobile-chat-workplace-head{margin:0!important;padding:0 0 13px!important;}
.er-mobile-chat-workplace-head__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.er-mobile-chat-revision{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid #dbe5f1;border-radius:11px;background:#fff;color:#64748b;font-size:10.5px;font-weight:850;white-space:nowrap;}
.er-max-simple-status--compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;}
.er-max-simple-status--compact>div{min-height:52px;padding:8px 10px;border-radius:12px;}
.er-max-simple-status--compact>div>span{flex-basis:26px;width:26px;height:26px;border-radius:8px;}
.er-max-simple-status--compact b{font-size:11px;}
.er-max-simple-status--compact em{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.er-mobile-chat-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;align-items:center;gap:9px;margin:12px 0 9px;padding:9px;border:1px solid var(--er-chat-border);border-radius:13px;background:#fff;}
.er-mobile-chat-search{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:5px;min-width:0;height:38px;padding:0 9px;border:1px solid #cbd8e8;border-radius:10px;background:#f8fafc;}
.er-mobile-chat-search>span{display:grid;place-items:center;color:#64748b;font-size:18px;line-height:1;}
.er-mobile-chat-search input{width:100%;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#0f172a;font-size:12px!important;}
.er-mobile-chat-search input:focus{outline:0!important;box-shadow:none!important;}
.er-mobile-chat-filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
.er-mobile-chat-filters button{appearance:none;display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 9px;border:1px solid #dbe5f1;border-radius:9px;background:#fff;color:#475569;cursor:pointer;font:800 10.5px/1.1 Inter,system-ui,sans-serif;white-space:nowrap;}
.er-mobile-chat-filters button b{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#eef2f7;color:#475569;font-size:9.5px;}
.er-mobile-chat-filters button:hover,.er-mobile-chat-filters button.is-active{border-color:#93b4ef;background:#eff6ff;color:#1d4ed8;}
.er-mobile-chat-filters button.is-active b{background:#2563eb;color:#fff;}
.er-mobile-chat-summary{color:#64748b;font-size:10.5px;font-weight:800;white-space:nowrap;text-align:right;}
.er-mobile-chat-grid--compact{display:flex!important;flex-direction:column!important;gap:7px!important;}
.er-mobile-chat-card--compact{position:relative!important;display:block!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;border:1px solid var(--er-chat-border)!important;border-radius:13px!important;background:#fff!important;box-shadow:0 3px 12px rgba(15,23,42,.035)!important;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important;}
.er-mobile-chat-card--compact::before{display:none!important;}
.er-mobile-chat-card--compact:hover{border-color:#b9cbe2!important;box-shadow:0 7px 20px rgba(15,23,42,.055)!important;}
.er-mobile-chat-card--compact.is-default{border-color:#93b4ef!important;box-shadow:0 0 0 1px rgba(37,99,235,.08),0 6px 18px rgba(37,99,235,.055)!important;}
.er-mobile-chat-card--compact.is-disabled{opacity:1!important;background:#fbfcfe!important;}
.er-mobile-chat-card--compact.has-unsaved-changes{border-color:#f2b963!important;background:#fffdf8!important;}
.er-mobile-chat-card__row{display:grid;grid-template-columns:minmax(270px,1.15fr) minmax(260px,1fr) 145px auto;align-items:center;gap:12px;min-height:66px;padding:8px 10px;}
.er-mobile-chat-card--compact .er-mobile-chat-card__identity{align-items:center;gap:9px;min-width:0;}
.er-mobile-chat-card--compact .er-mobile-chat-card__icon{flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#eef4ff;font-size:17px;}
.er-mobile-chat-card__identity-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.er-mobile-chat-card__name-line{display:flex;align-items:center;gap:6px;min-width:0;}
.er-mobile-chat-card__name-line>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#13213a;font-size:12.5px;line-height:1.2;}
.er-mobile-chat-default-badge{display:inline-flex;align-items:center;flex:0 0 auto;min-height:20px;padding:3px 6px;border-radius:999px;background:#e8f0ff;color:#1d4ed8;font-size:9px;font-weight:900;white-space:nowrap;}
.er-mobile-chat-card__meta{display:flex;align-items:center;gap:6px;min-width:0;}
.er-mobile-chat-card__meta span{color:#64748b;font-size:9.5px;font-weight:750;white-space:nowrap;}
.er-mobile-chat-card__meta code{display:block;min-width:0;max-width:160px;padding:2px 6px;border-radius:6px;background:#f1f5f9;color:#475569;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.er-mobile-chat-card__quick-title{display:flex;flex-direction:column;gap:4px;min-width:0;}
.er-mobile-chat-card__quick-title>span{color:#64748b;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em;}
.er-mobile-chat-card__quick-title input{width:100%;height:36px!important;min-height:36px!important;box-sizing:border-box;padding:7px 9px!important;border:1px solid #cbd8e8!important;border-radius:9px!important;background:#fff!important;color:#0f172a!important;font-size:11.5px!important;}
.er-mobile-chat-card__quick-title input:focus{border-color:#7da4e9!important;box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;outline:0!important;}
.er-mobile-chat-visibility-switch{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:7px 8px;border:1px solid #dce5ef;border-radius:10px;background:#f8fafc;cursor:pointer;}
.er-mobile-chat-visibility-switch>input{position:absolute;opacity:0;pointer-events:none;}
.er-mobile-chat-visibility-switch__track{position:relative;display:block;width:34px;height:20px;border-radius:999px;background:#cbd5e1;transition:.15s ease;}
.er-mobile-chat-visibility-switch__track i{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.22);transition:.15s ease;}
.er-mobile-chat-visibility-switch.is-selected{border-color:#9bd7b0;background:#f0fdf4;}
.er-mobile-chat-visibility-switch.is-selected .er-mobile-chat-visibility-switch__track{background:#16a34a;}
.er-mobile-chat-visibility-switch.is-selected .er-mobile-chat-visibility-switch__track i{transform:translateX(14px);}
.er-mobile-chat-visibility-switch__copy{display:flex;flex-direction:column;gap:1px;min-width:0;}
.er-mobile-chat-visibility-switch__copy b{font-size:10.5px;color:#0f172a;white-space:nowrap;}
.er-mobile-chat-visibility-switch__copy em{font-style:normal;font-size:9.5px;color:#64748b;white-space:nowrap;}
.er-mobile-chat-card__row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap;}
.er-mobile-chat-card__row-actions .er-btn{min-height:34px!important;padding:6px 10px!important;border-radius:9px!important;font-size:10px!important;}
.er-mobile-chat-expand{display:inline-flex!important;align-items:center!important;gap:5px!important;}
.er-mobile-chat-expand i{font-style:normal;font-size:13px;line-height:1;}
.er-mobile-chat-card__details{border-top:1px solid #e4ebf3;background:#f8fafc;border-radius:0 0 12px 12px;}
.er-mobile-chat-card__detail-grid{display:grid;grid-template-columns:120px minmax(240px,1fr) auto;align-items:center;gap:12px;padding:10px;}
.er-mobile-chat-card__order-field{display:flex;flex-direction:column;gap:4px;}
.er-mobile-chat-card__order-field span{font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em;color:#64748b;}
.er-mobile-chat-card__order-field input{width:100%;height:34px!important;min-height:34px!important;padding:6px 8px!important;border:1px solid #cbd8e8!important;border-radius:9px!important;background:#fff!important;font-size:11px!important;}
.er-mobile-chat-card--compact .er-mobile-chat-card__activity{display:flex;flex-direction:column;gap:2px;margin:0!important;padding:0!important;background:transparent!important;color:#64748b;font-size:9.5px;min-width:0;}
.er-mobile-chat-card--compact .er-mobile-chat-card__activity span,.er-mobile-chat-card--compact .er-mobile-chat-card__activity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.er-mobile-chat-card--compact .er-mobile-chat-card__actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:0!important;padding:0!important;}
.er-mobile-chat-card--compact .er-mobile-chat-card__actions .er-btn{min-height:32px!important;padding:5px 8px!important;border-radius:8px!important;font-size:9.5px!important;}
.er-mobile-chat-no-results{display:flex;flex-direction:column;align-items:center;gap:4px;padding:26px;border:1px dashed #cbd5e1;border-radius:13px;background:#fff;color:#64748b;text-align:center;}
.er-mobile-chat-no-results b{color:#0f172a;font-size:13px;}
.er-mobile-chat-no-results span{font-size:11px;}
.er-max-simple-actions--workplace{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0;}
@media(max-width:1280px){
  .er-mobile-chat-card__row{grid-template-columns:minmax(240px,1fr) minmax(220px,.9fr) 135px auto;gap:9px;}
  .er-mobile-chat-summary{display:none;}
  .er-mobile-chat-toolbar{grid-template-columns:minmax(220px,1fr) auto;}
}
@media(max-width:1020px){
  .er-max-simple-status--compact{grid-template-columns:repeat(2,minmax(0,1fr));}
  .er-mobile-chat-card__row{grid-template-columns:minmax(230px,1fr) minmax(220px,1fr) auto;}
  .er-mobile-chat-visibility-switch{grid-column:1/2;grid-row:2;max-width:155px;}
  .er-mobile-chat-card__row-actions{grid-column:3;grid-row:1/3;}
  .er-mobile-chat-card__detail-grid{grid-template-columns:110px minmax(180px,1fr);}
  .er-mobile-chat-card--compact .er-mobile-chat-card__actions{grid-column:1/-1;justify-content:flex-start;}
}
@media(max-width:760px){
  .er-mobile-integrations-panel--workplace{padding:11px!important;}
  .er-mobile-chat-workplace-head{align-items:stretch!important;}
  .er-mobile-chat-workplace-head__actions{justify-content:space-between;}
  .er-mobile-chat-workplace-head__actions .er-btn{width:auto!important;}
  .er-max-simple-status--compact{grid-template-columns:1fr 1fr;}
  .er-mobile-chat-toolbar{grid-template-columns:1fr;}
  .er-mobile-chat-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;}
  .er-mobile-chat-card__row{grid-template-columns:1fr;gap:8px;padding:10px;}
  .er-mobile-chat-card__quick-title{grid-column:1;}
  .er-mobile-chat-visibility-switch{grid-column:1;grid-row:auto;max-width:none;}
  .er-mobile-chat-card__row-actions{grid-column:1;grid-row:auto;justify-content:stretch;}
  .er-mobile-chat-card__row-actions .er-btn{flex:1 1 auto;}
  .er-mobile-chat-card__detail-grid{grid-template-columns:1fr;}
  .er-mobile-chat-card--compact .er-mobile-chat-card__actions{display:grid;grid-template-columns:1fr 1fr;}
  .er-mobile-chat-card--compact .er-mobile-chat-card__actions .er-btn{width:100%!important;}
}
@media(max-width:480px){
  .er-max-simple-status--compact{grid-template-columns:1fr;}
  .er-mobile-chat-card--compact .er-mobile-chat-card__actions{grid-template-columns:1fr;}
}

/* =========================================================
 * Документы по юридическим лицам — единое рабочее место 2.35
 * ======================================================= */
.er-legal-workspace{--legal-blue:#2563eb;--legal-blue-dark:#1d4ed8;--legal-soft:#eff6ff;--legal-border:#dbe4f0;--legal-muted:#64748b;display:grid;gap:18px;color:#0f172a}
.er-legal-workspace button,.er-legal-workspace input,.er-legal-workspace select,.er-legal-workspace textarea{font:inherit}
.er-legal-hero,.er-legal-org-header,.er-legal-wizard-head,.er-legal-doc-builder-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--legal-border);border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f8fbff 55%,#eef5ff 100%);box-shadow:0 14px 34px rgba(15,23,42,.07)}
.er-legal-hero h3,.er-legal-org-header h3,.er-legal-wizard-head h3,.er-legal-doc-builder-head h3{margin:4px 0 5px;font-size:28px;line-height:1.15;letter-spacing:-.02em}
.er-legal-hero p,.er-legal-org-header p,.er-legal-wizard-head p,.er-legal-doc-builder-head p{margin:0;color:var(--legal-muted);font-size:14px;max-width:760px}
.er-legal-primary{min-height:46px;white-space:nowrap;padding-inline:20px}
.er-legal-searchbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--legal-border);border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.er-legal-searchbar>span{font-size:25px;color:#94a3b8;line-height:1}
.er-legal-searchbar input{width:100%;min-height:42px;border:0!important;box-shadow:none!important;background:transparent!important;padding:0 4px!important;font-size:15px}
.er-legal-section{padding:20px;border:1px solid var(--legal-border);border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.er-legal-section__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.er-legal-section__head h4{margin:0;font-size:19px}
.er-legal-section__head p{margin:4px 0 0;color:var(--legal-muted);font-size:13px}
.er-legal-section__head>span{padding:6px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800}
.er-legal-org-list{display:grid;gap:10px}
.er-legal-org-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid #e2e8f0;border-radius:17px;background:#fff;transition:.16s ease}
.er-legal-org-card:hover{border-color:#b8cdf8;box-shadow:0 10px 24px rgba(37,99,235,.08);transform:translateY(-1px)}
.er-legal-org-card__main{min-width:0;flex:1}
.er-legal-org-card__title{font-size:17px;font-weight:900;line-height:1.2}
.er-legal-org-card__meta{margin-top:4px;color:var(--legal-muted);font-size:12px}
.er-legal-org-card__stats{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.er-legal-org-card__stats span{display:inline-flex;gap:5px;align-items:center;padding:6px 9px;border-radius:999px;background:#f6f8fb;color:#475569;font-size:12px}
.er-legal-org-card__stats b{color:#0f172a}
.er-legal-org-card__needs{margin-top:9px;color:#9a5a09;font-size:12px;font-weight:800}
.er-legal-org-card__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.er-legal-recent-list{display:grid;gap:7px}
.er-legal-recent-doc{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:12px 14px;border:1px solid #e7edf5;border-radius:13px;background:#fff;text-align:left;color:#334155;cursor:pointer}
.er-legal-recent-doc:hover{background:#f8fbff;border-color:#bfdbfe}
.er-legal-recent-doc__type{font-size:12px;font-weight:900;color:#1d4ed8}
.er-legal-recent-doc span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.er-legal-recent-doc span:last-child{font-weight:900;color:#0f172a}
.er-legal-extra{padding:13px 16px;border:1px dashed #cbd5e1;border-radius:15px;background:#f8fafc}
.er-legal-extra summary{cursor:pointer;font-weight:850;color:#475569}
.er-legal-extra>div{padding-top:12px}
.er-legal-loading,.er-legal-empty-small{padding:28px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;text-align:center;color:#64748b}
.er-legal-empty{padding:44px 20px;border:1px dashed #cbd5e1;border-radius:20px;background:#f8fafc;text-align:center}
.er-legal-empty__icon{font-size:38px}.er-legal-empty h4{margin:10px 0 4px}.er-legal-empty p{margin:0 0 15px;color:#64748b}
.er-legal-pagebar{display:flex;align-items:center;gap:12px;min-height:48px;padding:7px 10px;border:1px solid var(--legal-border);border-radius:15px;background:#fff}
.er-legal-pagebar>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569;font-size:13px;font-weight:850}
.er-legal-org-header__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.er-legal-tabs{display:flex;gap:5px;padding:5px;border:1px solid var(--legal-border);border-radius:15px;background:#f8fafc;overflow-x:auto}
.er-legal-tabs button{min-height:40px;padding:0 15px;border:0;border-radius:11px;background:transparent;color:#64748b;font-weight:850;white-space:nowrap;cursor:pointer}
.er-legal-tabs button.is-active{background:#fff;color:#1d4ed8;box-shadow:0 4px 13px rgba(15,23,42,.08)}
.er-legal-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.er-legal-stat-grid article{padding:15px;border:1px solid var(--legal-border);border-radius:16px;background:#fff;box-shadow:0 7px 18px rgba(15,23,42,.04)}
.er-legal-stat-grid span{display:block;color:#64748b;font-size:12px}.er-legal-stat-grid b{display:block;margin-top:7px;font-size:22px;line-height:1.05}
.er-legal-task-section{padding:20px;border:1px solid var(--legal-border);border-radius:20px;background:#fff}
.er-legal-task-list{display:grid;gap:9px}
.er-legal-task-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff}
.er-legal-task-list article div{display:grid;gap:3px}.er-legal-task-list article span{color:#64748b;font-size:12px}
.er-legal-contract-list{display:grid;gap:10px}
.er-legal-contract-card{padding:16px;border:1px solid #e2e8f0;border-radius:17px;background:#fff}
.er-legal-contract-card__top{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.er-legal-contract-card h5{margin:0;font-size:16px}.er-legal-contract-card p{margin:4px 0 0;color:#64748b;font-size:12px}
.er-legal-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;background:#eef2f7;color:#475569;font-size:11px;font-weight:900;white-space:nowrap}
.er-legal-status.is-active,.er-legal-status.is-completed{background:#dcfce7;color:#166534}.er-legal-status.is-draft,.er-legal-status.is-waiting{background:#fff7ed;color:#9a3412}.er-legal-status.is-in_work{background:#dbeafe;color:#1d4ed8}.er-legal-status.is-done{background:#ecfeff;color:#155e75}.er-legal-status.is-archive,.er-legal-status.is-cancelled,.er-legal-status.is-replaced{background:#f1f5f9;color:#64748b}.er-legal-status.is-no_show{background:#fef3c7;color:#92400e}
.er-legal-contract-card__stats{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.er-legal-contract-card__stats span{padding:6px 9px;border-radius:999px;background:#f8fafc;color:#64748b;font-size:12px}.er-legal-contract-card__stats b{color:#0f172a}
.er-legal-contract-card__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.er-legal-doc-table{display:grid;gap:8px}.er-legal-doc-table article{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(150px,.6fr) auto;gap:15px;align-items:center;padding:13px;border:1px solid #e2e8f0;border-radius:14px}.er-legal-doc-table article>div{display:grid;gap:3px}.er-legal-doc-table span{color:#64748b;font-size:12px}
.er-legal-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.er-legal-form-grid .er-field-wide{grid-column:span 2}.er-legal-form-grid textarea{min-height:90px;resize:vertical}
.er-legal-sticky-actions{display:flex;justify-content:flex-end;margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0}
.er-legal-wizard{position:relative}.er-legal-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;border:1px solid var(--legal-border);border-radius:16px;background:#f8fafc}
.er-legal-stepper span{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 10px;border-radius:11px;color:#94a3b8;font-size:12px;font-weight:850}.er-legal-stepper b{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e2e8f0;color:#64748b}
.er-legal-stepper span.is-current{background:#fff;color:#1d4ed8;box-shadow:0 5px 14px rgba(15,23,42,.07)}.er-legal-stepper span.is-current b{background:#2563eb;color:#fff}.er-legal-stepper span.is-done{color:#166534}.er-legal-stepper span.is-done b{background:#dcfce7;color:#166534}
.er-legal-wizard-body{padding:20px;border:1px solid var(--legal-border);border-radius:20px;background:#fff;box-shadow:0 10px 25px rgba(15,23,42,.04)}
.er-legal-wizard-actions{position:sticky;bottom:8px;z-index:20;display:flex;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--legal-border);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(15,23,42,.14);backdrop-filter:blur(10px)}
.er-legal-wizard-actions .er-btn-primary{min-width:190px}
.er-legal-tariffs{margin-top:20px;padding-top:18px;border-top:1px solid #e2e8f0}.er-legal-tariff-base{display:flex;align-items:center;gap:8px;max-width:390px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:13px;background:#f8fafc}.er-legal-tariff-base label{flex:1;font-weight:850}.er-legal-tariff-base input{width:130px!important}.er-legal-tariff-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px}.er-legal-tariff-grid label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:7px 8px;border:1px solid #e2e8f0;border-radius:11px}.er-legal-tariff-grid span{font-size:12px;font-weight:900}.er-legal-tariff-grid input{min-width:0!important;padding:7px!important}
.er-legal-number-preview{display:grid;gap:3px;margin-top:16px;padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff}.er-legal-number-preview span,.er-legal-number-preview small{color:#64748b;font-size:12px}.er-legal-number-preview b{font-size:20px;color:#1d4ed8}
.er-legal-list-name{max-width:700px;margin-bottom:14px}.er-legal-add-methods{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.er-legal-add-methods article{padding:14px;border:1px solid #e2e8f0;border-radius:15px;background:#fbfdff}.er-legal-add-methods h5{margin:0}.er-legal-add-methods p{min-height:36px;margin:5px 0 10px;color:#64748b;font-size:12px}.er-legal-add-methods textarea{width:100%;min-height:125px;margin-bottom:8px;resize:vertical}.er-legal-add-methods [data-er-legal-file-name]{margin-top:8px;color:#64748b;font-size:12px;word-break:break-word}
.er-legal-import-summary{margin:16px 0 9px;color:#475569;font-size:13px}.er-legal-wizard-rows{display:grid;gap:8px}.er-legal-wizard-rows article{display:grid;grid-template-columns:1fr 1.5fr 1.4fr .7fr .6fr .8fr auto;gap:8px;align-items:end;padding:10px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.er-legal-wizard-rows .er-field-wide{grid-column:auto}.er-legal-wizard-rows label{font-size:11px}.er-legal-wizard-rows input{padding:8px!important}
.er-legal-review{display:grid;gap:15px}.er-legal-review>section,.er-legal-ready-box{padding:16px;border:1px solid #e2e8f0;border-radius:15px;background:#fbfdff}.er-legal-review h4{margin:0 0 7px}.er-legal-review p{margin:4px 0;color:#475569}
.er-legal-doc-choice{display:grid;gap:8px}.er-legal-doc-choice>label{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer}.er-legal-doc-choice>label>input{margin-top:3px}.er-legal-doc-choice label span{display:grid;gap:2px}.er-legal-doc-choice small{color:#64748b}.er-legal-doc-choice .is-disabled{opacity:.55;cursor:not-allowed}
.er-legal-ready-box{display:grid;gap:5px;background:#f0fdf4;border-color:#bbf7d0}.er-legal-ready-box span:before{content:"✓";margin-right:7px;color:#16a34a;font-weight:900}
.er-legal-list-editor .er-contracts-panel{margin:0}.er-legal-list-editor .er-contract-control-card{margin-top:0}.er-legal-list-editor .er-contract-control-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.er-legal-list-editor .er-contract-agent-picker{display:none}.er-legal-list-editor .er-contract-list-picker{grid-column:span 2}
.er-legal-doc-layout{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.7fr);gap:14px;align-items:start}.er-legal-doc-settings,.er-legal-builder-vehicles{padding:16px;border:1px solid var(--legal-border);border-radius:18px;background:#fff}.er-legal-doc-settings{position:sticky;top:12px;display:grid;gap:9px}.er-legal-doc-settings h4{margin:8px 0 2px}.er-legal-doc-settings>label{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #e2e8f0;border-radius:11px}.er-legal-doc-settings>label small{margin-left:auto;color:#64748b}.er-legal-doc-settings .is-disabled{opacity:.55}.er-legal-builder-select{display:flex;gap:6px;flex-wrap:wrap}.er-legal-builder-summary{padding:11px;border-radius:11px;background:#eff6ff;color:#1e3a8a;font-size:13px}
.er-legal-builder-vehicles{display:grid;gap:8px}.er-legal-builder-vehicles article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid #e2e8f0;border-radius:13px}.er-legal-builder-vehicles article>div{display:grid;gap:3px}.er-legal-builder-vehicles article span,.er-legal-builder-vehicles article small{color:#64748b;font-size:12px}.er-legal-builder-vehicles article small.is-closed{color:#9a3412;font-weight:800}
.er-legal-doc-actions{position:sticky;bottom:8px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--legal-border);border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 12px 34px rgba(15,23,42,.14)}.er-legal-doc-quick{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}

@media(max-width:1180px){
  .er-legal-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .er-legal-tariff-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .er-legal-wizard-rows article{grid-template-columns:repeat(3,minmax(0,1fr))}.er-legal-wizard-rows article>button{align-self:end}
  .er-legal-list-editor .er-contract-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .er-legal-workspace{gap:12px}
  .er-legal-hero,.er-legal-org-header,.er-legal-wizard-head,.er-legal-doc-builder-head{display:block;padding:18px;border-radius:18px}.er-legal-hero h3,.er-legal-org-header h3,.er-legal-wizard-head h3,.er-legal-doc-builder-head h3{font-size:23px}.er-legal-primary,.er-legal-org-header__actions{width:100%;margin-top:15px}.er-legal-org-header__actions{justify-content:stretch}.er-legal-org-header__actions .er-btn{flex:1}
  .er-legal-searchbar{grid-template-columns:auto minmax(0,1fr)}.er-legal-searchbar .er-btn{grid-column:1/-1;width:100%}
  .er-legal-section{padding:14px;border-radius:16px}.er-legal-section__head{display:block}.er-legal-section__head>.er-btn{width:100%;margin-top:10px}
  .er-legal-org-card{display:block;padding:14px}.er-legal-org-card__actions{justify-content:stretch;margin-top:13px}.er-legal-org-card__actions .er-btn{flex:1}
  .er-legal-recent-doc{grid-template-columns:70px minmax(0,1fr)}.er-legal-recent-doc span:last-child{display:none}
  .er-legal-pagebar{position:sticky;top:4px;z-index:25;box-shadow:0 8px 20px rgba(15,23,42,.08)}.er-legal-pagebar>button:last-child:not(:first-child){max-width:150px}
  .er-legal-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.er-legal-task-list article{display:block}.er-legal-task-list .er-btn{width:100%;margin-top:10px}
  .er-legal-doc-table article{grid-template-columns:1fr}.er-legal-doc-table article .er-btn{width:100%}
  .er-legal-form-grid{grid-template-columns:1fr}.er-legal-form-grid .er-field-wide{grid-column:auto}
  .er-legal-stepper{grid-template-columns:repeat(4,1fr);gap:3px}.er-legal-stepper span{justify-content:center;padding:6px}.er-legal-stepper span{font-size:0}.er-legal-stepper b{font-size:12px}
  .er-legal-wizard-body{padding:14px}.er-legal-wizard-actions{bottom:4px}.er-legal-wizard-actions .er-btn-primary{min-width:0;flex:1}.er-legal-wizard-actions .er-btn-secondary{min-width:90px}
  .er-legal-tariff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.er-legal-tariff-base{max-width:none}
  .er-legal-add-methods{grid-template-columns:1fr}.er-legal-add-methods article p{min-height:0}
  .er-legal-wizard-rows article{grid-template-columns:1fr 1fr}.er-legal-wizard-rows article .er-field:nth-child(2),.er-legal-wizard-rows article .er-field:nth-child(3){grid-column:1/-1}.er-legal-wizard-rows article>button{width:100%}
  .er-legal-list-editor .er-contract-control-grid{grid-template-columns:1fr}.er-legal-list-editor .er-contract-list-picker{grid-column:auto}
  .er-legal-doc-layout{grid-template-columns:1fr}.er-legal-doc-settings{position:static}.er-legal-doc-actions{display:block}.er-legal-doc-actions>.er-btn{width:100%}.er-legal-doc-quick{display:grid;grid-template-columns:1fr 1fr;margin-top:8px}.er-legal-doc-quick .er-btn{width:100%}
  .er-legal-builder-vehicles article{grid-template-columns:auto minmax(0,1fr)}.er-legal-builder-vehicles article>.er-legal-status{grid-column:2;justify-self:start}
}
@media(max-width:480px){
  .er-legal-stat-grid{grid-template-columns:1fr 1fr}.er-legal-stat-grid article{padding:12px}.er-legal-stat-grid b{font-size:18px}
  .er-legal-contract-card__top{display:block}.er-legal-contract-card__top>.er-legal-status{margin-top:8px}.er-legal-contract-card__actions .er-btn{width:100%}
  .er-legal-tariff-grid{grid-template-columns:1fr}.er-legal-wizard-rows article{grid-template-columns:1fr}.er-legal-wizard-rows article .er-field{grid-column:auto!important}
  .er-legal-doc-quick{grid-template-columns:1fr}
}
.er-legal-doc-table .er-legal-doc-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
@media (max-width:760px){.er-legal-doc-table .er-legal-doc-row-actions{display:grid;grid-template-columns:1fr 1fr}.er-legal-doc-table .er-legal-doc-row-actions .er-btn:last-child{grid-column:1/-1}}

/* CRM-TO 2.35.2 — читаемый пошаговый раздел документов */
.er-toast-content{display:grid;gap:9px;min-width:0}
.er-toast-action{justify-self:start;min-height:34px;padding:7px 12px;border:0;border-radius:10px;background:#2563eb;color:#fff;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 6px 16px rgba(37,99,235,.24)}
.er-toast-action:hover{background:#1d4ed8}

.er-legal-workspace{max-width:1560px;margin:0 auto;gap:22px;font-size:15px;line-height:1.45}
.er-legal-workspace .er-btn{min-height:44px;padding:10px 16px;border-radius:12px;font-size:13px;font-weight:900;line-height:1.2}
.er-legal-workspace .er-btn-sm{min-height:40px;padding:8px 13px;font-size:12px}
.er-legal-workspace .er-btn-pdf{border:1px solid #dc2626!important;background:#dc2626!important;color:#fff!important}
.er-legal-workspace .er-btn-pdf:hover{background:#b91c1c!important;border-color:#b91c1c!important}
.er-legal-workspace .er-pagebar,.er-legal-pagebar{min-height:58px;padding:9px 12px;border:1px solid #dbe4f0;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.er-legal-pagebar>span{font-size:14px;font-weight:900;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.er-legal-hero,.er-legal-org-header,.er-legal-wizard-head,.er-legal-doc-builder-head{padding:28px 30px;border-radius:24px}
.er-legal-hero h3,.er-legal-org-header h3,.er-legal-wizard-head h3,.er-legal-doc-builder-head h3{font-size:30px}
.er-legal-hero p,.er-legal-org-header p,.er-legal-wizard-head p,.er-legal-doc-builder-head p{font-size:15px;line-height:1.5}
.er-legal-section{padding:24px;border-radius:22px}
.er-legal-section__head h4{font-size:21px}
.er-legal-section__head p{font-size:14px;line-height:1.45}
.er-legal-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 18px}
.er-legal-form-grid .er-field-wide{grid-column:span 2}
.er-legal-workspace .er-field{min-width:0}
.er-legal-workspace .er-field label{display:block;margin:0 0 7px;color:#334155;font-size:13px!important;font-weight:900!important;text-transform:none!important;letter-spacing:0!important}
.er-legal-workspace .er-field input,.er-legal-workspace .er-field select,.er-legal-workspace .er-field textarea{width:100%;min-height:50px!important;padding:11px 13px!important;border:1px solid #cbd5e1!important;border-radius:13px!important;background:#fff!important;color:#0f172a!important;font-size:15px!important;font-weight:700!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important}
.er-legal-workspace .er-field textarea{min-height:112px!important;line-height:1.45}
.er-legal-workspace .er-field input:focus,.er-legal-workspace .er-field select:focus,.er-legal-workspace .er-field textarea:focus{outline:none!important;border-color:#2563eb!important;box-shadow:0 0 0 4px rgba(37,99,235,.12)!important}
.er-legal-field-attention{position:relative;z-index:3;padding:10px;margin:-10px;border-radius:16px;background:#fff7ed;box-shadow:0 0 0 3px #fb923c,0 14px 30px rgba(234,88,12,.16)}
.er-legal-sticky-actions .er-btn{min-width:210px}
.er-legal-stepper span{min-height:52px;padding:9px 13px;font-size:13px}
.er-legal-stepper b{width:30px;height:30px}
.er-legal-wizard-body{padding:26px;border-radius:22px}
.er-legal-wizard-actions{padding:14px 16px;border-radius:18px}
.er-legal-wizard-actions .er-btn{min-width:180px;min-height:48px}
.er-legal-tariff-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.er-legal-tariff-grid label{padding:11px;border-radius:13px}
.er-legal-tariff-grid span{font-size:13px}
.er-legal-add-methods{grid-template-columns:1.6fr 1fr 1fr;gap:14px}
.er-legal-add-methods article{padding:18px;border-radius:18px}
.er-legal-add-methods h5{font-size:16px}
.er-legal-add-methods p{font-size:13px;line-height:1.45}
.er-legal-add-methods textarea{min-height:170px;padding:12px;border-radius:13px;font-size:14px}
.er-legal-wizard-rows article{grid-template-columns:1fr 1.5fr 1.25fr .7fr .6fr .8fr auto;gap:11px;padding:14px;border-radius:16px}
.er-legal-wizard-rows label{font-size:12px!important}
.er-legal-wizard-rows input{min-height:44px!important;font-size:14px!important}

.er-legal-editor-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #bfdbfe;border-radius:22px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 12px 30px rgba(37,99,235,.08)}
.er-legal-editor-intro h3{margin:4px 0 5px;font-size:26px;letter-spacing:-.02em}
.er-legal-editor-intro p{margin:0;color:#64748b;font-size:14px;max-width:830px}
.er-legal-editor-intro__steps{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.er-legal-editor-intro__steps span{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid #bfdbfe;border-radius:12px;background:#fff;color:#1e3a8a;font-size:12px;font-weight:900}
.er-legal-editor-intro__steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#2563eb;color:#fff}
.er-legal-list-editor .er-contracts-panel{display:block!important}
.er-legal-list-editor .er-contract-workbench-v229{display:grid!important;gap:22px!important}
.er-legal-list-editor .er-contract-workbench-v229[hidden]{display:none!important}
.er-legal-editor-zone{overflow:hidden;border:1px solid #dbe4f0;border-radius:22px;background:#f8fafc;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.er-legal-editor-zone>header{display:flex;align-items:flex-start;gap:13px;padding:18px 20px;border-bottom:1px solid #dbe4f0;background:#fff}
.er-legal-editor-zone>header>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#2563eb;color:#fff;font-size:13px;font-weight:950}
.er-legal-editor-zone.is-vehicles>header>span{background:#0f8a5f}
.er-legal-editor-zone.is-documents>header>span{background:#7c3aed}
.er-legal-editor-zone>header h4{margin:0;font-size:20px;color:#0f172a}
.er-legal-editor-zone>header p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}
.er-legal-editor-zone__body{display:grid;gap:14px;padding:16px}
.er-legal-list-editor .er-contract-selection-card-v229,.er-legal-list-editor .er-contract-period-card-v229,.er-legal-list-editor .er-contract-vehicles-card-v229,.er-legal-list-editor .er-contract-documents-card-v229{margin:0!important;border:1px solid #e2e8f0!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
.er-legal-list-editor .er-contract-selection-main{padding:18px 20px 14px}
.er-legal-list-editor .er-contract-selection-title h4{font-size:19px!important}
.er-legal-list-editor .er-contract-selection-title p{font-size:13px!important;line-height:1.4}
.er-legal-list-editor .er-contract-control-actions-v229{display:grid!important;grid-template-columns:repeat(2,minmax(170px,1fr));gap:9px!important;min-width:min(100%,390px)}
.er-legal-list-editor .er-contract-control-actions-v229 .er-btn{width:100%;justify-content:center}
.er-legal-list-editor .er-contract-control-grid-v229{grid-template-columns:1fr!important;gap:14px!important;padding:0 20px 18px!important}
.er-legal-list-editor .er-contract-list-picker{grid-column:auto!important}
.er-legal-list-editor .er-contract-control-grid-v229 label,.er-legal-list-editor .er-contract-topline-v229 label,.er-legal-list-editor .er-contract-document-period-v2297 label,.er-legal-list-editor .er-contract-document-card-v2297 label,.er-legal-list-editor .er-contract-add-card-v229 label{font-size:13px!important;font-weight:900!important;color:#334155!important;margin-bottom:7px!important;text-transform:none!important}
.er-legal-list-editor .er-contract-control-grid-v229 input,.er-legal-list-editor .er-contract-control-grid-v229 select,.er-legal-list-editor .er-contract-topline-v229 input,.er-legal-list-editor .er-contract-topline-v229 select,.er-legal-list-editor .er-contract-document-period-v2297 input,.er-legal-list-editor .er-contract-document-card-v2297 input,.er-legal-list-editor .er-contract-add-card-v229 input,.er-legal-list-editor .er-contract-vehicle-tools-v229 input,.er-legal-list-editor .er-contract-vehicle-tools-v229 select{min-height:50px!important;height:50px!important;padding:11px 13px!important;border-radius:13px!important;font-size:14px!important;font-weight:700!important}
.er-legal-list-editor .er-contract-section-head-v229{padding:18px 20px!important;align-items:center!important}
.er-legal-list-editor .er-contract-section-head-v229 h5{font-size:19px!important;margin:4px 0!important}
.er-legal-list-editor .er-contract-section-head-v229 p{font-size:13px!important;line-height:1.45!important}
.er-legal-list-editor .er-docs-badge{font-size:10px!important;padding:5px 8px!important}
.er-legal-list-editor .er-contract-status-row-v229{padding:14px 20px!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important}
.er-legal-list-editor .er-contract-statusline{font-size:13px!important;line-height:1.45!important;padding:13px 15px!important}
.er-legal-list-editor .er-contract-counters span{min-width:90px!important;min-height:62px!important;padding:10px 12px!important;font-size:11px!important}
.er-legal-list-editor .er-contract-counters b{font-size:20px!important}
.er-legal-list-editor .er-contract-readiness-card{margin:0 20px 18px!important;padding:14px 16px!important;border-radius:14px!important}
.er-legal-list-editor .er-contract-readiness-card b{font-size:14px!important}
.er-legal-list-editor .er-contract-readiness-card span,.er-legal-list-editor .er-contract-readiness-card li{font-size:12px!important;line-height:1.45!important}
.er-legal-list-editor .er-contract-topline-v229{grid-template-columns:repeat(3,minmax(190px,1fr))!important;gap:15px!important;padding:18px 20px 22px!important}
.er-legal-list-editor .er-contract-topline-v229 .er-contract-list-name-field{grid-column:span 2!important}
.er-legal-list-editor .er-contract-topline-v229 .er-field-wide:last-child{grid-column:span 2!important}
.er-legal-list-editor .er-field-note{margin-top:6px!important;font-size:11px!important;line-height:1.35!important}
.er-legal-list-editor .er-contract-add-disclosure-v229{margin:16px 18px 0!important;border-radius:15px!important}
.er-legal-list-editor .er-contract-add-disclosure-v229>summary{min-height:54px;padding:13px 16px!important;font-size:14px!important}
.er-legal-list-editor .er-contract-add-disclosure-v229>summary small{font-size:11px!important}
.er-legal-list-editor .er-contract-add-card-v229{grid-template-columns:repeat(3,minmax(180px,1fr))!important;gap:14px!important;padding:18px!important}
.er-legal-list-editor .er-contract-add-card-v229 .er-field-wide{grid-column:span 2!important}
.er-legal-list-editor .er-contract-add-card-v229 .er-contract-vehicle-form-actions{grid-column:span 3!important;display:flex!important;justify-content:flex-end!important;gap:10px!important}
.er-legal-list-editor .er-contract-add-card-v229 .er-contract-vehicle-form-actions .er-btn{min-width:160px!important;flex:0 0 auto!important}
.er-legal-list-editor .er-contract-vehicle-tools-v229{grid-template-columns:minmax(0,1fr) 260px!important;gap:12px!important;margin:16px 18px!important}
.er-legal-list-editor .er-contract-vehicle-list-v229{padding:0 18px 18px!important;gap:11px!important}
.er-legal-list-editor .er-contract-vehicle-card{padding:15px 16px!important;border-radius:16px!important;min-height:86px!important}
.er-legal-list-editor .er-contract-vehicle-card__plate{font-size:17px!important}
.er-legal-list-editor .er-contract-vehicle-card__model{font-size:13px!important}
.er-legal-list-editor .er-contract-vehicle-card__meta span{font-size:11px!important;padding:6px 9px!important}
.er-legal-list-editor .er-contract-vehicle-card__actions .er-btn{min-height:38px!important;padding:7px 11px!important;font-size:11px!important}
.er-legal-list-editor .er-contract-document-period-v2297{grid-template-columns:minmax(260px,1.2fr) repeat(2,minmax(210px,.6fr));gap:14px;padding:18px 20px!important}
.er-legal-list-editor .er-contract-document-period-v2297__title b{font-size:15px!important}
.er-legal-list-editor .er-contract-document-period-v2297__title small{font-size:12px!important;line-height:1.4!important}
.er-legal-list-editor .er-contract-document-cards-v2297{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important;padding:18px 20px 22px!important}
.er-legal-list-editor .er-contract-document-card-v2297{padding:18px!important;border-radius:17px!important;min-height:190px!important}
.er-legal-list-editor .er-contract-document-card-v2297.is-contract{display:flex!important;grid-column:auto!important}
.er-legal-list-editor .er-contract-document-card-v2297__head span{font-size:17px!important}
.er-legal-list-editor .er-contract-document-card-v2297__head small{font-size:12px!important;line-height:1.4!important}
.er-legal-list-editor .er-contract-document-card-v2297__date b{font-size:16px!important}
.er-legal-list-editor .er-contract-document-card-v2297__date span,.er-legal-list-editor .er-contract-document-card-v2297__hint{font-size:11px!important;line-height:1.4!important}
.er-legal-list-editor .er-contract-document-card-v2297__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.er-legal-list-editor .er-contract-document-card-v2297__actions .er-btn{width:100%!important;min-height:44px!important;font-size:13px!important;justify-content:center!important}

.er-legal-document-blocker{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:start;padding:18px 20px;border:1px solid #fdba74;border-radius:18px;background:#fff7ed;box-shadow:0 10px 24px rgba(234,88,12,.08)}
.er-legal-document-blocker__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#ea580c;color:#fff;font-size:20px;font-weight:950}
.er-legal-document-blocker h4{margin:0;font-size:18px;color:#9a3412}
.er-legal-document-blocker p{margin:4px 0 6px;color:#7c2d12;font-size:13px}
.er-legal-document-blocker ul{margin:0;padding-left:19px;color:#7c2d12;font-size:13px;line-height:1.5}
.er-legal-builder-section{overflow:hidden;border:1px solid #dbe4f0;border-radius:21px;background:#fff;box-shadow:0 10px 27px rgba(15,23,42,.05)}
.er-legal-builder-section>header{display:flex;align-items:flex-start;gap:13px;padding:18px 20px;border-bottom:1px solid #e2e8f0;background:#f8fbff}
.er-legal-builder-section>header>span{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#2563eb;color:#fff;font-weight:950}
.er-legal-builder-section>header h4{margin:0;font-size:19px}
.er-legal-builder-section>header p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}
.er-legal-doc-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 20px}
.er-legal-doc-type-grid label{display:flex;align-items:flex-start;gap:11px;min-height:84px;padding:14px;border:1px solid #dbe4f0;border-radius:15px;background:#fff;cursor:pointer}
.er-legal-doc-type-grid label:hover{border-color:#93c5fd;background:#f8fbff}
.er-legal-doc-type-grid label.is-disabled{opacity:.52;cursor:not-allowed;background:#f8fafc}
.er-legal-doc-type-grid input{width:20px;height:20px;margin-top:2px;accent-color:#2563eb}
.er-legal-doc-type-grid span{display:grid;gap:4px}.er-legal-doc-type-grid b{font-size:14px}.er-legal-doc-type-grid small{color:#64748b;font-size:12px;line-height:1.35}
.er-legal-builder-date-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:16px;padding:18px 20px;max-width:900px}
.er-legal-builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid #e2e8f0}
.er-legal-builder-select{display:flex;gap:8px;flex-wrap:wrap}
.er-legal-builder-summary{min-width:250px;padding:12px 14px;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:14px;text-align:center}
.er-legal-builder-vehicles{padding:16px 20px 20px;gap:10px;border:0;border-radius:0}
.er-legal-builder-vehicles article{min-height:76px;padding:14px 15px;border-radius:15px}
.er-legal-builder-vehicles article input{width:20px;height:20px;accent-color:#2563eb}
.er-legal-builder-vehicles article b{font-size:15px}
.er-legal-builder-vehicles article span,.er-legal-builder-vehicles article small{font-size:12px}
.er-legal-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px 20px}
.er-legal-download-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid #dbe4f0;border-radius:16px;background:#fff}
.er-legal-download-card.is-disabled{opacity:.52;background:#f8fafc}
.er-legal-download-card>div:first-child{display:grid;gap:4px}.er-legal-download-card span{font-size:16px;font-weight:950}.er-legal-download-card small{color:#64748b;font-size:12px;line-height:1.4}
.er-legal-download-card__actions{display:grid;grid-template-columns:repeat(2,92px);gap:8px}
.er-legal-download-card__actions .er-btn{width:100%;justify-content:center}
.er-legal-package-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-top:1px solid #bfdbfe;background:#eff6ff}
.er-legal-package-bar>div{display:grid;gap:3px}.er-legal-package-bar b{font-size:16px;color:#1e3a8a}.er-legal-package-bar span{color:#475569;font-size:12px}
.er-legal-package-bar .er-btn{min-width:270px;min-height:50px}

@media(max-width:1100px){
  .er-legal-doc-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .er-legal-list-editor .er-contract-topline-v229{grid-template-columns:repeat(2,minmax(180px,1fr))!important}
  .er-legal-list-editor .er-contract-topline-v229 .er-contract-list-name-field{grid-column:1/-1!important}
  .er-legal-list-editor .er-contract-add-card-v229{grid-template-columns:repeat(2,minmax(180px,1fr))!important}
  .er-legal-list-editor .er-contract-add-card-v229 .er-contract-vehicle-form-actions{grid-column:1/-1!important}
}
@media(max-width:820px){
  .er-legal-workspace{gap:16px}
  .er-legal-pagebar{grid-template-columns:1fr 1fr}.er-legal-pagebar>span{grid-column:1/-1;grid-row:1;text-align:center}.er-legal-pagebar>.er-btn:first-child{grid-column:1}.er-legal-pagebar>.er-btn:last-child{grid-column:2}
  .er-legal-hero,.er-legal-org-header,.er-legal-wizard-head,.er-legal-doc-builder-head,.er-legal-editor-intro{display:block;padding:20px}
  .er-legal-hero h3,.er-legal-org-header h3,.er-legal-wizard-head h3,.er-legal-doc-builder-head h3{font-size:24px}
  .er-legal-editor-intro__steps{justify-content:flex-start;margin-top:15px}
  .er-legal-form-grid,.er-legal-builder-date-grid,.er-legal-download-grid{grid-template-columns:1fr}
  .er-legal-form-grid .er-field-wide{grid-column:auto}
  .er-legal-tariff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .er-legal-add-methods{grid-template-columns:1fr}
  .er-legal-wizard-rows article{grid-template-columns:1fr 1fr}
  .er-legal-wizard-rows article .er-field-wide{grid-column:1/-1}
  .er-legal-wizard-rows article>.er-btn{grid-column:1/-1}
  .er-legal-document-blocker{grid-template-columns:auto minmax(0,1fr)}.er-legal-document-blocker .er-btn{grid-column:1/-1;width:100%}
  .er-legal-doc-type-grid{grid-template-columns:1fr}
  .er-legal-builder-toolbar,.er-legal-package-bar{align-items:stretch;flex-direction:column}
  .er-legal-builder-summary{min-width:0;width:100%}
  .er-legal-package-bar .er-btn{width:100%;min-width:0}
  .er-legal-download-card{grid-template-columns:1fr}.er-legal-download-card__actions{grid-template-columns:1fr 1fr}
  .er-legal-list-editor .er-contract-selection-main{flex-direction:column!important}
  .er-legal-list-editor .er-contract-control-actions-v229{width:100%;min-width:0}
  .er-legal-list-editor .er-contract-topline-v229,.er-legal-list-editor .er-contract-add-card-v229,.er-legal-list-editor .er-contract-document-period-v2297,.er-legal-list-editor .er-contract-document-cards-v2297,.er-legal-list-editor .er-contract-vehicle-tools-v229{grid-template-columns:1fr!important}
  .er-legal-list-editor .er-contract-topline-v229 .er-contract-list-name-field,.er-legal-list-editor .er-contract-topline-v229 .er-field-wide:last-child,.er-legal-list-editor .er-contract-add-card-v229 .er-field-wide{grid-column:auto!important}
  .er-legal-list-editor .er-contract-add-card-v229 .er-contract-vehicle-form-actions{grid-column:auto!important;display:grid!important;grid-template-columns:1fr 1fr}
  .er-legal-list-editor .er-contract-add-card-v229 .er-contract-vehicle-form-actions .er-btn{min-width:0!important;width:100%!important}
  .er-legal-list-editor .er-contract-document-card-v2297{min-height:0!important}
}
@media(max-width:520px){
  .er-legal-workspace .er-btn{width:100%;justify-content:center}
  .er-legal-pagebar{display:grid;grid-template-columns:1fr}.er-legal-pagebar>span,.er-legal-pagebar>.er-btn:first-child,.er-legal-pagebar>.er-btn:last-child{grid-column:1}
  .er-legal-stepper{grid-template-columns:1fr 1fr}
  .er-legal-wizard-actions{display:grid;grid-template-columns:1fr 1fr}.er-legal-wizard-actions .er-btn{min-width:0}
  .er-legal-tariff-grid{grid-template-columns:1fr}
  .er-legal-wizard-rows article{grid-template-columns:1fr}.er-legal-wizard-rows article .er-field-wide{grid-column:auto}
  .er-legal-list-editor .er-contract-control-actions-v229{grid-template-columns:1fr}
  .er-legal-list-editor .er-contract-status-row-v229{grid-template-columns:1fr!important}
  .er-legal-list-editor .er-contract-counters{display:grid!important;grid-template-columns:repeat(2,1fr)!important}
  .er-legal-list-editor .er-contract-section-head-v229{align-items:stretch!important;flex-direction:column!important}
  .er-legal-list-editor .er-contract-status-actions,.er-legal-list-editor .er-contract-section-head-v229 .er-contract-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%}
  .er-legal-builder-select{display:grid;grid-template-columns:1fr;width:100%}
}


/* 2.37.2 — immediate first paint for today's records */
.er-records-initial-loading td{
  text-align:center!important;
  padding:24px 12px!important;
  color:#475569!important;
  font-weight:700;
}
.er-records-loading-dot{
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:9px;
  border-radius:50%;
  background:#2563eb;
  box-shadow:0 0 0 0 rgba(37,99,235,.35);
  animation:er-records-loading-pulse 1.1s infinite;
}
.er-record-pdf-quick.is-loading{
  cursor:wait;
  opacity:.72;
}
@keyframes er-records-loading-pulse{
  0%{box-shadow:0 0 0 0 rgba(37,99,235,.35)}
  70%{box-shadow:0 0 0 8px rgba(37,99,235,0)}
  100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}
}

/* 2.38.1 — agents report: restore all 16 desktop columns and stable action controls */
@media (min-width: 1025px){
  .er-app .er-agents-report-table-wrap{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-gutter:stable !important;
  }

  .er-app .er-agents-report-table-wrap table.er-table-agents-report{
    display:table !important;
    width:1848px !important;
    min-width:1848px !important;
    max-width:none !important;
    table-layout:fixed !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
  }

  .er-app .er-agents-report-table-wrap table.er-table-agents-report th,
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td{
    box-sizing:border-box !important;
    min-width:0 !important;
    max-width:none !important;
    padding:8px 9px !important;
    vertical-align:middle !important;
    font-size:12px !important;
    line-height:1.25 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    text-overflow:ellipsis !important;
  }

  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(1),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(1){width:110px !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(2),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(2){width:125px !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(3),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(3){width:96px !important;text-align:center !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(4),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(4){width:135px !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(5),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(5){width:72px !important;text-align:center !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(6),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(6),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(7),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(7){width:105px !important;text-align:right !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(8),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(8){width:125px !important;text-align:right !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(9),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(9){width:105px !important;text-align:right !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(10),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(10){width:118px !important;text-align:right !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(11),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(11){width:145px !important;text-align:right !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(12),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(12){width:125px !important;text-align:right !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(13),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(13){width:125px !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(14),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(14){width:145px !important;white-space:normal !important;overflow-wrap:anywhere !important;text-overflow:clip !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(15),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(15){width:175px !important;white-space:normal !important;overflow-wrap:anywhere !important;text-overflow:clip !important}
  .er-app .er-agents-report-table-wrap table.er-table-agents-report th:nth-child(16),
  .er-app .er-agents-report-table-wrap table.er-table-agents-report td:nth-child(16),
  .er-app .er-agents-report-table-wrap .er-agent-report-pay-th,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay-cell{
    width:247px !important;
    min-width:247px !important;
    max-width:247px !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  .er-app .er-agents-report-table-wrap .er-agent-report-pay{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 72px !important;
    gap:6px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    white-space:nowrap !important;
  }
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__row{
    display:grid !important;
    grid-template-columns:minmax(70px,1fr) 76px !important;
    gap:6px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
  }
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__input{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:32px !important;
    padding:5px 8px !important;
    font-size:11px !important;
  }
  .er-app .er-agents-report-table-wrap .er-agent-report-pay .er-btn-mini{
    width:76px !important;
    min-width:76px !important;
    max-width:76px !important;
    height:32px !important;
    min-height:32px !important;
    padding:5px 6px !important;
    font-size:10px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__full,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__empty{
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
    height:32px !important;
    min-height:32px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:5px 6px !important;
    font-size:10px !important;
    white-space:nowrap !important;
  }
}


/* CRM-TO 2.38.3 — agents report must fit the desktop workspace without clipped actions */
@media (min-width: 981px){
  .er-view[data-er-view="agents_report"] .er-agents-report-table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .er-view[data-er-view="agents_report"] table.er-table-agents-report{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
  }

  .er-table-agents-report .er-ar-col--agent{width:5.5%}
  .er-table-agents-report .er-ar-col--phone{width:6%}
  .er-table-agents-report .er-ar-col--period{width:5%}
  .er-table-agents-report .er-ar-col--manager{width:6%}
  .er-table-agents-report .er-ar-col--records{width:3.5%}
  .er-table-agents-report .er-ar-col--cash{width:4.5%}
  .er-table-agents-report .er-ar-col--cashless{width:4.5%}
  .er-table-agents-report .er-ar-col--services{width:6%}
  .er-table-agents-report .er-ar-col--paid{width:5%}
  .er-table-agents-report .er-ar-col--period-debt{width:5.5%}
  .er-table-agents-report .er-ar-col--old-debt{width:6.5%}
  .er-table-agents-report .er-ar-col--total-debt{width:6%}
  .er-table-agents-report .er-ar-col--last-payment{width:5.5%}
  .er-table-agents-report .er-ar-col--categories{width:7%}
  .er-table-agents-report .er-ar-col--branches{width:8%}
  .er-table-agents-report .er-ar-col--actions{width:15.5%}

  .er-view[data-er-view="agents_report"] .er-table-agents-report th,
  .er-view[data-er-view="agents_report"] .er-table-agents-report td{
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    box-sizing:border-box !important;
    padding:5px 5px !important;
    font-size:10px !important;
    line-height:1.15 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .er-view[data-er-view="agents_report"] .er-table-agents-report th{
    font-size:9px !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    text-align:center !important;
  }

  .er-view[data-er-view="agents_report"] .er-table-agents-report td:nth-child(1),
  .er-view[data-er-view="agents_report"] .er-table-agents-report td:nth-child(3),
  .er-view[data-er-view="agents_report"] .er-table-agents-report td:nth-child(4),
  .er-view[data-er-view="agents_report"] .er-table-agents-report td:nth-child(13),
  .er-view[data-er-view="agents_report"] .er-table-agents-report td:nth-child(14),
  .er-view[data-er-view="agents_report"] .er-table-agents-report td:nth-child(15){
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay-th,
  .er-view[data-er-view="agents_report"] .er-agent-report-pay-cell{
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    overflow:visible !important;
    padding:4px !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 61px !important;
    gap:4px !important;
    align-items:center !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__row{
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(40px,1fr) 67px !important;
    gap:4px !important;
    align-items:center !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__input{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:26px !important;
    padding:3px 5px !important;
    font-size:9px !important;
    line-height:1 !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay .er-btn-mini{
    width:67px !important;
    min-width:67px !important;
    max-width:67px !important;
    height:26px !important;
    min-height:26px !important;
    padding:3px 3px !important;
    font-size:8px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    letter-spacing:-.15px !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__full,
  .er-view[data-er-view="agents_report"] .er-agent-report-pay__empty{
    width:61px !important;
    min-width:61px !important;
    max-width:61px !important;
    height:26px !important;
    min-height:26px !important;
    padding:3px 2px !important;
    font-size:8px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}

@media (min-width: 701px) and (max-width: 980px){
  .er-view[data-er-view="agents_report"] .er-agents-report-table-wrap{
    overflow-x:auto !important;
  }
  .er-view[data-er-view="agents_report"] table.er-table-agents-report{
    min-width:1180px !important;
  }
}


/* CRM-TO 2.38.5 — agents report actions compact buttons */
@media (min-width: 981px){
  .er-view[data-er-view="agents_report"] .er-agent-report-pay-cell,
  .er-view[data-er-view="agents_report"] .er-agent-report-pay-th,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay-cell,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay-th{
    padding:3px !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay{
    grid-template-columns:minmax(0,1fr) 56px !important;
    gap:3px !important;
    align-items:start !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__row,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__row{
    grid-template-columns:minmax(0,1fr) 64px !important;
    gap:3px !important;
    align-items:center !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__input,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__input{
    height:24px !important;
    min-height:24px !important;
    padding:2px 6px !important;
    font-size:9px !important;
    line-height:1.05 !important;
    border-radius:6px !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay .er-btn-mini,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay .er-btn-mini{
    width:64px !important;
    min-width:64px !important;
    max-width:64px !important;
    height:24px !important;
    min-height:24px !important;
    padding:2px 4px !important;
    font-size:8px !important;
    line-height:1.05 !important;
    border-radius:7px !important;
    letter-spacing:-.1px !important;
    justify-self:start !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__full,
  .er-view[data-er-view="agents_report"] .er-agent-report-pay__empty,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__full,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__empty{
    width:56px !important;
    min-width:56px !important;
    max-width:56px !important;
    height:24px !important;
    min-height:24px !important;
    padding:2px 4px !important;
    font-size:8px !important;
    line-height:1.05 !important;
    border-radius:7px !important;
    justify-self:start !important;
  }
}


/* CRM-TO 2.38.6 — agents report action buttons normalized */
@media (min-width: 981px){
  .er-view[data-er-view="agents_report"] .er-agent-report-pay-th,
  .er-view[data-er-view="agents_report"] .er-agent-report-pay-cell,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay-th,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay-cell{
    min-width: 168px !important;
    width: 168px !important;
    max-width: 168px !important;
    padding: 4px !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay{
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__row,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__row{
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 92px !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__input,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__input{
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay .er-btn-mini,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay .er-btn-mini{
    height: 30px !important;
    min-height: 30px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__row .er-btn-mini,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__row .er-btn-mini{
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  .er-view[data-er-view="agents_report"] .er-agent-report-pay__full,
  .er-app .er-agents-report-table-wrap .er-agent-report-pay__full{
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
  }
}


/* 2.38.11 — качественный фильтр записей: подсказки агентов. */
.er-sortbar-records .er-filter-agent-field{
  position:relative !important;
  overflow:visible !important;
  z-index:30;
}
.er-sortbar-records .er-filter-agent-control{
  position:relative;
  width:150px;
  max-width:100%;
}
.er-sortbar-records .er-filter-agent-control > input{
  width:100% !important;
}
.er-sortbar-records .er-filter-agent-suggest{
  position:absolute !important;
  top:calc(100% + 6px) !important;
  left:0 !important;
  right:auto !important;
  width:min(360px, calc(100vw - 32px)) !important;
  min-width:260px !important;
  max-height:300px !important;
  overflow-y:auto !important;
  padding:6px !important;
  border:1px solid rgba(148,163,184,.38) !important;
  border-radius:13px !important;
  background:#fff !important;
  box-shadow:0 18px 46px rgba(15,23,42,.20) !important;
  z-index:10050 !important;
}
.er-sortbar-records .er-filter-agent-suggest__item{
  display:block !important;
  width:100% !important;
  min-height:48px !important;
  margin:0 !important;
  padding:9px 10px !important;
  border:0 !important;
  border-bottom:1px solid rgba(226,232,240,.9) !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#0f172a !important;
  text-align:left !important;
  cursor:pointer !important;
}
.er-sortbar-records .er-filter-agent-suggest__item:last-child{
  border-bottom:0 !important;
}
.er-sortbar-records .er-filter-agent-suggest__item:hover,
.er-sortbar-records .er-filter-agent-suggest__item.is-active{
  background:#eff6ff !important;
}
.er-sortbar-records .er-filter-agent-suggest__item .er-suggest-item-main{
  display:block !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  color:#1d4ed8 !important;
}
.er-sortbar-records .er-filter-agent-suggest__item .er-suggest-item-sub{
  display:block !important;
  margin-top:4px !important;
  font-size:11px !important;
  line-height:1.25 !important;
  font-weight:650 !important;
  color:#64748b !important;
}
.er-sortbar-records .er-filter-agent-suggest__state{
  padding:12px 10px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
  text-align:center;
}
.er-sortbar-records .er-filter-agent-suggest__state.is-error{
  color:#b91c1c;
}
@media (max-width:640px){
  .er-sortbar-records .er-filter-agent-control{width:100%;}
  .er-sortbar-records .er-filter-agent-suggest{
    width:100% !important;
    min-width:100% !important;
  }
}


/* 2.38.14 — выравнивание и уплотнение таблицы записей */
.er-table-records th.er-col-branch-employee,
.er-table-records td.er-record-branch-employee{
  min-width:138px!important;
  max-width:168px!important;
}
.er-record-branch-employee{
  min-width:138px!important;
}
.er-record-branch-stack{
  justify-items:start!important;
  gap:3px!important;
}
.er-record-branch-employee .er-branch-tag{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  justify-content:start!important;
  gap:6px!important;
  width:auto!important;
  max-width:100%!important;
  min-height:24px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
}
.er-record-branch-employee .er-branch-name{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1.15!important;
}
.er-record-branch-employee .er-muted{
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.er-record-employee-line{
  max-width:100%!important;
  padding-left:0!important;
  font-size:10px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.er-record-contract-badges{
  display:grid!important;
  justify-items:start!important;
  gap:3px!important;
  margin-top:4px!important;
  max-width:145px!important;
}
.er-record-contract-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:2px 5px!important;
  border-radius:6px!important;
  font-size:7px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.er-table-records th.er-col-actions,
.er-table-records td.er-col-actions{
  min-width:52px!important;
  width:52px!important;
  max-width:52px!important;
}
.er-table-records th.er-col-confirm,
.er-table-records td.er-col-confirm{
  min-width:112px!important;
  width:112px!important;
  max-width:112px!important;
  padding-left:6px!important;
  padding-right:6px!important;
}
.er-table-records th.er-col-pdf,
.er-table-records td.er-col-pdf{
  width:58px!important;
  min-width:58px!important;
  max-width:58px!important;
  padding-left:6px!important;
  padding-right:6px!important;
}
.er-table-records td.er-col-actions .er-actions-inline,
.er-table-records td.er-col-confirm .er-actions-inline,
.er-table-records .er-record-pdf-quick-wrap{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.er-table-records td.er-col-confirm .er-record-status-action__controls{
  width:100%!important;
}
.er-table-records td.er-col-confirm .er-record-status-action__controls .er-link,
.er-table-records td.er-col-confirm .er-record-status-action__controls .er-link-confirmed,
.er-table-records td.er-col-actions .er-link-eye,
.er-table-records .er-record-pdf-quick{
  width:100%!important;
  max-width:100%!important;
}
.er-table-records td.er-col-actions .er-link-eye{
  min-width:0!important;
  height:34px!important;
  border-radius:10px!important;
}
.er-table-records .er-record-pdf-quick{
  min-width:0!important;
  width:100%!important;
  height:34px!important;
  border-radius:10px!important;
  font-size:17px!important;
}
.er-table-records .er-record-pdf-quick.is-ready > .er-record-pdf-quick-label{
  font-size:9px!important;
}
.er-table-records td.er-col-confirm .er-record-status-action__controls .er-link-confirm,
.er-table-records td.er-col-confirm .er-record-status-action__controls .er-link-confirmed{
  min-height:32px!important;
  padding:6px 8px!important;
  border-radius:10px!important;
  font-size:9px!important;
  line-height:1.05!important;
  text-align:center!important;
  word-break:break-word!important;
}
.er-table-records tbody td{
  padding-left:7px!important;
  padding-right:7px!important;
}


/* 2.38.15 — крупный читаемый шрифт и удаление отдельного индикатора статуса */
@media (min-width:981px){
  .er-app .er-view[data-er-view="records"] table.er-table-records th{
    font-size:11.5px!important;
    line-height:1.2!important;
    padding:9px 7px!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records tbody td{
    font-size:12px!important;
    line-height:1.28!important;
    padding:8px 7px!important;
  }
  .er-app .er-view[data-er-view="records"] .er-record-id-dk strong{font-size:13px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-id-dk span{font-size:11px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-date{font-size:12px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-time{font-size:11px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-branch-employee .er-branch-name{font-size:12px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-branch-employee .er-muted{font-size:10.5px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-employee-line{font-size:11px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-agent-pay code{font-size:12px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-agent-pay span{font-size:11px!important;}
  .er-app .er-view[data-er-view="records"] .er-record-contract-badge{font-size:9px!important;line-height:1.2!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirm,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirmed{
    font-size:10.5px!important;
    min-height:36px!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye,
  .er-app .er-view[data-er-view="records"] table.er-table-records .er-record-pdf-quick{height:36px!important;}

  /* Администратор: 13 колонок после удаления отдельной колонки статуса. */
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(1){width:3%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(2){width:7.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(3){width:6.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(4){width:15.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(5){width:8.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(6){width:7.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(7){width:8.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(8){width:5.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(9){width:11%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(10){width:6.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(11){width:4.5%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(12){width:10%!important;}
  .er-app[data-er-role="admin"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(13){width:5.5%!important;}

  /* Управляющий: та же таблица без служебного чекбокса. */
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(1){width:8%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(2){width:7%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(3){width:16.5%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(4){width:9%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(5){width:8%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(6){width:9%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(7){width:6%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(8){width:12%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(9){width:7%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(10){width:5%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(11){width:7.5%!important;}
  .er-app[data-er-role="manager"] .er-view[data-er-view="records"] table.er-table-records[data-er-table="admin_records"] thead th:nth-child(12){width:5%!important;}

  /* Сотрудник и ничейные записи: 12 колонок после удаления статуса. */
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(1),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(1){width:8%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(2),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(2){width:7%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(3),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(3){width:14%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(4),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(4){width:9%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(5),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(5){width:9%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(6),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(6){width:10%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(7),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(7){width:6%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(8),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(8){width:12.5%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(9),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(9){width:7%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(10),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(10){width:5%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(11),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(11){width:8%!important;}
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="records"] thead th:nth-child(12),
  .er-app .er-view[data-er-view="records"] table.er-table-records[data-er-table="unassigned_records"] thead th:nth-child(12){width:4.5%!important;}
}


/* 2.38.16 — компактный блок действий в таблице записей */
@media (min-width:901px){
  /* Служебные колонки больше не забирают лишнюю ширину у данных записи. */
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] th.er-col-actions,
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] td.er-col-actions{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] th.er-col-confirm,
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] td.er-col-confirm{
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] th.er-col-pdf,
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] td.er-col-pdf{
    width:54px!important;
    min-width:54px!important;
    max-width:54px!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }

  /* Кнопки имеют аккуратный фиксированный размер и стоят по центру ячеек. */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-actions-inline,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-actions-inline,
  .er-app .er-view[data-er-view="records"] table.er-table-records .er-record-pdf-quick-wrap{
    width:100%!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    border-radius:9px!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-record-status-action__controls{
    width:100%!important;
    margin:0!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirm,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirmed{
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    min-height:34px!important;
    height:auto!important;
    padding:6px 7px!important;
    border-radius:9px!important;
    font-size:10.5px!important;
    line-height:1.05!important;
    letter-spacing:.015em!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records .er-record-pdf-quick{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    border-radius:9px!important;
  }
}


/* 2.38.17 — refined record action buttons after UI feedback */
@media (min-width:901px){
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] th.er-col-actions,
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] td.er-col-actions{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] th.er-col-confirm,
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] td.er-col-confirm{
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] th.er-col-pdf,
  .er-app[data-er-role] .er-view[data-er-view="records"] table.er-table-records[data-er-table] td.er-col-pdf{
    width:50px!important;
    min-width:50px!important;
    max-width:50px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }

  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-actions-inline,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-actions-inline,
  .er-app .er-view[data-er-view="records"] table.er-table-records .er-record-pdf-quick-wrap{
    width:100%!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  /* Глазик делаем лёгким и без ощущения «квадрат в квадрате». */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye{
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:28px!important;
    min-height:28px!important;
    padding:0!important;
    border-radius:999px!important;
    border:1px solid rgba(59,130,246,.14)!important;
    background:rgba(239,246,255,.86)!important;
    box-shadow:none!important;
    color:#2563eb!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye:hover{
    background:rgba(219,234,254,.96)!important;
    color:#1d4ed8!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye svg{
    width:15px!important;
    height:15px!important;
    display:block!important;
    flex:0 0 auto!important;
  }

  /* Кнопку подтверждения возвращаем к более приятным пропорциям. */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-record-status-action__controls{
    width:100%!important;
    margin:0!important;
    justify-content:center!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirm,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirmed{
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
    min-height:34px!important;
    height:34px!important;
    padding:0 12px!important;
    border-radius:11px!important;
    font-size:10.5px!important;
    line-height:1!important;
    letter-spacing:.02em!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    box-shadow:none!important;
  }

  .er-app .er-view[data-er-view="records"] table.er-table-records .er-record-pdf-quick{
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    border-radius:10px!important;
  }
}


/* 2.38.18 — lighter text and plain centered eye action */
@media (min-width:901px){
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions{
    text-align:center!important;
  }

  /* Убираем эффект квадратов: у глазика больше нет собственной плашки. */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-actions-inline{
    width:100%!important;
    min-height:34px!important;
    justify-content:center!important;
    align-items:center!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye:hover{
    background:transparent!important;
    box-shadow:none!important;
    color:#1d4ed8!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye svg{
    width:16px!important;
    height:16px!important;
    display:block!important;
  }

  /* Убираем слишком жирный текст у действия подтверждения. */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirm,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirmed{
    font-weight:600!important;
    letter-spacing:0!important;
  }
}


/* 2.38.19 — hard fix for plain centered eye button + lighter confirm text */
@media (min-width:901px){
  /* Глазик: отдельный класс без наследования от .er-link. */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions,
  .er-app .er-view[data-er-view="records"] table.er-table-records th.er-col-actions{
    text-align:center!important;
    vertical-align:middle!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-actions-inline{
    width:100%!important;
    min-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    margin:0!important;
    gap:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-record-eye-btn,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye{
    -webkit-appearance:none!important;
    appearance:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:16px!important;
    min-width:16px!important;
    max-width:16px!important;
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    margin:0 auto!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    background:none!important;
    background-color:transparent!important;
    box-shadow:none!important;
    color:#2563eb!important;
    text-decoration:none!important;
    cursor:pointer!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-record-eye-btn:hover,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye:hover,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-record-eye-btn:focus,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye:focus{
    border:0!important;
    outline:0!important;
    background:none!important;
    background-color:transparent!important;
    box-shadow:none!important;
    color:#1d4ed8!important;
  }
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-record-eye-btn svg,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-actions .er-link-eye svg{
    width:16px!important;
    height:16px!important;
    display:block!important;
    margin:0 auto!important;
    pointer-events:none!important;
  }

  /* Подтвердить / Подтверждено: менее жирный текст. */
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirm,
  .er-app .er-view[data-er-view="records"] table.er-table-records td.er-col-confirm .er-link-confirmed{
    font-weight:500!important;
    letter-spacing:0!important;
  }
}

/* 2.38.24 — separate legal-entity cashless receipts in manager wallets */
@media (min-width:1261px){
  .er-manager-wallet-page .er-manager-wallet-simple-kpi-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
.er-manager-cash-card__sources{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (max-width:760px){
  .er-manager-cash-card__sources{
    grid-template-columns:1fr;
  }
}


/* 2.38.26 — agents registry: record drill-down, search and sorting */
.er-confirmed-agents-head__title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.er-confirmed-agents-filters{display:flex!important;align-items:flex-end!important;gap:10px!important;flex-wrap:wrap!important;width:100%}
.er-agent-filter-field{display:flex;flex-direction:column;gap:5px;min-width:230px;margin:0}
.er-agent-filter-field--search{flex:1 1 360px}
.er-agent-filter-field>span{font-size:11px;font-weight:700;color:#475569}
.er-candidate-records-cell{min-width:122px!important;text-align:center!important}
.er-candidate-records-cell>b{display:block;font-size:13px;margin-bottom:5px}
.er-candidate-records-cell .er-btn{white-space:nowrap}
.er-table-sort-btn{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:4px;text-align:inherit}
.er-table-sort-btn span{font-size:10px;color:#64748b}
.er-table-sort-btn:hover{color:#1d4ed8}
.er-candidate-records-modal{min-width:0}
.er-candidate-records-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px;padding:10px 12px;border:1px solid rgba(37,99,235,.14);border-radius:12px;background:#f8fbff}
.er-candidate-records-summary>div{display:flex;flex-direction:column;gap:3px}
.er-candidate-records-toolbar{margin-bottom:10px}
.er-candidate-records-toolbar .er-input{width:100%}
.er-candidate-records-table-wrap{max-height:58vh;overflow:auto}
.er-candidate-records-table{min-width:1050px}
.er-candidate-records-table th{position:sticky;top:0;z-index:2;background:#f8fafc}
@media(max-width:760px){
  .er-agent-filter-field,.er-agent-filter-field--search{min-width:100%;width:100%;flex-basis:100%}
  .er-confirmed-agents-filters .er-btn{width:100%}
  .er-candidate-records-table-wrap{max-height:65vh}
}


/* ER PRO 2.38.44 — рабочий импорт, понятная сверка и выплата из общего кошелька администратора */
.er-admin-last-import-period{margin-top:10px;width:100%;justify-content:center}
.er-admin-reconcile-message{margin:0 0 12px;padding:11px 13px;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-weight:700;line-height:1.4}
.er-admin-reconcile-total{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.er-admin-reconcile-total>div{padding:12px;border:1px solid #dbeafe;border-radius:14px;background:#fff}
.er-admin-reconcile-total span{display:block;font-size:11px;font-weight:800;text-transform:uppercase;color:#64748b}
.er-admin-reconcile-total strong{display:block;margin-top:4px;font-size:22px;color:#0f172a}
.er-admin-wallet-fixed-source{min-height:42px;display:flex;flex-direction:column;justify-content:center;padding:8px 12px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}
.er-admin-wallet-fixed-source span{font-size:11px;font-weight:800;text-transform:uppercase;color:#64748b}.er-admin-wallet-fixed-source strong{font-size:16px;color:#1d4ed8}
.er-admin-salary-quote{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.er-admin-salary-diagnostic{margin:10px 0 0;padding:11px 13px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-weight:700;line-height:1.4}
@media(max-width:900px){.er-admin-reconcile-total,.er-admin-salary-quote{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.er-admin-reconcile-total,.er-admin-salary-quote{grid-template-columns:1fr!important}}

/* 2.38.52 — глобальные дубли быстрых дат отключены */
.er-date-quick,.er-date-period-tools,.er-single-date-tools{display:none!important}


/* CRM ТЕХ039 2.42.1 — скрыть только автоматически созданные дубли периодов */
.er-period-presets-auto{display:none!important}

/* 2.42.4 — заметная передача денег экспертом управляющему */
.er-expert-manager-transfer{
  margin:0 0 18px;
  border-radius:20px;
}
.er-expert-manager-transfer__trigger{
  width:100%;
  min-height:92px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border:1px solid rgba(234,88,12,.36);
  border-radius:20px;
  background:linear-gradient(135deg,#ff7a18 0%,#f97316 48%,#ea580c 100%);
  color:#fff;
  box-shadow:0 16px 34px rgba(234,88,12,.26), inset 0 1px 0 rgba(255,255,255,.22);
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
  position:relative;
  overflow:hidden;
}
.er-expert-manager-transfer__trigger::after{
  content:"";
  position:absolute;
  inset:-50% auto -50% -28%;
  width:34%;
  transform:rotate(16deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);
  animation:erExpertTransferShine 4.2s ease-in-out infinite;
  pointer-events:none;
}
.er-expert-manager-transfer__trigger:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 40px rgba(234,88,12,.32), inset 0 1px 0 rgba(255,255,255,.26);
  filter:saturate(1.04);
}
.er-expert-manager-transfer__trigger:focus-visible{
  outline:4px solid rgba(249,115,22,.22);
  outline-offset:3px;
}
.er-expert-manager-transfer__trigger:disabled{
  cursor:not-allowed;
  opacity:.64;
  filter:grayscale(.2);
  transform:none;
}
.er-expert-manager-transfer__icon{
  width:50px;
  height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  font-size:28px;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}
.er-expert-manager-transfer__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.er-expert-manager-transfer__copy strong{
  color:#fff;
  font-size:22px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.015em;
}
.er-expert-manager-transfer__copy small{
  color:rgba(255,255,255,.9);
  font-size:13px;
  line-height:1.4;
  font-weight:650;
}
.er-expert-manager-transfer__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:122px;
  min-height:44px;
  padding:10px 18px;
  border-radius:999px;
  background:#fff;
  color:#c2410c;
  font-size:14px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(124,45,18,.18);
}
.er-expert-manager-transfer__warning{
  margin-top:10px;
  padding:12px 14px;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fff7ed;
  color:#9a3412;
  font-size:13px;
  font-weight:750;
}
.er-expert-manager-transfer__panel{
  margin-top:12px;
  padding:18px;
  border:1px solid #fed7aa;
  border-radius:20px;
  background:linear-gradient(180deg,#fffaf5 0%,#fff 100%);
  box-shadow:0 14px 32px rgba(124,45,18,.11);
}
.er-expert-manager-transfer__panel[hidden]{display:none!important}
.er-expert-manager-transfer__panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid #ffedd5;
}
.er-expert-manager-transfer__panel-head>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.er-expert-manager-transfer__panel-head strong{
  color:#7c2d12;
  font-size:17px;
  font-weight:900;
}
.er-expert-manager-transfer__panel-head span{
  color:#9a3412;
  font-size:12px;
  font-weight:700;
}
.er-expert-manager-transfer__close{
  width:34px;
  height:34px;
  border:1px solid #fed7aa;
  border-radius:11px;
  background:#fff;
  color:#9a3412;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.er-expert-manager-transfer__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.er-expert-manager-transfer__form .er-field small{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:11px;
  font-weight:650;
}
.er-expert-manager-transfer__notice{
  margin-top:12px;
  padding:11px 13px;
  border:1px solid #dbeafe;
  border-radius:13px;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:12px;
  line-height:1.45;
}
.er-expert-manager-transfer__actions{
  margin-top:14px;
  justify-content:flex-end;
}
.er-expert-manager-transfer__submit{
  min-width:190px;
  background:linear-gradient(135deg,#f97316,#ea580c)!important;
  border-color:#ea580c!important;
  color:#fff!important;
  box-shadow:0 9px 20px rgba(234,88,12,.23)!important;
}
@keyframes erExpertTransferShine{
  0%,68%,100%{transform:translateX(-160%) rotate(16deg)}
  82%{transform:translateX(430%) rotate(16deg)}
}
@media(max-width:760px){
  .er-expert-manager-transfer__trigger{
    min-height:82px;
    grid-template-columns:auto minmax(0,1fr);
    padding:15px;
  }
  .er-expert-manager-transfer__cta{grid-column:1/-1;width:100%;min-height:40px}
  .er-expert-manager-transfer__copy strong{font-size:18px}
  .er-expert-manager-transfer__copy small{font-size:12px}
  .er-expert-manager-transfer__icon{width:44px;height:44px;font-size:24px}
  .er-expert-manager-transfer__grid{grid-template-columns:1fr}
  .er-expert-manager-transfer__actions{display:grid;grid-template-columns:1fr;gap:8px}
  .er-expert-manager-transfer__actions .er-btn{width:100%;min-width:0}
}


/* 2.42.5 — обязательная причина передачи экспертом управляющему */
.er-expert-manager-transfer__reason{gap:9px}
.er-expert-manager-transfer__reason-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 8px}
.er-expert-manager-transfer__reason-chip{appearance:none;border:1px solid #f0a43a;background:#fff8eb;color:#8a4a00;border-radius:999px;padding:8px 12px;font:700 12px/1.1 inherit;cursor:pointer;transition:.16s ease}
.er-expert-manager-transfer__reason-chip:hover{background:#ffedc9;border-color:#e88b16;transform:translateY(-1px)}
.er-expert-manager-transfer__reason-chip.is-active{background:#f28c18;border-color:#d97500;color:#fff;box-shadow:0 6px 16px rgba(217,117,0,.22)}
.er-expert-manager-transfer__reason textarea{min-height:76px;resize:vertical}
@media (max-width:680px){.er-expert-manager-transfer__reason-chip{padding:8px 10px;font-size:11px}}

/* 2.42.6 — контроль получения денег управляющим и журнал уведомлений */
.er-manager-transfer-control,.er-finance-notification-journal{margin:16px 0;padding:18px;border:1px solid #dbe5f3;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.05)}
.er-manager-transfer-control__head,.er-finance-notification-journal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.er-manager-transfer-control__head h3,.er-finance-notification-journal__head h3{margin:3px 0 4px;font-size:22px;color:#172033}
.er-manager-transfer-control__head p,.er-finance-notification-journal__head p{margin:0;color:#667085;font-size:13px;line-height:1.45}
.er-manager-transfer-control__stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.er-manager-transfer-control__stats span{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border-radius:999px;background:#f3f6fb;color:#475467;font-size:12px;font-weight:700}
.er-manager-transfer-control__stats span b{font-size:15px;color:#172033}.er-manager-transfer-control__stats .is-overdue{background:#fff0ed;color:#b42318}.er-manager-transfer-control__stats .is-ok{background:#ecfdf3;color:#027a48}
.er-manager-transfer-control__empty{padding:18px;border:1px dashed #cbd5e1;border-radius:14px;color:#667085;text-align:center;background:#f8fafc}
.er-manager-transfer-control__list,.er-finance-notification-journal__list{display:grid;gap:10px}
.er-manager-transfer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px 16px;border:1px solid #e3e9f2;border-radius:16px;background:#fbfcfe}
.er-manager-transfer-row.is-overdue{border-color:#fecdca;background:#fff8f7}.er-manager-transfer-row.is-confirmed{border-color:#abefc6;background:#f6fef9}.er-manager-transfer-row.is-cancelled{opacity:.72;background:#f8fafc}
.er-manager-transfer-row__title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.er-manager-transfer-row__title strong{font-size:15px;color:#172033}
.er-manager-transfer-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#475467;font-size:11px;font-weight:800}.er-manager-transfer-status.is-overdue{background:#fee4e2;color:#b42318}.er-manager-transfer-status.is-confirmed{background:#d1fadf;color:#027a48}.er-manager-transfer-status.is-cancelled{background:#eaecf0;color:#475467}
.er-manager-transfer-row__meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:7px;color:#667085;font-size:12px}.er-manager-transfer-row__comment{margin-top:7px;color:#344054;font-size:13px}
.er-manager-transfer-row__side{display:grid;justify-items:end;gap:8px;min-width:150px}.er-manager-transfer-row__side>strong{font-size:20px;color:#172033}.er-manager-transfer-row__side small{max-width:220px;text-align:right;color:#667085}
.er-finance-notification-row{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(300px,1.5fr) auto;gap:14px;align-items:center;padding:13px 15px;border:1px solid #e3e9f2;border-radius:15px;background:#fbfcfe}
.er-finance-notification-row__main{display:grid;gap:4px}.er-finance-notification-row__main strong{color:#172033}.er-finance-notification-row__main span,.er-finance-notification-row__main small{color:#667085;font-size:12px}
.er-finance-notification-row__channels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.er-finance-channel{display:grid;gap:2px;padding:9px 10px;border-radius:11px;background:#f2f4f7;color:#475467;font-size:11px}.er-finance-channel b{text-transform:none}.er-finance-channel.is-sent{background:#ecfdf3;color:#027a48}.er-finance-channel.is-failed{background:#fff0ed;color:#b42318}.er-finance-channel.is-pending{background:#fffaeb;color:#b54708}.er-finance-channel.is-skipped{background:#f2f4f7;color:#667085}.er-finance-channel small{overflow-wrap:anywhere}
.er-emp-card-finance-notify{border-color:#c7d7fe;background:linear-gradient(180deg,#f8faff,#fff)}.er-finance-notify-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:12px}
@media(max-width:900px){.er-manager-transfer-control__head,.er-finance-notification-journal__head{flex-direction:column}.er-manager-transfer-control__stats{justify-content:flex-start}.er-finance-notification-row{grid-template-columns:1fr}.er-finance-notification-row__channels{grid-template-columns:1fr 1fr}.er-finance-notify-checks{grid-template-columns:1fr}}
@media(max-width:620px){.er-manager-transfer-row{grid-template-columns:1fr}.er-manager-transfer-row__side{justify-items:start}.er-manager-transfer-row__side small{text-align:left}.er-finance-notification-row__channels{grid-template-columns:1fr}}

/* CRM-ТО 2.46.1 — компактный список нескольких ЭЦП в карточке сотрудника */
.er-drawer-backdrop.er-drawer-employee .er-ecp-field{
  margin-top:2px;
  padding-top:12px;
  border-top:1px solid rgba(226,232,240,.95);
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 10px;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-copy{min-width:0;}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-title{
  color:#334155;
  font-size:12px;
  font-weight:950;
  line-height:1.2;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-count{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 8px;
  border:1px solid rgba(34,197,94,.20);
  border-radius:999px;
  background:#f0fdf4;
  color:#15803d;
  font-size:10px;
  font-weight:950;
  white-space:nowrap;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-count.is-empty{
  border-color:rgba(148,163,184,.25);
  background:#f8fafc;
  color:#64748b;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-head .er-hint{
  margin-top:4px !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-add{
  flex:0 0 auto;
  min-height:34px !important;
  padding:0 11px !important;
  border-radius:10px !important;
  background:#fff !important;
  border-color:rgba(37,99,235,.22) !important;
  color:#1d4ed8 !important;
  box-shadow:none !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-add:hover{
  background:#eff6ff !important;
  border-color:rgba(37,99,235,.38) !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-columns,
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-row{
  display:grid;
  grid-template-columns:minmax(170px,1fr) 150px minmax(184px,auto) 32px;
  gap:8px;
  align-items:center;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-columns{
  padding:0 8px 5px;
  color:#94a3b8;
  font-size:10px;
  font-weight:850;
  line-height:1.2;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-row{
  min-height:46px;
  padding:6px 7px;
  border:1px solid rgba(226,232,240,.98);
  border-radius:12px;
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-row:hover{
  border-color:rgba(148,163,184,.48);
  box-shadow:0 4px 12px rgba(15,23,42,.035);
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-cell{min-width:0;}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-cell input{
  width:100% !important;
  min-height:34px !important;
  height:34px !important;
  padding:6px 9px !important;
  border-radius:9px !important;
  border-color:rgba(203,213,225,.86) !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:12px !important;
  font-weight:750 !important;
  box-shadow:none !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-cell input:focus{
  border-color:#2563eb !important;
  background:#fff !important;
  color:#0f172a !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10) !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-cell-date .er-date-input-wrap input{
  padding-right:9px !important;
  font-variant-numeric:tabular-nums;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  min-width:0;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick .er-mini-chip{
  min-height:28px !important;
  padding:5px 7px !important;
  border-radius:8px !important;
  background:#f8fafc !important;
  border:1px solid rgba(203,213,225,.84) !important;
  color:#475569 !important;
  font-size:10px !important;
  font-weight:900 !important;
  line-height:1 !important;
  box-shadow:none !important;
  white-space:nowrap;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick .er-mini-chip:hover{
  transform:none !important;
  background:#eff6ff !important;
  border-color:#bfdbfe !important;
  color:#1d4ed8 !important;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-remove{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#94a3b8;
  font:800 20px/1 Arial,sans-serif;
  cursor:pointer;
  transition:.15s ease;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-remove:hover{
  border-color:#fecaca;
  background:#fff1f2;
  color:#dc2626;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-mobile-label{display:none;}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:8px 12px;
  border:1px dashed rgba(203,213,225,.95);
  border-radius:11px;
  background:#fbfdff;
  color:#64748b;
  font-size:11px;
  font-weight:750;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-empty-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:21px;
  height:21px;
  border-radius:7px;
  background:#eef2ff;
  color:#4f46e5;
  font-size:13px;
  font-weight:950;
}
.er-drawer-backdrop.er-drawer-employee .er-emp-ecp-legacy-note{
  margin-top:7px !important;
  color:#94a3b8 !important;
}
/* Родительское состояние "важная дата" не окрашивает все поля каждой ЭЦП. */
.er-drawer-backdrop.er-drawer-employee .er-ecp-field.er-critical.er-empty input:not([type="hidden"]),
.er-drawer-backdrop.er-drawer-employee .er-ecp-field.er-critical.is-filled input:not([type="hidden"]){
  background:#fff !important;
  border-color:rgba(203,213,225,.86) !important;
  color:#0f172a !important;
}
.er-drawer-backdrop.er-drawer-employee .er-ecp-field.er-critical.er-empty .er-hint,
.er-drawer-backdrop.er-drawer-employee .er-ecp-field.er-critical.is-filled .er-hint{
  color:#64748b !important;
}
@media (max-width:1180px){
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-columns,
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-row{
    grid-template-columns:minmax(150px,1fr) 142px minmax(166px,auto) 32px;
  }
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick .er-mini-chip{padding:5px 6px !important;font-size:9px !important;}
}
@media (max-width:900px){
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-columns{display:none;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-row{
    grid-template-columns:minmax(0,1fr) 150px 32px;
    gap:7px;
    padding:9px;
  }
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick{grid-column:1 / 3;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-remove{grid-column:3;grid-row:1;align-self:end;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-mobile-label{
    display:block;
    margin:0 0 4px;
    color:#94a3b8;
    font-size:9px;
    font-weight:850;
  }
}
@media (max-width:620px){
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-head{align-items:flex-start;flex-direction:column;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-add{width:100%;justify-content:center;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-row{grid-template-columns:1fr 32px;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-cell-name,
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-cell-date,
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick{grid-column:1;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-remove{grid-column:2;grid-row:1;align-self:end;}
  .er-drawer-backdrop.er-drawer-employee .er-emp-ecp-quick{flex-wrap:wrap;}
}

/* CRM 2.46.3 — подтверждение передачи денег управляющему */
.er-manager-transfer-confirmed-note{
  margin-top:8px;
  padding:8px 10px;
  border-radius:10px;
  background:#ecfdf3;
  color:#027a48;
  font-size:12px;
  line-height:1.4;
}
.er-manager-transfer-popup-open{overflow:hidden}
.er-manager-transfer-popup-overlay{
  position:fixed;
  inset:0;
  z-index:100620;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(2px);
}
.er-manager-transfer-popup{
  width:min(560px,96vw);
  border-top:6px solid #16a34a;
  border-radius:18px;
  padding:22px;
}
.er-manager-transfer-popup__icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  background:#ecfdf3;
  color:#15803d;
  font-size:25px;
  font-weight:900;
}
.er-manager-transfer-popup__amount{
  margin:8px 0 16px;
  font-size:34px;
  line-height:1;
  font-weight:900;
  color:#172033;
}
.er-manager-transfer-popup__details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.er-manager-transfer-popup__details>div{
  min-width:0;
  padding:10px 12px;
  border:1px solid #e5eaf1;
  border-radius:12px;
  background:#f8fafc;
}
.er-manager-transfer-popup__details span,
.er-manager-transfer-popup__comment span{
  display:block;
  margin-bottom:3px;
  color:#667085;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.er-manager-transfer-popup__details strong{color:#172033;font-size:14px}
.er-manager-transfer-popup__comment{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff8eb;
  color:#7a4b00;
  font-size:13px;
  line-height:1.45;
}
.er-manager-transfer-popup__hint{
  margin-top:12px;
  color:#667085;
  font-size:12px;
  line-height:1.45;
}
.er-manager-transfer-popup__actions{margin-top:18px}
.er-manager-transfer-popup__actions .er-btn{min-height:42px}
@media(max-width:560px){
  .er-manager-transfer-popup{padding:18px}
  .er-manager-transfer-popup__details{grid-template-columns:1fr}
  .er-manager-transfer-popup__amount{font-size:29px}
  .er-manager-transfer-popup__actions{display:grid;grid-template-columns:1fr}
  .er-manager-transfer-popup__actions .er-btn{width:100%}
}
.er-wallet-receipt-state{margin-top:6px;font-size:11px;font-weight:800;line-height:1.25}.er-wallet-receipt-state.is-confirmed{color:#027a48}.er-wallet-receipt-state.is-pending{color:#b54708}.er-wallet-receipt-state.is-cancelled{color:#667085}.er-wallet-receipt-meta{margin-top:2px;max-width:260px;color:#667085;font-size:10px;line-height:1.35}

/* 2.46.10 — admin queue monitor + inspector */
.er-dashboard-section--queues{border:1px solid var(--er-border,#dbe4ee);border-radius:16px;padding:16px;background:var(--er-card,#fff)}.er-queue-monitor-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid #dbe4ee;border-radius:14px;background:#f8fafc}.er-queue-monitor-summary>div{min-width:0}.er-queue-monitor-summary strong,.er-queue-monitor-summary span{display:block}.er-queue-monitor-summary strong{font-size:15px}.er-queue-monitor-summary span{margin-top:4px;color:#64748b;font-size:12px}.er-queue-monitor-summary>b{min-width:48px;text-align:center;font-size:26px}.er-queue-monitor-summary.is-ok{border-color:#b7e4c7;background:#f3fbf6}.er-queue-monitor-summary.is-warn{border-color:#f0d58a;background:#fffbeb}.er-queue-monitor-summary.is-error{border-color:#efb0b0;background:#fff5f5}.er-queue-monitor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.er-queue-monitor-item{position:relative;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.er-queue-monitor-item.is-warn{border-color:#f0d58a;background:#fffdf5}.er-queue-monitor-item.is-error{border-color:#efb0b0;background:#fffafa}.er-queue-monitor-item.is-ok{border-color:#cfe7d8}.er-queue-monitor-item.is-off{opacity:.72}.er-queue-monitor-item__head{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:7px;align-items:center}.er-queue-monitor-item__head strong{font-size:12px}.er-queue-monitor-item__head em{font-size:10px;font-style:normal;color:#64748b}.er-queue-monitor-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}.er-queue-monitor-item.is-ok .er-queue-monitor-dot{background:#24965f}.er-queue-monitor-item.is-warn .er-queue-monitor-dot{background:#c58a16}.er-queue-monitor-item.is-error .er-queue-monitor-dot{background:#c83e3e}.er-queue-monitor-item__count{margin-top:10px;font-size:25px;font-weight:700;line-height:1}.er-queue-monitor-item__text{margin-top:7px;font-size:12px;color:#475569}.er-queue-monitor-item small{display:block;margin-top:5px;font-size:10px;line-height:1.35;color:#718096}.er-queue-monitor-updated{margin-top:8px;text-align:right;color:#94a3b8;font-size:10px}@media(max-width:1100px){.er-queue-monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.er-queue-monitor-grid{grid-template-columns:1fr}.er-queue-monitor-summary{align-items:flex-start}.er-dashboard-section--queues .er-dashboard-section-head{align-items:flex-start;gap:10px}.er-dashboard-section--queues [data-er-queue-refresh]{flex:0 0 auto}}

/* 2.46.10 — queue inspector / cause analysis */
.er-queue-monitor-item__actions{margin-top:10px}.er-queue-monitor-item__actions .er-btn{width:100%}.er-queue-inspector{margin-top:14px;padding:14px;border:1px solid #cbd5e1;border-radius:16px;background:#fff}.er-queue-inspector[hidden]{display:none!important}.er-queue-inspector__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.er-queue-inspector__head h4{margin:0;font-size:15px}.er-queue-inspector__head p{margin:4px 0 0;color:#64748b;font-size:11px}.er-queue-inspector-loading,.er-queue-inspector-error{padding:18px;border:1px dashed #cbd5e1;border-radius:12px;color:#475569}.er-queue-inspector-error{border-color:#efb0b0;background:#fff7f7;color:#991b1b}.er-queue-inspector-error strong,.er-queue-inspector-error span{display:block}.er-queue-age-banner{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:10px;border:1px solid #f0d58a;border-radius:12px;background:#fffdf5}.er-queue-age-banner.is-error{border-color:#efb0b0;background:#fff5f5}.er-queue-age-banner strong,.er-queue-age-banner span{font-size:11px}.er-queue-inspector-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:10px}.er-queue-inspector-metrics>div{padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.er-queue-inspector-metrics span,.er-queue-inspector-metrics b{display:block}.er-queue-inspector-metrics span{font-size:10px;color:#64748b}.er-queue-inspector-metrics b{margin-top:4px;font-size:20px}.er-queue-diagnosis{display:grid;gap:7px;margin:10px 0}.er-queue-diagnosis h5{margin:0 0 2px;font-size:12px}.er-queue-diagnosis__item{padding:9px 11px;border-left:4px solid #c58a16;border-radius:8px;background:#fffdf5}.er-queue-diagnosis__item.is-error{border-left-color:#c83e3e;background:#fff5f5}.er-queue-diagnosis__item.is-ok{border-left-color:#24965f;background:#f3fbf6}.er-queue-diagnosis__item strong,.er-queue-diagnosis__item span{display:block}.er-queue-diagnosis__item strong{font-size:11px}.er-queue-diagnosis__item span{margin-top:3px;font-size:10px;color:#475569;line-height:1.45}.er-queue-trend{margin:9px 0;padding:9px 11px;border-radius:10px;background:#f8fafc;font-size:11px}.er-queue-trend.is-growing{background:#fff5f5;color:#991b1b}.er-queue-trend.is-draining{background:#f3fbf6;color:#166534}.er-queue-trend.is-stalled{background:#fffdf5;color:#854d0e}.er-queue-errors{margin:9px 0;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.er-queue-errors summary{cursor:pointer;padding:9px 11px;font-size:11px;font-weight:700}.er-queue-errors>div{padding:0 11px 10px}.er-queue-errors p{margin:5px 0;font-size:10px;color:#475569}.er-queue-safe-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;padding:10px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff}.er-queue-safe-actions span{flex:1 1 280px;font-size:10px;color:#475569}.er-queue-inspector-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.er-queue-inspector-filters label{font-size:10px;font-weight:700;color:#475569}.er-queue-inspector-filters select{display:block;width:100%;margin-top:4px;padding:7px 9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:11px}.er-queue-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:12px}.er-queue-table{width:100%;min-width:900px;border-collapse:collapse}.er-queue-table th,.er-queue-table td{padding:8px 9px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top;font-size:10px}.er-queue-table th{position:sticky;top:0;background:#f8fafc;color:#475569;z-index:1}.er-queue-table td small{display:block;margin-top:3px;color:#718096;line-height:1.35}.er-queue-table td strong{font-size:10px}.er-queue-state{display:inline-block;padding:3px 6px;border-radius:999px;background:#f1f5f9;color:#475569;font-weight:700}.er-queue-state.is-failed,.er-queue-state.is-dead_letter{background:#fee2e2;color:#991b1b}.er-queue-state.is-recovery{background:#fef3c7;color:#92400e}.er-queue-state.is-pending,.er-queue-state.is-new{background:#e0f2fe;color:#075985}.er-queue-state.is-sent,.er-queue-state.is-scheduled{background:#dcfce7;color:#166534}.er-queue-local{font-weight:700}.er-queue-local.ok{color:#166534}.er-queue-local.bad{color:#991b1b}.er-queue-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:10px;color:#64748b}.er-queue-pagination>div{display:flex;align-items:center;gap:8px}.er-queue-log-lines{display:grid;gap:4px;max-height:260px;overflow:auto}.er-queue-log-lines code{display:block;padding:6px 8px;border-radius:7px;background:#0f172a;color:#e2e8f0;font-size:9px;white-space:pre-wrap;word-break:break-word}.er-queue-inspector__updated{margin-top:8px;text-align:right;color:#94a3b8;font-size:9px}@media(max-width:1100px){.er-queue-inspector-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.er-queue-inspector__head,.er-queue-age-banner,.er-queue-pagination{align-items:flex-start;flex-direction:column}.er-queue-inspector-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.er-queue-inspector-filters{grid-template-columns:1fr}.er-queue-safe-actions .er-btn{width:100%}}

/* CRM 2.46.12 — Queue Inspector sorting + guided safe recovery */
.er-queue-inspector-filters{grid-template-columns:repeat(5,minmax(0,1fr))}
.er-queue-sort-presets{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:-2px 0 10px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.er-queue-sort-presets>span{font-size:10px;font-weight:700;color:#64748b;margin-right:2px}
.er-queue-sort-head{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.er-queue-sort-head:hover,.er-queue-sort-head[data-sort-active="1"]{color:#1d4ed8;text-decoration:underline;text-underline-offset:2px}
.er-queue-resolution{margin:12px 0;padding:12px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}
.er-queue-resolution__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}
.er-queue-resolution__head h5{margin:0;font-size:13px}.er-queue-resolution__head p{margin:4px 0 0;font-size:10px;line-height:1.4;color:#475569}
.er-queue-resolution__steps{display:grid;gap:7px}
.er-queue-resolution__step{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #dbe4ee;border-radius:11px;background:#fff}
.er-queue-resolution__step.is-error{border-color:#fecaca;background:#fffafa}.er-queue-resolution__step.is-warn{border-color:#fde68a;background:#fffdf5}.er-queue-resolution__step.is-ok{border-color:#bbf7d0;background:#f7fff9}
.er-queue-resolution__num{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#e2e8f0;color:#334155;font-size:11px;font-weight:800}
.er-queue-resolution__step.is-error .er-queue-resolution__num{background:#fee2e2;color:#991b1b}.er-queue-resolution__step.is-warn .er-queue-resolution__num{background:#fef3c7;color:#92400e}.er-queue-resolution__step.is-ok .er-queue-resolution__num{background:#dcfce7;color:#166534}
.er-queue-resolution__body strong,.er-queue-resolution__body span{display:block}.er-queue-resolution__body strong{font-size:11px}.er-queue-resolution__body span{margin-top:3px;font-size:10px;line-height:1.45;color:#475569}
.er-queue-resolution__action{display:flex;justify-content:flex-end;min-width:185px}.er-queue-resolution__done{font-size:10px;font-weight:700;color:#166534}
.er-queue-safe-actions--compact{padding:8px 10px}
@media(max-width:1250px){.er-queue-inspector-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.er-queue-resolution__step{grid-template-columns:28px minmax(0,1fr)}.er-queue-resolution__action{grid-column:2;justify-content:flex-start;min-width:0}}
@media(max-width:700px){.er-queue-inspector-filters{grid-template-columns:1fr}.er-queue-sort-presets .er-btn{flex:1 1 calc(50% - 8px)}.er-queue-resolution__step{grid-template-columns:26px minmax(0,1fr)}.er-queue-resolution__action{grid-column:1 / -1}.er-queue-resolution__action .er-btn,.er-queue-resolution__action a.er-btn{width:100%;text-align:center}}
/* 2.46.16 — queue error period acknowledgement */
.er-queue-inspector-filters input[type=date]{display:block;width:100%;margin-top:4px;padding:7px 9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:11px;box-sizing:border-box}.er-queue-error-period{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:12px 14px;border:1px solid #f0d58a;border-radius:12px;background:#fffdf5}.er-queue-error-period h5{margin:0 0 4px;font-size:12px}.er-queue-error-period p{margin:0;color:#64748b;font-size:10px;line-height:1.45}.er-queue-error-period .er-btn{flex:0 0 auto}@media(max-width:700px){.er-queue-error-period{align-items:stretch;flex-direction:column}.er-queue-error-period .er-btn{width:100%}}

/* 2.48.11 — MAX manual CRM-send visibility is independent from Android/automation. */
.er-settings-pro .er-mobile-chat-card__detail-grid .er-mobile-chat-crm-send{
  grid-column:1/-1;
  margin:0;
  padding:11px 12px;
  border:1px solid #d8e2f1;
  border-radius:12px;
  background:#f8fafc;
}
.er-settings-pro .er-mobile-chat-card__detail-grid .er-mobile-chat-crm-send > span{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.er-settings-pro .er-mobile-chat-card__detail-grid .er-mobile-chat-crm-send b{
  color:#17233a;
  font-size:12px;
}
.er-settings-pro .er-mobile-chat-card__detail-grid .er-mobile-chat-crm-send em{
  color:#607089;
  font-size:11px;
  font-style:normal;
  font-weight:500;
}
.er-settings-pro .er-mobile-chat-crm-quick{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  box-sizing:border-box;
  padding:5px 8px;
  border:1px solid #d6e0ee;
  border-radius:9px;
  background:#f8fafc;
  color:#64748b;
  font-size:9.5px;
  font-weight:850;
  cursor:pointer;
}
.er-settings-pro .er-mobile-chat-crm-quick.is-selected{
  border-color:#9fc6ef;
  background:#eff6ff;
  color:#1d4ed8;
}
.er-settings-pro .er-mobile-chat-crm-quick input{
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  margin:0!important;
  padding:0!important;
  accent-color:#2563eb;
}
@media(max-width:760px){
  .er-settings-pro .er-mobile-chat-crm-quick{justify-content:center;flex:0 0 auto;}
}
nn/* 2.48.12 — explicit money route in manager wallet history. */n.er-manager-wallet-operation-card .er-wallet-history-table{min-width:1280px;}n.er-wallet-route__main{font-weight:700;color:#1f2937;line-height:1.25;}n.er-wallet-route__meta{margin-top:3px;color:#667085;font-size:11px;line-height:1.25;}n.er-wallet-route--from .er-wallet-route__main::before{content:"← ";color:#667085;font-weight:700;}n.er-wallet-route--to .er-wallet-route__main::before{content:"→ ";color:#16a34a;font-weight:800;}n.er-wallet-history-uuid{margin-top:4px;color:#98a2b3;font-size:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;}n@media (max-width:782px){n  .er-manager-wallet-operation-card .er-wallet-history-table{min-width:1180px;}n}n
/* 2.48.13 safe finance correction */
.er-agent-reverse-reason select{width:100%;min-height:42px;border:1px solid #d8dee9;border-radius:10px;padding:8px 10px;background:#fff;}
.er-agent-reverse-confirm{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #f0c7c7;border-radius:12px;background:#fff7f7;font-size:13px;line-height:1.45;}
.er-agent-reverse-confirm input{margin-top:3px;flex:0 0 auto;}

/* =========================================================
   2.48.15 — Unified theme + standalone auth + clean dashboard
   ========================================================= */
html[data-er-theme="light"],
body[data-er-theme="light"]{
  --er-bg:#eef3f8;
  --er-surface:#ffffff;
  --er-surface-2:#f8fafc;
  --er-stroke:rgba(15,23,42,.12);
  --er-stroke-2:rgba(15,23,42,.07);
  --er-text:#0f172a;
  --er-text-2:#64748b;
  color-scheme:light;
}



















/* CRM login is a real full-screen workspace, not a card inside the public site. */
body.er-body-auth{overflow:hidden!important;background:var(--er-bg)!important}
body.er-body-auth #wpadminbar,
body.er-body-auth header,
body.er-body-auth footer,
body.er-body-auth .site-header,
body.er-body-auth .site-footer,
body.er-body-auth .elementor-location-header,
body.er-body-auth .elementor-location-footer,
body.er-body-auth #masthead,
body.er-body-auth #colophon{display:none!important}
.er-auth-page[data-er-auth-overlay="1"]{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  min-height:100vh!important;
  min-height:100svh!important;
  overflow:auto!important;
  display:grid!important;
  place-items:center!important;
  padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))!important;
  background:radial-gradient(1100px 650px at 0% 0%,rgba(37,99,235,.18),transparent 62%),linear-gradient(145deg,#e8eef7 0%,#f8fafc 52%,#edf3fa 100%)!important;
}

.er-auth-page .er-auth-shell{
  width:min(1120px,100%)!important;
  max-width:1120px!important;
  min-height:620px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  margin:auto!important;
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(148,163,184,.24);
  box-shadow:0 35px 100px rgba(15,23,42,.18);
}

.er-auth-intro{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
  padding:52px;
  color:#f8fbff;
  background:linear-gradient(145deg,#0b3a6e 0%,#164e9a 52%,#2563eb 100%);
  overflow:hidden;
}
.er-auth-intro::after{content:"";position:absolute;right:-110px;bottom:-120px;width:360px;height:360px;border-radius:50%;border:70px solid rgba(255,255,255,.08)}
.er-auth-intro__brand,.er-auth-intro__copy,.er-auth-features,.er-auth-intro__foot{position:relative;z-index:1}
.er-auth-intro__brand{display:flex;align-items:center;gap:14px}
.er-auth-intro__brand .er-auth-logo{width:54px;height:54px;background:#fff;color:#174b91;box-shadow:none}
.er-auth-intro__brand span,.er-auth-intro__brand strong{display:block}
.er-auth-intro__brand span{font-size:13px;font-weight:800;letter-spacing:.12em;opacity:.82}
.er-auth-intro__brand strong{margin-top:2px;font-size:24px;letter-spacing:.02em}
.er-auth-intro__copy{margin:auto 0}
.er-auth-intro__copy h1{max-width:520px;margin:0;color:#fff!important;font-size:46px;line-height:1.04;letter-spacing:-.035em}
.er-auth-intro__copy p{max-width:510px;margin:18px 0 0;font-size:17px;line-height:1.55;color:rgba(255,255,255,.82)}
.er-auth-features{display:grid;gap:12px;margin:28px 0 0;padding:0;list-style:none;font-size:14px;font-weight:700}
.er-auth-features li{display:flex;align-items:center;gap:10px}
.er-auth-features li span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.15)}
.er-auth-intro__foot{font-size:12px;color:rgba(255,255,255,.68)}
.er-auth-page .er-auth{
  margin:0!important;
  padding:58px 54px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff!important;
}

.er-auth-kicker{display:block;margin-bottom:7px;color:#2563eb;font-size:11px;font-weight:900;letter-spacing:.12em}
.er-auth .er-auth-head{align-items:flex-start;margin-bottom:28px}
.er-auth .er-auth-head h2{margin:0;font-size:31px;letter-spacing:-.025em}
.er-auth .er-sub{margin:7px 0 0;font-size:14px}
.er-auth .er-theme-toggle{width:44px;height:44px;min-width:44px;border-radius:13px}
.er-auth #loginform p{margin-bottom:16px}
.er-auth #loginform label{font-size:13px}
.er-auth #loginform input[type="text"],
.er-auth #loginform input[type="password"],
.er-auth #loginform input[type="email"]{min-height:50px;font-size:16px;padding:12px 14px}
.er-auth-password-wrap{position:relative;display:block}
.er-auth-password-wrap input{padding-right:52px!important}
.er-auth-password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:10px;background:transparent;cursor:pointer;font-size:16px}
.er-auth-password-toggle:hover{background:rgba(37,99,235,.08)}

.er-auth #loginform .login-remember label{display:inline-flex;align-items:center;gap:8px;margin:0;cursor:pointer}
.er-auth #loginform p.login-submit{margin-top:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.er-auth #loginform p.login-submit input[type="submit"]{min-height:50px;min-width:0;width:100%;font-size:15px}
.er-auth #loginform p.login-submit .er-auth-home-inline{min-height:50px;padding-inline:20px;white-space:nowrap}
.er-auth-foot{margin-top:24px}

/* Dashboard hierarchy */
.er-app.is-dashboard-active .er-topbar .er-top-tasks,
.er-app.is-dashboard-active .er-topbar .er-top-news,
.er-app.is-dashboard-active .er-topbar .er-top-leader{display:none!important}
.er-dashboard-card{overflow:visible}
.er-dashboard-eyebrow{display:block;margin-bottom:5px;color:#2563eb;font-size:10px;font-weight:900;letter-spacing:.12em}
.er-dashboard-tabs{display:flex;gap:6px;margin:0 0 14px;padding:5px;border:1px solid var(--er-stroke);border-radius:14px;background:var(--er-surface-2);width:max-content;max-width:100%}
.er-dashboard-tabs button{min-height:38px;padding:7px 16px;border:0;border-radius:10px;background:transparent;color:var(--er-text-2);font-size:13px;font-weight:900;cursor:pointer}
.er-dashboard-tabs button.is-active{background:var(--er-surface);color:var(--er-text);box-shadow:0 4px 14px rgba(15,23,42,.09)}

.er-dashboard-panel{display:none;min-width:0}
.er-dashboard-panel.is-active{display:block}
.er-dashboard--overview{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
.er-dashboard-section{margin-top:14px}
.er-dashboard-section:first-child{margin-top:0}
.er-dashboard-section-head h4{color:var(--er-text)!important}
.er-dashboard-section-head p{color:var(--er-text-2)!important}
.er-dashboard-branch-total{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid var(--er-stroke);border-radius:999px;background:var(--er-surface-2);color:var(--er-text);font-size:12px;white-space:nowrap}
.er-dashboard-branch-row__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left!important}
.er-dashboard-branch-row__meta b{color:var(--er-text);font-size:10px}
.er-dashboard-trend{display:grid;gap:9px}
.er-dashboard-trend-row{display:grid;grid-template-columns:58px minmax(0,1fr) 44px;gap:10px;align-items:center}
.er-dashboard-trend-row time{font-size:11px;font-weight:800;color:var(--er-text-2)}
.er-dashboard-trend-row strong{text-align:right;font-variant-numeric:tabular-nums;color:var(--er-text);font-size:12px}
.er-dashboard-trend-bar{height:12px;overflow:hidden;border-radius:999px;background:rgba(148,163,184,.18)}
.er-dashboard-trend-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#60a5fa)}
.er-dashboard-events{margin-top:14px;border:1px solid var(--er-stroke);border-radius:14px;background:var(--er-surface-2)}
.er-dashboard-events>summary{padding:11px 14px;cursor:pointer;font-size:12px;font-weight:900;color:var(--er-text)}
.er-dashboard-events__body{padding:0 12px 12px}
.er-dashboard-events__body>.er-card{margin:0!important}
.er-dashboard-breakdown-wrap{margin-top:16px}
.er-dashboard-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

@media (max-width:1100px){
  .er-dashboard--overview{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  .er-main-inner{width:100%!important;transform:none!important}
  .er-auth-page[data-er-auth-overlay="1"]{place-items:start center!important;padding:0!important;background:var(--er-bg)!important}
  .er-auth-page .er-auth-shell{grid-template-columns:1fr!important;min-height:100svh;border:0;border-radius:0;box-shadow:none}
  .er-auth-intro{min-height:auto;padding:max(20px,env(safe-area-inset-top)) 20px 18px;background:linear-gradient(135deg,#0b3a6e,#2563eb)}
  .er-auth-intro__copy,.er-auth-features,.er-auth-intro__foot{display:none}
  .er-auth-intro__brand .er-auth-logo{width:44px;height:44px}
  .er-auth-intro__brand strong{font-size:19px}
  .er-auth-page .er-auth{justify-content:flex-start;padding:26px 20px max(28px,env(safe-area-inset-bottom))!important;min-height:calc(100svh - 82px)}
  .er-auth .er-auth-head{margin-bottom:22px}
  .er-auth .er-auth-head h2{font-size:27px}
  .er-auth #loginform p.login-submit{grid-template-columns:1fr}
  .er-auth #loginform p.login-submit .er-auth-home-inline{width:100%}
  .er-dashboard-tabs{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:8;width:100%;justify-content:stretch;background:color-mix(in srgb,var(--er-surface) 94%,transparent);backdrop-filter:blur(12px)}
  .er-dashboard-tabs button{flex:1 1 0;padding-inline:8px}
  .er-dashboard--overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  .er-dashboard--overview .er-dashboard-metric{min-height:104px!important}
  .er-dashboard-section{margin-top:10px}
  .er-dashboard-trend-row{grid-template-columns:48px minmax(0,1fr) 34px;gap:7px}
}
@media (max-width:390px){
  .er-dashboard--overview{grid-template-columns:1fr!important}
  .er-dashboard--overview .er-dashboard-metric{min-height:0!important}
}
html[data-er-theme="light"] .er-app{
  background:radial-gradient(1100px 520px at 18% 0%,rgba(59,130,246,.05),transparent 60%),radial-gradient(900px 480px at 100% 18%,rgba(16,185,129,.04),transparent 56%),linear-gradient(180deg,#eef3f8 0%,#e9eef5 100%);
}

/* 2.48.15 — frontend login errors remain inside the CRM shell. */
.er-auth-error{
  margin:0 0 16px;
  padding:11px 13px;
  border:1px solid rgba(190,24,93,.22);
  border-radius:12px;
  background:rgba(244,63,94,.09);
  color:#9f1239;
  font-size:14px;
  line-height:1.45;
}




/* =========================================================
   2.48.16 — UI POLISH / DARK MODE V2
   Full CRM viewport, borderless auth shell and readable dark UI.
   ========================================================= */
html.er-html-crm{
  margin-top:0!important;
  padding-top:0!important;
  background:var(--er-bg,#eef3f8)!important;
}
body.er-body-crm{
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:var(--er-bg,#eef3f8)!important;
}
body.er-body-crm #wpadminbar,
body.er-body-crm .site-header,
body.er-body-crm .site-footer,
body.er-body-crm .elementor-location-header,
body.er-body-crm .elementor-location-footer,
body.er-body-crm #masthead,
body.er-body-crm #colophon,
body.er-body-crm .wp-site-blocks>header,
body.er-body-crm .wp-site-blocks>footer{
  display:none!important;
}
body.er-body-crm .er-app{
  position:fixed!important;
  inset:0!important;
  z-index:99990!important;
  width:100vw!important;
  height:100vh!important;
  height:100svh!important;
  min-height:100svh!important;
  margin:0!important;
}












/* Tables: four clearly separated surface levels, no white pills/cells. */





























/* Login: remove side rails caused by .er-wrap padding and make dark mode genuinely dark. */
.er-auth-page .er-auth-shell{
  width:min(1160px,100%)!important;
  max-width:1160px!important;
  min-height:640px!important;
  padding:0!important;
  margin:auto!important;
  border:0!important;
  border-radius:24px!important;
  background:transparent!important;
  box-shadow:0 30px 90px rgba(15,23,42,.20)!important;
  box-sizing:border-box!important;
}
.er-auth-page .er-auth-shell::before{display:none!important}
.er-auth-intro{padding:54px!important;background:linear-gradient(145deg,#0c3c70 0%,#18559d 54%,#2864d9 100%)!important}
.er-auth-intro::after{
  right:-135px!important;
  bottom:-145px!important;
  width:390px!important;
  height:390px!important;
  border-width:62px!important;
  border-color:rgba(255,255,255,.055)!important;
}
.er-auth-intro__copy h1{font-size:44px!important;line-height:1.08!important}
.er-auth-intro__copy p{color:rgba(255,255,255,.84)!important}
.er-auth-features li span{background:rgba(255,255,255,.12)!important}
.er-auth-page .er-auth{background:#fff!important;padding:58px 56px!important}










/* Dashboard: one title in topbar, fewer persistent controls. */
.er-dashboard-head--compact{align-items:center!important;margin-bottom:10px!important}
.er-dashboard-head--compact .er-hint{margin:2px 0 0!important}
.er-dashboard-period-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.er-dashboard-period-picker .er-dashboard-quick-periods{margin:0!important}
.er-dashboard-more-periods{position:relative}
.er-dashboard-more-periods>summary{
  list-style:none;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 11px;
  border:1px solid var(--er-stroke);
  border-radius:10px;
  background:var(--er-surface-2);
  color:var(--er-text-2);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.er-dashboard-more-periods>summary::-webkit-details-marker{display:none}
.er-dashboard-more-periods>summary::after{content:"⌄";font-size:12px;opacity:.8}
.er-dashboard-more-periods[open]>summary::after{transform:rotate(180deg)}
.er-dashboard-more-periods__menu{
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  z-index:40;
  min-width:260px;
  max-width:min(360px,calc(100vw - 28px));
  display:grid;
  gap:5px;
  padding:8px;
  border:1px solid var(--er-stroke);
  border-radius:12px;
  background:var(--er-surface);
  box-shadow:0 18px 44px rgba(15,23,42,.16);
}
.er-dashboard-more-periods__menu button{
  width:100%;
  min-height:34px;
  padding:7px 9px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--er-text);
  text-align:left;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.er-dashboard-more-periods__menu button:hover{background:var(--er-surface-2)}
.er-dashboard-custom-period{border-top:1px solid var(--er-stroke)!important;border-radius:0 0 8px 8px!important;margin-top:3px!important;padding-top:9px!important;color:#2563eb!important}




.er-dashboard-trend[data-er-trend-mode="hourly"] .er-dashboard-trend-row{grid-template-columns:66px minmax(0,1fr) 44px}
.er-dashboard-trend[data-er-trend-mode="hourly"] .er-dashboard-trend-row time{font-variant-numeric:tabular-nums}

/* Keep the floating CRM task control from covering working tables on desktop. */
@media(min-width:981px){
  body.er-body-crm .er-task-widget-fab{right:18px!important;bottom:18px!important;transform:scale(.9);transform-origin:bottom right}
}

@media(max-width:768px){
  .er-auth-page .er-auth-shell{min-height:100svh!important;border-radius:0!important;box-shadow:none!important}
  .er-auth-intro{padding:max(18px,env(safe-area-inset-top)) 18px 16px!important}
  .er-auth-page .er-auth{padding:24px 18px max(26px,env(safe-area-inset-bottom))!important;background:#fff!important}
  
  .er-dashboard-period-picker{display:grid;grid-template-columns:1fr auto;gap:7px}
  .er-dashboard-quick-periods{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%}
  .er-dashboard-more-periods{justify-self:end}
  .er-dashboard-more-periods__menu{position:fixed;left:14px;right:14px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom));max-width:none;min-width:0}
  .er-dashboard-trend[data-er-trend-mode="hourly"] .er-dashboard-trend-row{grid-template-columns:54px minmax(0,1fr) 32px}
}


/* =========================================================
   2.48.17 — SCROLL HOTFIX
   2.48.16 made the CRM a fixed viewport workspace, but the main
   workspace did not own a vertical scroll container. Keep body/app
   locked so public-theme chrome cannot move underneath the CRM and
   scroll only the working pane. Sidebar keeps its independent scroll.
   ========================================================= */
body.er-body-crm:not(.er-body-auth) .er-main{
  height:100%!important;
  min-height:0!important;
  max-height:100vh!important;
  max-height:100svh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  scrollbar-gutter:stable;
}
body.er-body-crm:not(.er-body-auth) .er-topbar{
  position:sticky!important;
  top:0!important;
  z-index:900!important;
  flex:0 0 auto!important;
}
body.er-body-crm:not(.er-body-auth) .er-main-inner{
  min-height:0;
}

/* On narrow screens the app shell is switched to block layout by the
   legacy mobile rules. Explicit viewport sizing on .er-main is required
   there as well, otherwise body overflow:hidden would lock the page. */
@media(max-width:980px){
  body.er-body-crm:not(.er-body-auth) .er-main{
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
}


/* =========================================================
   2.48.18 — SIDEBAR SCROLL HOTFIX
   The fullscreen app shell owns the viewport. Keep sidebar branding
   and logout available while only the navigation list scrolls.
   This avoids clipping long admin/manager menus on short screens.
   ========================================================= */
body.er-body-crm:not(.er-body-auth) .er-sidebar,
body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar{
  height:100vh!important;
  height:100dvh!important;
  max-height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.er-body-crm:not(.er-body-auth) .er-sidebar-top{
  flex:0 0 auto!important;
}
body.er-body-crm:not(.er-body-auth) .er-sidebar .er-nav,
body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar .er-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
  padding-right:3px!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(148,163,184,.48) transparent!important;
}
body.er-body-crm:not(.er-body-auth) .er-sidebar .er-nav::-webkit-scrollbar,
body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar .er-nav::-webkit-scrollbar{
  width:5px!important;
  height:5px!important;
  display:block!important;
}
body.er-body-crm:not(.er-body-auth) .er-sidebar .er-nav::-webkit-scrollbar-track,
body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar .er-nav::-webkit-scrollbar-track{
  background:transparent!important;
}
body.er-body-crm:not(.er-body-auth) .er-sidebar .er-nav::-webkit-scrollbar-thumb,
body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar .er-nav::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.42)!important;
  border-radius:999px!important;
}
html[data-er-theme="light"] body.er-body-crm:not(.er-body-auth) .er-sidebar .er-nav,
html[data-er-theme="light"] body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar .er-nav{
  scrollbar-color:rgba(71,85,105,.36) transparent!important;
}
html[data-er-theme="light"] body.er-body-crm:not(.er-body-auth) .er-sidebar .er-nav::-webkit-scrollbar-thumb,
html[data-er-theme="light"] body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar .er-nav::-webkit-scrollbar-thumb{
  background:rgba(71,85,105,.30)!important;
}
body.er-body-crm:not(.er-body-auth) .er-sidebar-bottom{
  flex:0 0 auto!important;
  margin-top:0!important;
  padding-top:7px!important;
  border-top:1px solid rgba(148,163,184,.16)!important;
  background:inherit!important;
}
@media(max-width:980px){
  body.er-body-crm:not(.er-body-auth) .er-sidebar-portal{
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  body.er-body-crm:not(.er-body-auth) .er-sidebar-portal .er-sidebar{
    padding-bottom:max(6px,env(safe-area-inset-bottom))!important;
  }
}

/* 2.48.19 — unified Automation control center bridge. */
.er-settings-legacy-automation{display:none!important}
.er-automation-settings-bridge{border:1px solid rgba(59,130,246,.24)!important;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(14,165,233,.035))!important}
.er-automation-settings-bridge__grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:10px;margin:14px 0}
.er-automation-settings-bridge__grid>div{padding:11px 12px;border:1px solid var(--er-border,#dbe4ef);border-radius:12px;background:var(--er-surface,#fff);display:grid;gap:3px}
.er-automation-settings-bridge__grid small{color:var(--er-muted,#64748b);font-size:12px}
.er-automation-settings-bridge__grid b{font-size:14px;color:var(--er-text,#172033)}
.er-automation-settings-bridge .er-settings-help{max-width:900px}




@media(max-width:900px){.er-automation-settings-bridge__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.er-automation-settings-bridge__grid{grid-template-columns:1fr}}
.er-automation-settings-bridge__grid span{color:var(--er-muted,#64748b);font-size:12px}


/* v2.49.0 — Automation is the only writable integration/automation settings owner. */
.er-settings-single-source-notice{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid rgba(11,58,110,.18);border-radius:12px;background:rgba(11,58,110,.045)}
.er-settings-single-source-notice>div{display:flex;flex-direction:column;gap:3px}.er-settings-single-source-notice b{font-size:14px}.er-settings-single-source-notice span{font-size:12px;line-height:1.45;opacity:.78}
@media(max-width:720px){.er-settings-single-source-notice{align-items:stretch;flex-direction:column}.er-settings-single-source-notice .er-btn{width:100%;justify-content:center}}

@media (max-width: 720px){
  .er-app[data-er-role] .er-login-identity{font-size:10px;padding:2px 6px;max-width:46vw}
}

/* Navigation: more obvious active state without a glowing blue sidebar. */






/* Typography and identity chip. */




/* Inputs and compact controls. */







/* Tables: stronger header/body separation and less blue wash. */








/* Topbar tasks/news/leader: remove bright white islands in dark mode. */













/* Full tasks UI from er-tasks-widget.js uses injected light CSS; force dark equivalents here. */












/* Light-only sections that previously leaked white backgrounds into dark pages. */









/* Scrollbars become part of the dark UI rather than a bright browser strip. */






@media(max-width:980px){
  
  
  
}

/* Typography */




/* Core surfaces */



/* Kill hard-coded white page/card backgrounds inside CRM without touching media. */


/* Inputs / selects / textarea / file controls */







/* Buttons */





/* Navigation: emerald only where it matters. */






/* Tables */










/* Admin wallet / manager wallet: complete conversion */













/* Cash pages */













/* Record create/edit forms */





/* Employee schedules / calendars */









/* Reports, salary, operation / accounting panels */








/* News/tasks top cards keep semantic color, with restrained saturation. */




/* Common secondary containers that were still white in individual modules. */




/* Select2 / jQuery UI dropdowns rendered outside .er-app. */




/* Semantic pills */





/* Scrollbar */





/* Mobile remains same theme, not a separate blue palette. */
@media(max-width:980px){
  
  
  
}

/* CRM 2.66.2 — exact audit export period indicator. */
.er-audit-export-period{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border:1px solid #d8e1ec;border-radius:10px;background:#f8fafc;color:#475569;font-size:11px;font-weight:800;white-space:nowrap}
.er-audit-export-period.is-invalid{border-color:#fca5a5;background:#fff1f2;color:#be123c}

/* TEX039 CRM 2.69.0: минималистичный индикатор доставки PDF. */
.er-record-pdf-quick-wrap{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:nowrap}
.er-record-send-status{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;min-width:14px;min-height:14px;padding:0;border-radius:50%;border:2px solid rgba(255,255,255,.95);box-shadow:0 0 0 1px rgba(16,24,40,.12),0 1px 3px rgba(16,24,40,.18);vertical-align:middle}
.er-record-send-status i{display:block;width:8px;height:8px;border-radius:50%;background:#d92d20}
.er-record-send-status.is-sent i{background:#12b76a}
.er-record-send-status.is-progress i{background:#f79009}
.er-record-send-status.is-failed i{background:#d92d20}
.er-record-pdf-delivery-detail{display:block!important;margin-top:4px!important;font-size:11px;color:#667085}
@media(max-width:782px){.er-record-send-status{width:13px;height:13px;min-width:13px;min-height:13px}.er-record-send-status i{width:7px;height:7px}.er-record-pdf-quick-wrap{gap:4px}}

/* 2.70.0 — диагностический trace доставки PDF, без влияния на layout CRM */
.er-record-delivery-trace{display:flex;flex-direction:column;gap:7px;max-height:300px;overflow:auto;font-size:12px;line-height:1.45}
.er-record-delivery-trace-line{padding:7px 9px;border:1px solid var(--er-border,#dfe5ec);border-radius:8px;background:var(--er-surface-soft,#f7f9fb);overflow-wrap:anywhere}
.er-record-pdf-row__actions [data-er-record-pdf-retry]{white-space:nowrap}

.er-record-send-status{appearance:none;cursor:pointer;font:inherit;background:transparent;}


/* =========================================================
   2.72.2 — COMPACT OPERATIONAL TOPBAR
   Screenshot-driven regression fix.
   The topbar is persistent/sticky application chrome, not a dashboard.
   Keep tasks/news available without turning them into large floating cards
   that steal vertical workspace. Empty news must not reserve space.
   ========================================================= */
body.er-body-crm:not(.er-body-auth) .er-topbar{
  min-height:64px!important;
  padding:8px 12px!important;
  gap:10px!important;
  align-items:center!important;
}
body.er-body-crm:not(.er-body-auth) .er-topbar-actions{
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
body.er-body-crm:not(.er-body-auth) .er-topbar-actions > .er-btn{
  align-self:center!important;
  width:auto!important;
  min-height:38px!important;
  height:38px!important;
  padding:0 14px!important;
  border-radius:11px!important;
}
body.er-body-crm:not(.er-body-auth) .er-topbar-actions > .er-icon-btn{
  align-self:center!important;
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  border-radius:11px!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-tasks{
  margin-right:0!important;
  align-items:center!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-tasks-card{
  min-width:240px!important;
  max-width:300px!important;
  min-height:54px!important;
  height:54px!important;
  padding:7px 10px!important;
  border-radius:12px!important;
  box-shadow:none!important;
  justify-content:center!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-tasks-title{
  gap:6px!important;
  margin-bottom:2px!important;
  font-size:11px!important;
  line-height:1.05!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-tasks-badge{
  min-width:20px!important;
  height:18px!important;
  padding:0 6px!important;
  font-size:10px!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-tasks-message{
  font-size:12px!important;
  line-height:1.1!important;
  -webkit-line-clamp:1!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-tasks-meta{
  margin-top:2px!important;
  font-size:9px!important;
  line-height:1!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-news{
  align-items:center!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-news-card{
  min-width:240px!important;
  max-width:300px!important;
  min-height:54px!important;
  height:54px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  box-shadow:none!important;
  justify-content:center!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-news-card.is-empty{
  display:none!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-news-message{
  margin-top:0!important;
  font-size:12px!important;
  line-height:1.15!important;
  -webkit-line-clamp:2!important;
}
body.er-body-crm:not(.er-body-auth) .er-top-leader-card{
  min-width:230px!important;
  max-width:280px!important;
  min-height:54px!important;
  height:54px!important;
  padding:7px 10px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.er-body-crm:not(.er-body-auth) .er-topbar-h{
  font-size:22px!important;
}
body.er-body-crm:not(.er-body-auth) .er-login-identity{
  margin-top:2px!important;
  padding:2px 7px!important;
  font-size:11px!important;
}
body.er-body-crm:not(.er-body-auth) .er-topbar-sub{
  margin-top:1px!important;
  font-size:11px!important;
}
@media (max-width:1440px){
  body.er-body-crm:not(.er-body-auth) .er-top-tasks-card,
  body.er-body-crm:not(.er-body-auth) .er-top-news-card{
    min-width:210px!important;
    max-width:250px!important;
  }
  body.er-body-crm:not(.er-body-auth) .er-top-leader-card{
    min-width:205px!important;
    max-width:235px!important;
  }
}
@media (max-width:1180px){
  body.er-body-crm:not(.er-body-auth) .er-top-news,
  body.er-body-crm:not(.er-body-auth) .er-top-leader{
    display:none!important;
  }
}

/* === 2.72.5 — compact aligned RECORD filters only; finance/operations untouched === */
@media (min-width: 901px){
  .er-app .er-sortbar-records-only{
    position:relative !important;
    padding:12px 14px 10px !important;
    margin:0 0 10px !important;
    border:1px solid #dce5ef !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 4px 14px rgba(15,23,42,.035) !important;
    overflow:visible !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-head{
    min-height:36px !important;
    margin:0 0 8px !important;
    padding:0 0 8px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    border-bottom:1px solid #eef2f7 !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-head__copy{min-width:0 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head b{
    display:block !important;
    margin:0 !important;
    font-size:16px !important;
    line-height:1.15 !important;
    font-weight:850 !important;
    letter-spacing:-.015em !important;
    color:#172033 !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-head__copy > span{display:none !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head__actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    flex:0 0 auto !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-reset{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    height:32px !important;
    min-height:32px !important;
    padding:0 8px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:8px !important;
    background:transparent !important;
    color:#2563eb !important;
    font-size:12px !important;
    font-weight:800 !important;
    line-height:1 !important;
    box-shadow:none !important;
    cursor:pointer !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-reset span{
    display:inline !important;
    margin:0 !important;
    color:inherit !important;
    font-size:inherit !important;
    font-weight:inherit !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-reset:hover{background:#eff6ff !important;}
  .er-app .er-sortbar-records-only .er-records-filter-apply{
    height:32px !important;
    min-height:32px !important;
    min-width:104px !important;
    padding:0 15px !important;
    border-radius:8px !important;
    font-size:12px !important;
    font-weight:850 !important;
    box-shadow:0 4px 10px rgba(37,99,235,.15) !important;
  }

  .er-app .er-sortbar-records-only .er-filters-row{
    display:grid !important;
    grid-template-columns:minmax(150px,.82fr) minmax(150px,.82fr) minmax(230px,1.35fr) minmax(220px,1.25fr) minmax(180px,1fr) !important;
    column-gap:12px !important;
    row-gap:9px !important;
    align-items:end !important;
    min-height:0 !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets{
    order:-20 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    min-height:30px !important;
    margin:0 0 1px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:6px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    height:29px !important;
    min-height:29px !important;
    padding:0 11px !important;
    border:1px solid #d7e1ec !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#334155 !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1 !important;
    box-shadow:0 1px 1px rgba(15,23,42,.02) !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-btn:hover{
    border-color:#9dbdff !important;
    background:#f7faff !important;
    color:#1d4ed8 !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-btn.is-active{
    border-color:#7aa5ff !important;
    background:#f3f7ff !important;
    color:#1557d6 !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-clear{display:none !important;}

  .er-app .er-sortbar-records-only .er-field-inline,
  .er-app .er-sortbar-records-only .er-filter-date-from,
  .er-app .er-sortbar-records-only .er-filter-date-to,
  .er-app .er-sortbar-records-only .er-records-filter-search,
  .er-app .er-sortbar-records-only .er-records-filter-status,
  .er-app .er-sortbar-records-only .er-records-filter-branch,
  .er-app .er-sortbar-records-only .er-records-filter-employee,
  .er-app .er-sortbar-records-only .er-records-filter-agent,
  .er-app .er-sortbar-records-only .er-records-filter-payment,
  .er-app .er-sortbar-records-only .er-records-filter-order{
    order:0 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    flex:initial !important;
    flex-basis:auto !important;
    box-sizing:border-box !important;
  }
  .er-app .er-sortbar-records-only .er-filter-date-from{grid-column:1 !important;}
  .er-app .er-sortbar-records-only .er-filter-date-to{grid-column:2 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-search{grid-column:3 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-status{grid-column:4 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-branch{grid-column:5 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
    align-items:end !important;
  }

  .er-app .er-sortbar-records-only .er-field label{
    display:block !important;
    margin:0 0 4px !important;
    font-size:10px !important;
    line-height:1.1 !important;
    color:#445168 !important;
    font-weight:800 !important;
  }
  .er-app .er-sortbar-records-only .er-field input,
  .er-app .er-sortbar-records-only .er-field select,
  .er-app .er-sortbar-records-only .er-filter-agent-control,
  .er-app .er-sortbar-records-only .er-filter-agent-control > input{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .er-app .er-sortbar-records-only .er-field input,
  .er-app .er-sortbar-records-only .er-field select,
  .er-app .er-sortbar-records-only .er-filter-agent-control > input{
    height:35px !important;
    min-height:35px !important;
    padding:6px 10px !important;
    border:1px solid #d8e1eb !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#1f2937 !important;
    font-size:12px !important;
    line-height:1.15 !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only .er-field input:focus,
  .er-app .er-sortbar-records-only .er-field select:focus,
  .er-app .er-sortbar-records-only .er-filter-agent-control > input:focus{
    border-color:#80a9ff !important;
    box-shadow:0 0 0 3px rgba(37,99,235,.09) !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-search input{text-overflow:ellipsis !important;}
  .er-app .er-sortbar-records-only .er-records-filter-order select{padding-right:30px !important;}

  .er-app .er-sortbar-records-only .er-field-actions{
    order:50 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-height:34px !important;
    margin:1px -2px -1px !important;
    padding:8px 2px 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    border-top:1px solid #eef2f7 !important;
  }
  .er-app .er-sortbar-records-only .er-field-actions > label{display:none !important;}
  .er-app .er-sortbar-records-only .er-field-actions [data-er-action="table_refresh"]{display:none !important;}
  .er-app .er-sortbar-records-only .er-field-actions .er-btn-export{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    height:31px !important;
    min-height:31px !important;
    padding:0 12px !important;
    border:1px solid #d8e1eb !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#334155 !important;
    font-size:11px !important;
    font-weight:800 !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-more{
    appearance:none !important;
    margin-left:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    height:31px !important;
    min-height:31px !important;
    padding:0 7px !important;
    border:0 !important;
    border-radius:8px !important;
    background:transparent !important;
    color:#2563eb !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1 !important;
    cursor:pointer !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-more:hover{background:#eff6ff !important;}
  .er-app .er-sortbar-records-only .er-records-filter-more i{
    display:inline-block !important;
    font-style:normal !important;
    font-size:14px !important;
    line-height:1 !important;
    transform:rotate(180deg) !important;
    transition:transform .16s ease !important;
  }
  .er-app .er-sortbar-records-only.is-er-records-advanced-collapsed .er-records-filter-advanced-grid,
  .er-app .er-sortbar-records-only.is-er-records-advanced-collapsed .er-records-filter-advanced-field{display:none !important;}
  .er-app .er-sortbar-records-only.is-er-records-advanced-collapsed .er-records-filter-more i{transform:rotate(0deg) !important;}
}

@media (min-width: 1101px) and (max-width: 1360px){
  .er-app .er-sortbar-records-only .er-filters-row{
    grid-template-columns:repeat(4,minmax(160px,1fr)) !important;
    column-gap:10px !important;
    row-gap:9px !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets{grid-column:1 / -1 !important;}
  .er-app .er-sortbar-records-only .er-filter-date-from{grid-column:1 !important;}
  .er-app .er-sortbar-records-only .er-filter-date-to{grid-column:2 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-search{grid-column:3 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-status{grid-column:4 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-branch{grid-column:1 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid{grid-column:1 / -1 !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:10px !important;}
  .er-app .er-sortbar-records-only .er-field-actions{grid-column:1 / -1 !important;}
}

@media (min-width: 901px) and (max-width: 1100px){
  .er-app .er-sortbar-records-only .er-filters-row{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    column-gap:10px !important;
    row-gap:9px !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets,
  .er-app .er-sortbar-records-only .er-records-filter-search,
  .er-app .er-sortbar-records-only .er-records-filter-status,
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid,
  .er-app .er-sortbar-records-only .er-field-actions{grid-column:1 / -1 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
}

@media (max-width: 900px){
  .er-app .er-sortbar-records-only .er-records-filter-head__actions,
  .er-app .er-sortbar-records-only .er-records-filter-more{display:none !important;}
}

/* === 2.72.6 — full-width RECORD filter workspace + integrated bulk actions; finance untouched === */
@media (min-width: 1361px){
  .er-app .er-sortbar-records-only{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }
  .er-app .er-sortbar-records-only .er-filters-row{
    width:100% !important;
    max-width:none !important;
    display:grid !important;
    grid-template-columns:repeat(12,minmax(0,1fr)) !important;
    column-gap:12px !important;
    row-gap:9px !important;
    align-items:end !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets{
    grid-column:1 / -1 !important;
  }
  .er-app .er-sortbar-records-only .er-filter-date-from{
    grid-column:span 2 !important;
  }
  .er-app .er-sortbar-records-only .er-filter-date-to{
    grid-column:span 2 !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-search{
    grid-column:span 3 !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-status{
    grid-column:span 3 !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-branch{
    grid-column:span 2 !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid{
    grid-column:1 / -1 !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .er-app .er-sortbar-records-only .er-field-actions{
    grid-column:1 / -1 !important;
  }
  .er-app .er-sortbar-records-only .er-field-inline,
  .er-app .er-sortbar-records-only .er-field-inline > input,
  .er-app .er-sortbar-records-only .er-field-inline > select,
  .er-app .er-sortbar-records-only .er-filter-agent-control,
  .er-app .er-sortbar-records-only .er-filter-agent-control > input{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  /* Массовые действия — не отдельная карточка, а нижняя рабочая строка фильтра. */
  .er-app .er-sortbar-records-only > .er-records-bulk-card{
    width:100% !important;
    max-width:none !important;
    margin:8px 0 0 !important;
    padding:10px 0 0 !important;
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    gap:12px !important;
    align-items:center !important;
    border:0 !important;
    border-top:1px solid #e7edf5 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__head{
    min-width:max-content !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__titlebox{
    display:flex !important;
    align-items:center !important;
    min-width:max-content !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__title{
    font-size:12px !important;
    line-height:1 !important;
    font-weight:850 !important;
    color:#1e293b !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__subtitle{
    display:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__counter{
    height:29px !important;
    min-height:29px !important;
    padding:0 10px !important;
    gap:5px !important;
    border:1px solid #dbe7ff !important;
    border-radius:8px !important;
    background:#f4f7ff !important;
    color:#1d4ed8 !important;
    font-size:11px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__body{
    min-width:0 !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    gap:8px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__toolbar{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    flex-wrap:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__toolbar .er-btn{
    width:auto !important;
    min-width:0 !important;
    height:31px !important;
    min-height:31px !important;
    padding:0 10px !important;
    border-radius:8px !important;
    font-size:10px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__form{
    min-width:0 !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    gap:8px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field{
    min-width:0 !important;
    gap:3px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field:first-child{
    width:210px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field--employee{
    width:240px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field--agent{
    width:210px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__label{
    margin:0 !important;
    font-size:9px !important;
    line-height:1 !important;
    font-weight:800 !important;
    color:#64748b !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card select,
  .er-app .er-sortbar-records-only > .er-records-bulk-card input{
    width:100% !important;
    height:31px !important;
    min-height:31px !important;
    padding:4px 9px !important;
    border:1px solid #d8e1eb !important;
    border-radius:8px !important;
    background:#fff !important;
    font-size:11px !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field--agent .er-hint{
    display:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__submit .er-btn{
    height:31px !important;
    min-height:31px !important;
    min-width:96px !important;
    padding:0 13px !important;
    border-radius:8px !important;
    font-size:11px !important;
    font-weight:850 !important;
  }
}

@media (min-width: 1101px) and (max-width: 1360px){
  .er-app .er-sortbar-records-only > .er-records-bulk-card{
    margin:8px 0 0 !important;
    padding:10px 0 0 !important;
    border:0 !important;
    border-top:1px solid #e7edf5 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__subtitle{display:none !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__body{grid-template-columns:1fr !important;}
}

@media (max-width: 1100px){
  .er-app .er-sortbar-records-only > .er-records-bulk-card{
    margin:8px 0 0 !important;
    padding:10px 0 0 !important;
    border:0 !important;
    border-top:1px solid #e7edf5 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__subtitle{display:none !important;}
}

/* === 2.72.7 — RECORDS workspace: full-width balanced filters + inline bulk actions ===
   Visual-only scope. Finance, operations, cashes and reports are intentionally untouched. */
@media (min-width: 1201px){
  .er-app .er-sortbar-records-only{
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    margin:10px 0 10px !important;
    padding:14px 16px 12px !important;
    box-sizing:border-box !important;
    border:1px solid #dce6f0 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 5px 18px rgba(15,23,42,.045) !important;
    overflow:visible !important;
  }

  /* Верх панели: быстрые периоды слева, сброс/показать справа. */
  .er-app .er-sortbar-records-only .er-records-filter-head{
    position:absolute !important;
    z-index:4 !important;
    top:13px !important;
    right:16px !important;
    width:auto !important;
    min-height:34px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    pointer-events:none !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-head__copy{display:none !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head__actions{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    pointer-events:auto !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-reset{
    height:34px !important;
    min-height:34px !important;
    padding:0 8px !important;
    border:0 !important;
    background:transparent !important;
    color:#2563eb !important;
    font-size:12px !important;
    line-height:1 !important;
    font-weight:800 !important;
    border-radius:9px !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-reset:hover{background:#eff6ff !important;}
  .er-app .er-sortbar-records-only .er-records-filter-apply{
    width:auto !important;
    min-width:112px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    box-shadow:0 4px 10px rgba(37,99,235,.18) !important;
  }

  .er-app .er-sortbar-records-only .er-filters-row{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:repeat(10,minmax(0,1fr)) !important;
    column-gap:14px !important;
    row-gap:12px !important;
    align-items:end !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets{
    order:-20 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    min-height:36px !important;
    margin:0 0 2px !important;
    padding:0 232px 0 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    flex-wrap:nowrap !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-btn{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    height:34px !important;
    min-height:34px !important;
    padding:0 13px !important;
    border:1px solid #d8e1eb !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#334155 !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:800 !important;
    box-shadow:none !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-btn:hover,
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-btn.is-active{
    border-color:#9dbaff !important;
    background:#f3f7ff !important;
    color:#1d4ed8 !important;
  }
  .er-app .er-sortbar-records-only .er-period-presets .er-period-preset-clear{display:none !important;}

  /* Первая строка — пять одинаково сбалансированных полей на всю ширину. */
  .er-app .er-sortbar-records-only .er-filter-date-from{order:0 !important;grid-column:span 2 !important;}
  .er-app .er-sortbar-records-only .er-filter-date-to{order:0 !important;grid-column:span 2 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-search{order:0 !important;grid-column:span 2 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-status{order:0 !important;grid-column:span 2 !important;}
  .er-app .er-sortbar-records-only .er-records-filter-branch{order:0 !important;grid-column:span 2 !important;}

  /* Вторая строка — четыре равные рабочие колонки на всю ширину. */
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid{
    order:10 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
    align-items:end !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid > .er-field{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
  }

  .er-app .er-sortbar-records-only .er-field-inline,
  .er-app .er-sortbar-records-only .er-filter-agent-control{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
  }
  .er-app .er-sortbar-records-only .er-field label{
    display:block !important;
    margin:0 0 5px !important;
    color:#334155 !important;
    font-size:10.5px !important;
    line-height:1.1 !important;
    font-weight:800 !important;
  }
  .er-app .er-sortbar-records-only .er-field input,
  .er-app .er-sortbar-records-only .er-field select,
  .er-app .er-sortbar-records-only .er-filter-agent-control > input{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:38px !important;
    min-height:38px !important;
    padding:6px 11px !important;
    box-sizing:border-box !important;
    border:1px solid #d8e1eb !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#1f2937 !important;
    font-size:12px !important;
    line-height:1.2 !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only .er-field input:focus,
  .er-app .er-sortbar-records-only .er-field select:focus,
  .er-app .er-sortbar-records-only .er-filter-agent-control > input:focus{
    outline:none !important;
    border-color:#8fb1ff !important;
    box-shadow:0 0 0 3px rgba(37,99,235,.08) !important;
  }

  /* 2.72.7: старый блок действий внутри grid не используется на records. */
  .er-app .er-sortbar-records-only .er-filters-row > .er-field-actions{display:none !important;}

  /* Массовые действия — одна спокойная строка внутри общей карточки. */
  .er-app .er-sortbar-records-only > .er-records-bulk-card{
    width:100% !important;
    max-width:none !important;
    margin:14px 0 0 !important;
    padding:12px 0 0 !important;
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) !important;
    gap:18px !important;
    align-items:center !important;
    border:0 !important;
    border-top:1px solid #e7edf5 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__head{
    min-width:max-content !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__titlebox{min-width:max-content !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__title{
    font-size:12px !important;
    line-height:1.1 !important;
    font-weight:850 !important;
    color:#1e293b !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__subtitle{display:none !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__counter{
    height:31px !important;
    min-height:31px !important;
    padding:0 10px !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:5px !important;
    border:1px solid #dbe7ff !important;
    border-radius:8px !important;
    background:#f4f7ff !important;
    color:#1d4ed8 !important;
    font-size:10.5px !important;
    line-height:1 !important;
    font-weight:800 !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__toggle{display:none !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__body{
    min-width:0 !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    gap:12px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__toolbar{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    flex-wrap:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__toolbar .er-btn{
    width:auto !important;
    min-width:0 !important;
    height:34px !important;
    min-height:34px !important;
    padding:0 12px !important;
    border-radius:8px !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:750 !important;
    white-space:nowrap !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__form{
    min-width:0 !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    gap:8px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field{
    min-width:0 !important;
    width:250px !important;
    gap:4px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field--employee{width:230px !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field--agent{width:210px !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__label{
    margin:0 0 2px !important;
    color:#64748b !important;
    font-size:9.5px !important;
    line-height:1 !important;
    font-weight:800 !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card select,
  .er-app .er-sortbar-records-only > .er-records-bulk-card input{
    width:100% !important;
    height:34px !important;
    min-height:34px !important;
    padding:5px 10px !important;
    border:1px solid #d8e1eb !important;
    border-radius:8px !important;
    background:#fff !important;
    font-size:10.5px !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__field--agent .er-hint{display:none !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__submit .er-btn{
    min-width:104px !important;
    height:34px !important;
    min-height:34px !important;
    padding:0 14px !important;
    border-radius:8px !important;
    font-size:11px !important;
    font-weight:850 !important;
  }

  /* Нижний футер: экспорт слева, раскрытие дополнительных полей справа. */
  .er-app .er-sortbar-records-only > .er-records-filter-footer{
    width:100% !important;
    margin:12px 0 0 !important;
    padding:10px 0 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    border-top:1px solid #e7edf5 !important;
  }
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__export{
    width:auto !important;
    height:34px !important;
    min-height:34px !important;
    padding:0 13px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    border:1px solid #d8e1eb !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#334155 !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:800 !important;
    box-shadow:none !important;
  }
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__more{
    appearance:none !important;
    width:auto !important;
    height:34px !important;
    min-height:34px !important;
    margin:0 !important;
    padding:0 8px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;
    border:0 !important;
    border-radius:8px !important;
    background:transparent !important;
    color:#2563eb !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:850 !important;
    cursor:pointer !important;
  }
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__more:hover{background:#eff6ff !important;}
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__more i{
    display:inline-block !important;
    font-style:normal !important;
    font-size:13px !important;
    line-height:1 !important;
    transform:none !important;
  }

  .er-app .er-sortbar-records-only.is-er-records-advanced-collapsed .er-records-filter-advanced-grid,
  .er-app .er-sortbar-records-only.is-er-records-advanced-collapsed .er-records-filter-advanced-field{display:none !important;}
}

/* Mid-size desktop: keep the same hierarchy without horizontal stretching artifacts. */
@media (min-width: 901px) and (max-width: 1200px){
  .er-app .er-sortbar-records-only{position:relative !important;padding:14px !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head{position:static !important;margin:0 0 10px !important;padding:0 !important;border:0 !important;background:transparent !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head__copy{display:none !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head__actions{display:flex !important;justify-content:flex-end !important;gap:8px !important;}
  .er-app .er-sortbar-records-only .er-filters-row{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:11px !important;}
  .er-app .er-sortbar-records-only .er-period-presets{grid-column:1/-1 !important;display:flex !important;gap:6px !important;flex-wrap:wrap !important;}
  .er-app .er-sortbar-records-only .er-filter-date-from,
  .er-app .er-sortbar-records-only .er-filter-date-to,
  .er-app .er-sortbar-records-only .er-records-filter-search,
  .er-app .er-sortbar-records-only .er-records-filter-status,
  .er-app .er-sortbar-records-only .er-records-filter-branch{grid-column:auto !important;}
  .er-app .er-sortbar-records-only .er-records-filter-advanced-grid{grid-column:1/-1 !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:11px !important;}
  .er-app .er-sortbar-records-only .er-filters-row > .er-field-actions{display:none !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card{margin-top:12px !important;padding-top:12px !important;border:0 !important;border-top:1px solid #e7edf5 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;}
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__subtitle,
  .er-app .er-sortbar-records-only > .er-records-bulk-card .er-records-bulk-card__toggle{display:none !important;}
  .er-app .er-sortbar-records-only > .er-records-filter-footer{margin-top:12px !important;padding-top:10px !important;display:flex !important;justify-content:space-between !important;border-top:1px solid #e7edf5 !important;}
}
@media (min-width:1201px){
  .er-app .er-sortbar-records-only > .er-records-bulk-card[data-er-performance-collapsed="1"]{
    margin:14px 0 0 !important;
    padding:12px 0 0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
}
@media (min-width:1201px){
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__more svg,
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__export svg{
    flex:0 0 auto !important;
    display:block !important;
  }
}

/* Mobile keeps the primary refresh action available after the desktop markup cleanup. */
@media (max-width:900px){
  .er-app .er-sortbar-records-only .er-records-filter-head{
    position:static !important;
    width:100% !important;
    min-height:38px !important;
    margin:0 0 10px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
  .er-app .er-sortbar-records-only .er-records-filter-head__copy{display:none !important;}
  .er-app .er-sortbar-records-only .er-records-filter-head__actions{
    display:flex !important;
    width:100% !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
  }
  .er-app .er-sortbar-records-only > .er-records-filter-footer{
    width:100% !important;
    margin-top:10px !important;
    padding-top:10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    border-top:1px solid #e7edf5 !important;
  }
  .er-app .er-sortbar-records-only > .er-records-filter-footer .er-records-filter-footer__more{display:none !important;}
}

/* 2.73.3 — finance upgrade safety evidence */
.er-finance-upgrade-safety{display:grid;gap:14px}
.er-finance-upgrade-safety__summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:14px;border:1px solid #bbf7d0;border-radius:12px;background:#f0fdf4}
.er-finance-upgrade-safety.is-critical .er-finance-upgrade-safety__summary{border-color:#fecaca;background:#fef2f2}
.er-finance-upgrade-safety__summary strong{grid-column:1/-1;font-size:15px}
.er-finance-upgrade-safety__summary span{font-size:12px;color:#475569}
.er-finance-upgrade-freeze{display:grid;gap:6px;padding:12px 14px;border-radius:10px;border:1px solid #bbf7d0;background:#f0fdf4}
.er-finance-upgrade-freeze.is-critical{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.er-finance-upgrade-freeze .er-btn{justify-self:start;margin-top:4px}
.er-finance-upgrade-safety h4{margin:2px 0 0;font-size:13px;color:#172033}
.er-finance-upgrade-safety .er-table-wrap{max-height:300px;overflow:auto;border:1px solid #e2e8f0;border-radius:10px}
.er-finance-upgrade-safety .er-table{margin:0;min-width:760px}
@media(max-width:760px){.er-finance-upgrade-safety__summary{grid-template-columns:1fr}.er-finance-upgrade-safety__summary strong{grid-column:auto}.er-finance-upgrade-safety .er-table{min-width:640px}}
/* 2.73.4 — explicit source-of-truth and projection integrity status. */
.er-finance-source-banner{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 14px;padding:11px 14px;border:1px solid #b8d8c5;border-radius:12px;background:#f0faf4;color:#1d5634;font-size:13px}
.er-finance-source-banner.is-warning{border-color:#efc36f;background:#fff8e8;color:#704c0c}
.er-finance-source-banner strong{font-weight:750}

/* 2.73.6 — protected full financial-system checkpoint */
.er-finance-system-snapshot{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:20px 22px;border:1px solid rgba(37,99,235,.22);border-radius:20px;background:linear-gradient(135deg,rgba(239,246,255,.96),rgba(255,255,255,.98));box-shadow:0 12px 30px rgba(15,23,42,.06)}
.er-finance-system-snapshot.has-snapshot{border-color:rgba(5,150,105,.28);background:linear-gradient(135deg,rgba(236,253,245,.95),rgba(255,255,255,.98))}
.er-finance-system-snapshot__copy{min-width:0;display:grid;gap:7px}.er-finance-system-snapshot__eyebrow{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#2563eb}.er-finance-system-snapshot.has-snapshot .er-finance-system-snapshot__eyebrow{color:#047857}
.er-finance-system-snapshot h3{margin:0;font-size:20px;line-height:1.2;color:#0f172a}.er-finance-system-snapshot p{margin:0;color:#334155;line-height:1.5}.er-finance-system-snapshot small{color:#64748b;line-height:1.45;max-width:980px}
.er-finance-system-snapshot__facts{display:flex;flex-wrap:wrap;gap:7px;margin-top:3px}.er-finance-system-snapshot__facts span{display:inline-flex;gap:5px;align-items:center;padding:6px 9px;border:1px solid rgba(148,163,184,.25);border-radius:999px;background:rgba(255,255,255,.82);font-size:12px;color:#475569}.er-finance-system-snapshot__facts b{color:#0f172a;font-variant-numeric:tabular-nums}
.er-finance-system-snapshot__actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:430px}.er-finance-system-snapshot__actions .er-btn{white-space:nowrap}
@media(max-width:900px){.er-finance-system-snapshot{flex-direction:column;padding:16px}.er-finance-system-snapshot__actions{width:100%;max-width:none}.er-finance-system-snapshot__actions .er-btn{flex:1 1 100%;width:100%}}


/* 2.73.24 — audit closure U05/U06: full-width documents and compact agent wallet. */
.er-app .er-view[data-er-view="documents"],
.er-app .er-view[data-er-view="documents"]>.er-card.er-block,
.er-app .er-view[data-er-view="documents"] .er-documents-root,
.er-app .er-view[data-er-view="documents"] .er-docs-v229,
.er-app .er-view[data-er-view="documents"] .er-contracts-v229{
  width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;
}
.er-app .er-view[data-er-view="documents"]>.er-card.er-block{margin-inline:0!important;padding-inline:0!important;}
.er-agent-wallet-card--clean{padding:12px 14px!important;border-radius:14px!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__main{display:grid!important;grid-template-columns:minmax(180px,1.4fr) minmax(220px,1fr) auto!important;gap:12px!important;align-items:center!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__money{display:grid!important;grid-template-columns:repeat(2,minmax(96px,1fr))!important;gap:8px 14px!important;align-items:center!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__debt,
.er-agent-wallet-card--clean .er-agent-wallet-card__overpayment{padding:0!important;background:transparent!important;border:0!important;min-width:0!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__debt-label{font-size:11px!important;line-height:1.2!important;color:#64748b!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__debt-value,
.er-agent-wallet-card--clean .er-agent-wallet-card__overpayment-value{margin-top:2px!important;font-size:17px!important;font-weight:800!important;line-height:1.15!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__overpayment-value{color:#64748b!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__overpayment.has-value .er-agent-wallet-card__overpayment-value{color:#047857!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__actions{justify-content:flex-end!important;margin:0!important;}
.er-agent-wallet-card--clean .er-agent-wallet-card__actions-right{display:flex!important;justify-content:flex-end!important;}
.er-agent-account-hero__money{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;}
.er-agent-account-hero__money .er-agent-account-hero__amount{min-width:150px;}
.er-agent-account-hero__amount--overpayment strong{color:#047857;}
@media(max-width:760px){
  .er-agent-wallet-card--clean{padding:10px 11px!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__main{grid-template-columns:minmax(0,1fr) auto!important;gap:8px 10px!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__identity{grid-column:1/2!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__money{grid-column:1/2!important;grid-row:2!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__actions{grid-column:2!important;grid-row:1/3!important;align-self:stretch!important;display:flex!important;align-items:center!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__actions .er-btn{min-height:38px!important;padding:8px 10px!important;white-space:nowrap!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__title{font-size:15px!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__subtitle{font-size:12px!important;}
  .er-agent-wallet-card--clean .er-agent-wallet-card__debt-value,
  .er-agent-wallet-card--clean .er-agent-wallet-card__overpayment-value{font-size:15px!important;}
  .er-agent-account-hero__money{width:100%;}
  .er-agent-account-hero__money .er-agent-account-hero__amount{flex:1 1 calc(50% - 5px);min-width:0;}
}

/* 2.73.25 — Finance Core migration state is shown inline instead of stacking toasts. */
.er-finance-unavailable-inline{display:flex;align-items:flex-start;gap:14px;margin:4px 0;padding:18px;border:1px solid #bfdbfe;border-radius:16px;background:#f8fbff;color:#1e293b;box-shadow:0 8px 28px rgba(15,23,42,.05)}
.er-finance-unavailable-inline__icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#dbeafe;color:#1d4ed8;font-size:22px;font-weight:800}
.er-finance-unavailable-inline__body{min-width:0;flex:1}.er-finance-unavailable-inline__body>strong{display:block;font-size:15px;line-height:1.25;margin-bottom:5px}.er-finance-unavailable-inline__body>p{margin:0 0 5px;line-height:1.45;color:#475569}.er-finance-unavailable-inline__body>small{display:block;color:#64748b;line-height:1.4}.er-finance-unavailable-inline .er-actions{margin-top:12px}
.er-finance-unavailable-inline[data-er-finance-migration-state="failed"]{border-color:#fecaca;background:#fff7f7}.er-finance-unavailable-inline[data-er-finance-migration-state="failed"] .er-finance-unavailable-inline__icon{background:#fee2e2;color:#b91c1c}
@media(max-width:680px){.er-finance-unavailable-inline{padding:14px;gap:10px}.er-finance-unavailable-inline__icon{width:34px;height:34px;flex-basis:34px}.er-finance-unavailable-inline .er-btn{width:100%}}

/* 2.73.27 compact three-stage Finance launch */
.er-finance-launch-compact{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin:0 0 14px;border:1px solid var(--er-border,#e5e7eb);border-radius:14px;background:var(--er-surface,#fff)}
.er-finance-launch-compact>div{display:flex;flex-direction:column;gap:3px;min-width:0}.er-finance-launch-compact strong{font-size:14px}.er-finance-launch-compact small{font-size:12px;color:var(--er-muted,#6b7280)}.er-finance-launch-compact.is-ready strong{color:#137333}.er-finance-launch-compact.is-error strong{color:#b42318}
.er-finance-launch-master{display:grid;gap:12px}.er-finance-launch-master__intro{padding:14px;border-radius:14px;background:rgba(59,130,246,.07)}.er-finance-launch-master__intro>strong{font-size:18px}.er-finance-launch-master__intro p{margin:6px 0 0;color:var(--er-muted,#6b7280)}
.er-finance-launch-stage{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--er-border,#e5e7eb);border-radius:16px}.er-finance-launch-stage__index{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:rgba(59,130,246,.10)}.er-finance-launch-stage__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.er-finance-launch-stage__head h4{margin:0 0 3px}.er-finance-launch-stage__head span{font-size:12px;color:var(--er-muted,#6b7280)}.er-finance-launch-stage p{margin:7px 0 0;color:var(--er-muted,#6b7280);font-size:13px}.er-finance-launch-ok{font-size:22px;color:#137333;font-weight:800}.er-finance-launch-master pre{white-space:pre-wrap;word-break:break-word;font-size:11px;max-height:260px;overflow:auto}
@media(max-width:640px){.er-finance-launch-compact{align-items:stretch;flex-direction:column}.er-finance-launch-compact .er-btn{width:100%}.er-finance-launch-stage{grid-template-columns:30px minmax(0,1fr);padding:12px}.er-finance-launch-stage__index{width:30px;height:30px}.er-finance-launch-stage__head{flex-direction:column}.er-finance-launch-stage__head .er-btn{width:100%}}

/* 2.73.77 — agent lifecycle */
.er-agent-row-deleted{opacity:.72;}
.er-agent-row-deleted td{background:color-mix(in srgb, var(--er-card,#fff) 88%, #777 12%);}

/* Effective-dated shift preview */
.er-shift-dated-change{margin:12px 0}.er-shift-dated-change>form{padding:16px}.er-shift-dated-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.er-shift-dated-table{overflow-x:auto;border:1px solid var(--er-border,#e5e7eb);border-radius:10px}.er-shift-dated-table table{width:100%;min-width:940px}.er-shift-dated-table td,.er-shift-dated-table th{white-space:nowrap;text-align:center;padding:9px 6px}.er-shift-dated-table th:first-child{text-align:left}.er-shift-dated-table .is-history{background:rgba(120,120,120,.09)}.er-shift-dated-table .is-changed{font-weight:700;color:var(--er-primary,#2459cf)}.er-shift-dated-table small{margin-left:3px}.er-shift-dated-change input[type=checkbox]{width:auto}

/* Paired cycle: shared monthly calendars, explicit first employee. */
.er-shift-pair-calendars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0}.er-shift-pair-month{padding:14px;border:1px solid var(--er-border,#e5e7eb);border-radius:14px;min-width:0}.er-shift-pair-month h3{margin:0 0 12px;text-transform:capitalize}.er-shift-pair-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.er-shift-pair-weekday{text-align:center;padding:5px;color:var(--er-muted,#64748b)}.er-shift-pair-day{min-height:80px;padding:6px;display:flex;flex-direction:column;gap:5px;background:var(--er-surface,#fff);border:1px solid var(--er-border,#e5e7eb);border-radius:7px;min-width:0}.er-shift-pair-day strong{font-size:14px}.er-shift-pair-day small{font-size:10px;color:var(--er-muted,#64748b)}.er-shift-pair-day.is-history{background:rgba(120,120,120,.07);opacity:.75}.er-shift-pair-day.is-start{outline:2px solid var(--er-primary,#2459cf);outline-offset:-2px}.er-shift-pair-person{display:block;padding:4px 6px;border-radius:6px;font-size:12px;overflow-wrap:anywhere}.er-shift-pair-person.is-person-0{background:#dbeafe;color:#1e40af}.er-shift-pair-person.is-person-1{background:#d1fae5;color:#065f46}.er-shift-pair-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.er-shift-pair-off{font-size:11px;color:var(--er-muted,#64748b)}.er-shift-pair-day .er-shift-pair-special{color:#b45309;font-weight:600}@media(max-width:1100px){.er-shift-pair-calendars{grid-template-columns:1fr}}@media(max-width:600px){.er-shift-pair-month{padding:6px}.er-shift-pair-day{padding:3px;min-height:74px}.er-shift-pair-person{padding:3px;font-size:10px}.er-shift-pair-day small{font-size:9px}}

.er-shift-pair-calendars{grid-template-columns:1fr}.er-shift-pair-month[hidden]{display:none!important}.er-shift-pair-month-nav{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.er-shift-pair-month-nav button[aria-pressed=true]{background:var(--er-primary,#2459cf);border-color:var(--er-primary,#2459cf);color:#fff}.er-shift-pair-person{overflow-wrap:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.er-shift-pair-saved{color:#137333}

.er-shift-dated-change form.er-form{display:block}.er-shift-dated-change .er-shift-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.er-shift-dated-change .er-shift-pair-people{grid-template-columns:repeat(2,minmax(0,1fr))}.er-shift-dated-change .er-shift-template-grid>.er-field{grid-column:auto}@media(max-width:760px){.er-shift-dated-change .er-shift-template-grid{grid-template-columns:1fr}}

.er-shift-dated-change input[type=date]{box-sizing:border-box;width:100%;min-width:0;height:46px;min-height:46px;font-family:inherit}


/* Reserve login must escape the theme's constrained content width. */
body .er-auth-page[data-er-auth-overlay="1"] {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body .er-auth-page[data-er-auth-overlay="1"] .er-auth-shell {
  width:min(1040px,100%)!important;
  max-width:1040px!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
body .er-auth-page .er-auth-intro__copy h1 {
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  font-size:clamp(30px,3.2vw,42px)!important;
}
body .er-auth-page .er-auth-intro__brand .er-auth-logo {
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:12px;
}
body .er-auth-page .er-auth-features li span { flex-shrink:0; }
@media(max-width:900px) {
  body .er-auth-page[data-er-auth-overlay="1"] .er-auth-shell {
    grid-template-columns:minmax(0,1fr)!important;
    width:min(520px,100%)!important;
    min-height:0!important;
  }
  body .er-auth-page .er-auth-intro { padding:20px!important; }
  body .er-auth-page .er-auth-intro__copy,
  body .er-auth-page .er-auth-features,
  body .er-auth-page .er-auth-intro__foot { display:none!important; }
  body .er-auth-page .er-auth { padding:28px 24px!important; min-height:0!important; }
}

/* TEX039 2.75.4.25 — controlled agent/payment exception dialog */
/* Appended to body after the drawer so the approval captures the click. */
.er-agent-payment-overlay{position:fixed;inset:0;z-index:2147483647;background:rgba(12,18,29,.68);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.er-agent-payment-dialog{background:#fff;color:#202a35;width:min(100%,580px);max-height:calc(100vh - 36px);overflow:auto;box-sizing:border-box;border-radius:10px;padding:24px;box-shadow:0 15px 60px rgba(0,0,0,.32);font:inherit}
.er-agent-payment-dialog h3{font-size:20px;line-height:1.3;margin:0 0 12px;color:#1d2530}
.er-agent-payment-dialog p{font-size:14px;line-height:1.5;margin:8px 0 14px}
.er-agent-payment-dialog table{border-collapse:collapse;width:100%;font-size:14px;margin:12px 0}
.er-agent-payment-dialog th,.er-agent-payment-dialog td{border:1px solid #d9dee7;padding:9px 11px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.er-agent-payment-dialog th{background:#f6f7fa;width:45%;font-weight:600}
.er-agent-payment-dialog .er-agent-payment-hint{font-size:13px;color:#5d6673}
.er-agent-payment-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:18px}
.er-agent-payment-actions .er-btn{white-space:normal}
@media(max-width:550px){.er-agent-payment-dialog{padding:16px}.er-agent-payment-dialog h3{font-size:17px}.er-agent-payment-actions{flex-direction:column-reverse}.er-agent-payment-actions .er-btn{width:100%}}
