/* client-shell.css — оболочка кабинета клиента (боковое меню, шапка раздела, карточка менеджера, форма обращения).
 * 2026-09-25 SHELL. Включается классом body.cs-on (ставит client-shell.js после загрузки дашборда).
 * Страница входа (body.lg-mode) не затрагивается: всё оболочечное скрыто, пока нет .cs-on. */

.cs-side, .cs-top, .cs-head, .cs-back, .cs-sheet { display: none; }

body.cs-on { background: #F6F7FB; }
body.cs-on > header, body.cs-on > footer { display: none !important; }

/* ── боковая колонка ── */
body.cs-on .cs-side {
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 900;
  background: #15233E; color: #C9D5EA;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.cs-side::-webkit-scrollbar { width: 6px; }
.cs-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 6px; }
.cs-side-in { display: flex; flex-direction: column; min-height: 100%; padding: 18px 14px 14px; }

.cs-proj { position: relative; display: flex; align-items: center; gap: 11px; padding: 6px 6px 18px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.cs-proj-logo { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cs-proj-logo img { width: 24px; height: 24px; display: block; }
.cs-proj-logo b { font-size: 16px; font-weight: 700; color: #1F3864; }
.cs-proj-txt { flex: 1; min-width: 0; }
.cs-proj-dom { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.cs-proj-sub { font-size: 12px; color: #8FA3C4; line-height: 1.3; margin-top: 1px; }
.cs-chev { flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #8FA3C4;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cs-chev:hover, .cs-chev[aria-expanded="true"] { background: rgba(255,255,255,.08); color: #fff; }
.cs-chev .uv-icon { width: 16px; height: 16px; }
.cs-pmenu { position: absolute; left: 6px; right: 6px; top: 54px; z-index: 5; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); padding: 6px; display: none; }
.cs-pmenu.open { display: block; }
.cs-pmenu a, .cs-pmenu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; background: none;
  font: inherit; font-size: 13.5px; color: #1f2937; text-decoration: none; border-radius: 7px; cursor: pointer; text-align: left; }
.cs-pmenu a:hover, .cs-pmenu button:hover { background: #EEF2FF; color: #1F3864; }
.cs-pmenu .uv-icon { width: 16px; height: 16px; color: #64748b; }

/* пункты меню (кнопки .clt-tab из реестра client-cabinet.js) */
.cs-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 14px; }
.cs-nav .cs-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px;
  background: transparent; color: #C9D5EA; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer;
  line-height: 1.25; margin: 0; transition: background .12s, color .12s; }
.cs-nav .cs-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.cs-nav .cs-item:focus-visible { outline: 2px solid #FFD75E; outline-offset: -2px; }
.cs-nav .cs-item .uv-icon { width: 20px; height: 20px; flex: 0 0 20px; color: #8FA3C4; }
.cs-nav .cs-item:hover .uv-icon { color: #fff; }
.cs-nav .cs-item.clt-on { background: #fff; color: #15233E; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.cs-nav .cs-item.clt-on .uv-icon { color: #2d5299; }
.cs-nav .cs-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-nav-empty { padding: 10px 12px; font-size: 13px; color: #8FA3C4; }
.cs-nav.cs-wait .clt-tab { display: none; }
.cs-nav:not(.cs-wait) .cs-nav-skel { display: none; }
.cs-nav-skel { height: 40px; border-radius: 9px; background: rgba(255,255,255,.05); margin: 0 0 2px; }

/* ── карточка менеджера ── */
.cs-bottom { margin-top: auto; padding-top: 30px; }
.cs-mgr { position: relative; background: #1F3864; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 16px 16px 14px; color: #fff; }
.cs-mgr-owl { position: absolute; right: 10px; top: -30px; width: 62px; height: 62px; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.cs-mgr-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding-right: 60px; }
.cs-mgr-bname { font-size: 15px; font-weight: 700; letter-spacing: .1px; }
.cs-beta { font-size: 9.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,215,94,.18);
  color: #FFD75E; padding: 2px 7px; border-radius: 4px; line-height: 1.4; }
.cs-person { display: flex; align-items: center; gap: 12px; }
.cs-ava { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #4F6FB8, #2d5299);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.cs-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-ava.sm { width: 30px; height: 30px; flex: 0 0 30px; font-size: 11px; }
.cs-pname { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: #fff; }
.cs-prole { font-size: 12px; color: #A9BBDA; line-height: 1.35; margin-top: 2px; }
.cs-contacts { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.cs-contacts a { display: flex; align-items: center; gap: 8px; color: #DCE6F7; text-decoration: none; font-size: 13px; min-width: 0; }
.cs-contacts a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-contacts a:hover { color: #fff; text-decoration: underline; }
.cs-contacts .uv-icon { width: 15px; height: 15px; flex: 0 0 15px; color: #8FA3C4; }
.cs-vac { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #FFE7A3; background: rgba(255,215,94,.1); border-radius: 8px; padding: 7px 9px; }
.cs-orig { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #A9BBDA; }
.cs-orig b { color: #DCE6F7; font-weight: 600; }
.cs-write { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 0; padding: 10px 12px;
  border: 0; border-radius: 9px; background: #FFD75E; color: #15233E; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .12s; }
.cs-write:hover { background: #FFCD38; }
.cs-write:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-write .uv-icon { width: 17px; height: 17px; }
.cs-hr { height: 1px; background: rgba(255,255,255,.1); margin: 14px 0 11px; }
.cs-headlink { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px;
  color: #A9C3F0; cursor: pointer; text-decoration: none; }
.cs-headlink:hover { color: #fff; text-decoration: underline; }
.cs-headlink .uv-icon { width: 14px; height: 14px; }
.cs-reply { font-size: 11.5px; color: #8FA3C4; margin-top: 8px; line-height: 1.4; }
.cs-mgr-skel .cs-sk { background: rgba(255,255,255,.08); border-radius: 6px; height: 12px; margin: 8px 0; }
.cs-foot { padding: 14px 6px 2px; font-size: 11px; line-height: 1.55; color: #6F84A8; }
.cs-foot a { color: #8FA3C4; text-decoration: none; }
.cs-foot a:hover { color: #fff; }

/* ── основная область ── */
body.cs-on .cs-main { margin-left: 272px; min-height: 100vh; }
body.cs-on .cs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 32px 18px; }
.cs-crumbs { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cs-crumbs a { color: #64748b; text-decoration: none; }
.cs-crumbs a:hover { color: #1F3864; text-decoration: underline; }
.cs-crumbs .sep { color: #b6c0d0; }
.cs-crumbs b { color: #334155; font-weight: 500; }
.cs-h1 { margin: 6px 0 0; font-size: 24px; line-height: 1.25; font-weight: 700; color: #15233E; letter-spacing: -.1px; }
.cs-asof { margin-top: 4px; font-size: 12.5px; color: #7c8799; }
.cs-help { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 8px 14px; border: 1px solid #d5ddec;
  border-radius: 9px; background: #fff; color: #1F3864; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cs-help:hover { background: #EEF2FF; border-color: #c3cfe6; }
.cs-help .uv-icon { width: 16px; height: 16px; }
body.cs-on .cs-main > .container { max-width: none; margin: 0; padding: 0 32px 32px; }
body.cs-on #clc-preview-banner { position: sticky; top: 0; }
@media (min-width: 1800px) { body.cs-on .cs-main > .container { max-width: 1480px; } }

/* ── мобильная версия ── */
@media (max-width: 900px) {
  body.cs-on .cs-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; width: 300px; max-width: 86vw; z-index: 1001; }
  body.cs-on.cs-drawer .cs-side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  body.cs-on.cs-drawer .cs-back { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(8,15,30,.5); }
  body.cs-on .cs-main { margin-left: 0; }
  body.cs-on .cs-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 800; height: 56px; padding: 0 12px;
    background: #15233E; color: #fff; }
  .cs-burger, .cs-topava { border: 0; background: none; padding: 0; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; }
  .cs-burger { width: 38px; height: 38px; border-radius: 8px; }
  .cs-burger:hover { background: rgba(255,255,255,.08); }
  .cs-burger .uv-icon { width: 22px; height: 22px; }
  .cs-top-dom { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
  .cs-top-dom img { width: 20px; height: 20px; border-radius: 5px; background: #fff; }
  .cs-top-dom span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cs-topava .cs-ava { width: 34px; height: 34px; flex-basis: 34px; font-size: 12px; }
  body.cs-on .cs-head { padding: 16px 14px 12px; flex-direction: column; gap: 10px; }
  .cs-h1 { font-size: 20px; }
  .cs-help { margin-top: 0; }
  body.cs-on .cs-main > .container { padding: 0 12px 24px; }
  body.cs-on #clc-preview-banner { top: 56px; z-index: 799 !important; }
  body.cs-on.cs-sheet-open .cs-sheet { display: flex; position: fixed; inset: 0; z-index: 1002; align-items: flex-end; justify-content: center;
    background: rgba(8,15,30,.5); }
  .cs-sheet-in { width: 100%; max-width: 480px; background: #15233E; border-radius: 16px 16px 0 0; padding: 40px 14px 18px; position: relative; }
  .cs-sheet-x { position: absolute; left: 10px; top: 8px; border: 0; background: none; color: #8FA3C4; cursor: pointer; padding: 6px; }
  .cs-sheet-x .uv-icon { width: 20px; height: 20px; }
}

/* ── модалки (обращение, справка) ── */
.cs-modal-back { position: fixed; inset: 0; z-index: 10060; background: rgba(8,15,30,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cs-modal { width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); color: #1f2937; font-size: 14px; }
.cs-modal.wide { max-width: 720px; }
.cs-mhead { position: relative; background: #15233E; color: #fff; padding: 16px 52px 16px 18px; border-radius: 14px 14px 0 0; }
.cs-mhead h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: #fff; }
.cs-mhead .cs-person { gap: 10px; }
.cs-mhead .cs-ava { width: 40px; height: 40px; flex-basis: 40px; font-size: 14px; }
.cs-mx { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: #A9BBDA;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cs-mx:hover { background: rgba(255,255,255,.1); color: #fff; }
.cs-mx .uv-icon { width: 20px; height: 20px; }
.cs-mbody { padding: 16px 18px 18px; }
.cs-f { margin: 0 0 14px; }
.cs-f label { display: block; font-size: 12.5px; font-weight: 600; color: #475569; margin: 0 0 6px; }
.cs-f select, .cs-f input, .cs-f textarea { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1.5px solid #d5ddec; border-radius: 8px;
  font: inherit; font-size: 14px; color: #1f2937; background: #fff; outline: none; transition: border-color .15s; }
.cs-f textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.cs-f select:focus, .cs-f input:focus, .cs-f textarea:focus { border-color: #1F3864; }
.cs-f .cs-cnt { font-size: 11.5px; color: #94a3b8; text-align: right; margin-top: 3px; }
.cs-f .cs-cnt.over { color: #b91c1c; }
.cs-merr { background: #fdecec; border: 1px solid #f3c0c0; color: #9a2727; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin: 0 0 12px; }
.cs-mok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 12px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.cs-mact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-send { padding: 10px 22px; border: 0; border-radius: 9px; background: #1F3864; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cs-send:hover { background: #2d5299; }
.cs-send:disabled { opacity: .55; cursor: default; }
.cs-mnote { font-size: 12px; color: #7c8799; line-height: 1.45; }
.cs-hist { margin-top: 18px; border-top: 1px solid #EEF1F7; padding-top: 12px; }
.cs-hist h3 { margin: 0 0 8px; font-size: 13.5px; color: #1F3864; }
.cs-hist-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #f3f5f9; font-size: 13px; }
.cs-hist-row:last-child { border-bottom: 0; }
.cs-hist-d { flex: 0 0 92px; color: #7c8799; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.cs-hist-t { flex: 1; min-width: 0; color: #1f2937; }
.cs-hist-t small { display: block; color: #7c8799; font-size: 12px; }
.cs-hist-s { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.cs-help-sec { margin: 0 0 16px; }
.cs-help-sec h3 { margin: 0 0 6px; font-size: 14.5px; color: #1F3864; }
.cs-help-sec p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: #334155; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.cs-chips span { font-size: 12px; background: #EEF2FF; color: #1F3864; border-radius: 999px; padding: 2px 9px; }
.cs-chips.nb span { background: #F1F5F9; color: #334155; }
@media (max-width: 600px) {
  .cs-modal-back { align-items: flex-end; padding: 0; }
  .cs-modal { max-height: 92vh; border-radius: 14px 14px 0 0; }
}
/* виджет «Нашли ошибку?» не перекрывает меню, карточку и формы оболочки */
body.cs-drawer #fbw-fab-wrap, body.cs-sheet-open #fbw-fab-wrap, body.cs-modal-open #fbw-fab-wrap { display: none !important; }
