/* Kokonut interaction rhythm, adapted to the existing CRM token system. */
html[data-lab-v="2"] :is(.view,.modal-win) details>summary{box-sizing:border-box;min-height:40px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:500 13px/1.5 Inter,system-ui,sans-serif;cursor:pointer;list-style:none;transition:background .16s,border-color .16s}
html[data-lab-v="2"] :is(.view,.modal-win) details>summary::-webkit-details-marker{display:none}
html[data-lab-v="2"] :is(.view,.modal-win) details>summary:hover{background:var(--hover)}
html[data-lab-v="2"] :is(.view,.modal-win) details>summary:focus-visible{outline:2px solid var(--gold-fill);outline-offset:3px}
html[data-lab-v="2"] :is(.view,.modal-win) details[open]>summary{border-color:var(--line);background:var(--panel)}
html[data-lab-v="2"] :is(.view,.modal-win) details>summary:not(:has(svg))::after{content:'';flex:none;width:9px;height:9px;border-right:1.75px solid currentColor;border-bottom:1.75px solid currentColor;transform:rotate(-45deg);margin:0 6px;transition:transform .16s;color:var(--muted)}
html[data-lab-v="2"] :is(.view,.modal-win) details[open]>summary:not(:has(svg))::after{transform:rotate(45deg)}
html[data-lab-v="2"] :is(.tk-ft-expand,.dz6-x,.dz6-rs-tog,.rd-ad-edit,.clp-icon,.dp-nav){width:38px;min-width:38px;height:38px;min-height:38px;border-radius:9px;display:inline-grid;place-items:center;cursor:pointer;transition:background .16s,color .16s}
html[data-lab-v="2"] :is(.tk-ft-expand,.dz6-x,.dz6-rs-tog,.rd-ad-edit,.clp-icon,.dp-nav):hover{background:var(--hover);color:var(--ink)}
html[data-lab-v="2"] .tk-ft-expand svg{width:18px;height:18px}
html[data-lab-v="2"] .rd-dd-o{min-height:40px;padding:10px 12px;font-size:13px;line-height:1.5;border-radius:8px}
html[data-lab-v="2"] .ch-toolbar :is(button,.ch-chip),html[data-lab-v="2"] :is(.ch-chip,.ch-kf button){min-height:36px;line-height:1.4}
html[data-lab-v="2"] .clp-icon.sm{opacity:1;background:var(--panel2);border:1px solid var(--line)}
@media(max-width:700px){html[data-lab-v="2"] :is(.tk-ft-expand,.dz6-x,.dz6-rs-tog,.rd-ad-edit,.clp-icon,.dp-nav){width:44px;min-width:44px;height:44px;min-height:44px}html[data-lab-v="2"] :is(.ch-toolbar button,.ch-chip,.ch-kf button,.rd-dd-o){min-height:44px}}
@media(prefers-reduced-motion:reduce){html[data-lab-v="2"] :is(.view,.modal-win) details>summary,html[data-lab-v="2"] :is(.view,.modal-win) details>summary::after,html[data-lab-v="2"] :is(.tk-ft-expand,.dz6-x,.dz6-rs-tog,.rd-ad-edit,.clp-icon,.dp-nav){transition:none}}

html[data-lab-v="2"] select:not([multiple]):not([size]):not(.ui-native){background-size:14px 14px!important;background-position:right 12px center!important;padding-right:36px!important}
/* Match the existing v2 normalizer so it cannot shrink close controls to 36 px. */
html[data-lab-v="2"]:not(#v):not(#w) :is(.ui-x,.modal-bar .btn.modal-x,.btn.ghost.modal-x){width:40px;min-width:40px;height:40px;min-height:40px;border-radius:10px!important}
@media(max-width:900px){html[data-lab-v="2"]:not(#v):not(#w) :is(.ui-x,.modal-bar .btn.modal-x,.btn.ghost.modal-x){width:44px;min-width:44px;height:44px;min-height:44px}}

/* Shared control rhythm after the full CRM audit. Keep the existing tokens and layout. */
html[data-lab-v="2"] :is(.view,.modal-win) :is(button,input,select,textarea):focus-visible{outline:2px solid var(--gold-fill);outline-offset:3px}
html[data-lab-v="2"] :is(#pfPipeBtn,.pf-view-btn,.dz3o-chip,.dz-fchip,.dz-sel,.dz-btn.dz-sm){min-height:36px}
html[data-lab-v="2"] .view :is(.dz-h h1,.dz-head h1){font-size:28px;line-height:1.2}
html[data-lab-v="2"] .dza-chip{box-sizing:border-box;max-width:100%;height:auto;min-height:24px;white-space:normal;overflow-wrap:anywhere;padding:4px 9px;line-height:1.4}
html[data-lab-v="2"] .dza-chips{min-width:0;max-width:100%}
html[data-lab-v="2"] #clientbase .dz-tw{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
html[data-lab-v="2"] #clientbase :is(.dz-content,.dz-body){min-width:0}
#tktDealButton{flex-shrink:0;white-space:nowrap;gap:6px}
.tkt-calendar-filters{display:none}
@media(max-width:900px){
 html[data-lab-v="2"] #clientbase .dz-tw{overflow-x:auto;overscroll-behavior-x:contain}
}
@media(max-width:700px){
 html[data-lab-v="2"] :is(#pfPipeBtn,.pf-view-btn,.dz3o-chip,.dz-fchip,.dz-sel,.dz-btn.dz-sm){min-height:44px}
 #listingModal .lc-actions{min-width:0;gap:6px;flex-wrap:wrap}
 #tktDealButton{max-width:100%;min-height:40px!important;font-size:12px!important;padding:8px 10px!important}
 #tktDealButton svg{width:16px;height:16px;flex:none}
 #tasks.tk-calendar-mode #dzTkDay{display:none}
 #tasks.tk-calendar-mode .tkt-toolbar{padding:10px 12px}
 #tasks.tk-calendar-mode .tkt-calendar-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;background:var(--panel);color:var(--ink);border:0;font:500 13px Inter,system-ui;cursor:pointer}
 #tasks.tk-calendar-mode .tkt-toolbar:not(.filters-open)>:not(.tkt-calendar-filters){display:none!important}
 #tasks.tk-calendar-mode .tkt-toolbar.filters-open .tkt-calendar-filters{margin-bottom:12px;border-bottom:1px solid var(--line)}
}
.uk-pal-kinds{display:flex;gap:5px;padding:10px 16px;border-bottom:1px solid var(--line);overflow:auto}
.uk-pal-kinds button{min-height:36px;border:0;border-radius:8px;padding:8px 12px;font:500 13px Inter,system-ui;background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap}
.uk-pal-kinds button[aria-pressed=true]{background:var(--soft-gold);color:var(--ink-gold)}
.uk-pal-kinds button:focus-visible{outline:2px solid var(--gold-fill);outline-offset:2px}
@media(max-width:700px){.uk-pal-kinds button{min-height:44px}}
html[data-lab-v="2"] :is(#clientbase,#clientsList){min-width:0;max-width:100%;box-sizing:border-box}
@media(min-width:651px) and (max-width:900px){html[data-lab-v="2"] #clientbase .dz-tw{contain:inline-size}}
/* Match the specificity of the existing ticket layout, including its legacy guards. */
@media(max-width:700px){
 html #tasks.dz-tk.tk-calendar-mode:not(#old):not(#legacy) .dz-day{display:none}
 html[data-lab-v="2"]:not(#v):not(#w) #listingModal .lc-actions #tktDealButton{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px;padding:0!important;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}
 html #listingModal .lc-actions #tktDealButton>span{display:none}
}

/* Help remains readable at viewport edges and never affects document width. */
html[data-lab]:not([data-dz-off]) .dz5-info::after{display:none}
html[data-lab]:not([data-dz-off]) .dz5-info{width:28px;height:28px;display:inline-grid;place-items:center;font-size:12px;cursor:pointer}
.crm-info-tip{position:fixed;z-index:18000;box-sizing:border-box;width:max-content;max-width:min(340px,calc(100vw - 24px));padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);box-shadow:var(--sh-pop);font:400 13px/1.6 Inter,system-ui,sans-serif;overflow-wrap:anywhere;pointer-events:none}
.crm-info-tip[hidden]{display:none}
@media(max-width:700px){html[data-lab]:not([data-dz-off]) .dz5-info{width:40px;height:40px}}
/* A compact phone layout keeps content and primary actions ahead of secondary reports. */
@media(max-width:700px){
 html[data-lab-v="2"]:not(#v):not(#w) :is(#calls,#rhythm) .dzc-kpi{min-height:0;padding:12px;gap:5px}
 html[data-lab-v="2"]:not(#v):not(#w) :is(#calls,#rhythm) .dzc-kpi>b{font-size:23px;line-height:1.2}
 html[data-lab-v="2"]:not(#v):not(#w) :is(#calls,#rhythm) .dzc-kpi .l{font-size:12px;line-height:1.4}
 html[data-lab-v="2"]:not(#v):not(#w) #calls .dzc-kpis{gap:8px;margin-bottom:12px}
 html[data-lab-v="2"]:not(#v):not(#w) #calls .crm-mobile-report .dzc-kpi:last-child{grid-column:1/-1}
 .crm-mobile-report{margin:0 0 14px}.crm-mobile-report>summary{margin-bottom:10px}
 .cal-mobile-more{flex-basis:100%;min-width:0}.cal-mobile-more>div{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}
 html[data-lab-v="2"]:not(#v):not(#w) .cal-mobile-more>summary{min-height:40px;padding:8px 12px;font-size:12px}
 html[data-lab-v="2"]:not(#v):not(#w) #partners .dz-empty{padding:18px 12px;min-height:0;gap:6px}
 html[data-lab-v="2"]:not(#v):not(#w) .view>.head{margin-bottom:14px;gap:10px}
 html[data-lab-v="2"]:not(#v):not(#w) #users .dza-t,html[data-lab-v="2"] #users .dza-t tbody{display:block;width:100%;min-width:0}
 html[data-lab-v="2"] #users .dza-t thead{display:none}
 html[data-lab-v="2"] #users .dza-t tr.dza-click{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px;border-bottom:1px solid var(--line)}
 html[data-lab-v="2"] #users .dza-t tr.dza-click:last-child{border-bottom:0}
 html[data-lab-v="2"] #users .dza-t td{display:block;padding:0;border:0;min-width:0}
 html[data-lab-v="2"] #users .dza-t td:first-child{grid-column:1;grid-row:1}
 html[data-lab-v="2"] #users .dza-t td:nth-child(2){grid-column:1/-1;grid-row:2}
 html[data-lab-v="2"] #users .dza-t td:nth-child(2)::before{content:'Роли';display:block;margin-bottom:5px;font-size:11px;color:var(--muted)}
 html[data-lab-v="2"] #users .dza-t td.dza-act-c{grid-column:2;grid-row:1;align-self:start}
 html[data-lab-v="2"] #users .dza-t :is(.dza-hide-m,.dza-hide-s){display:none!important}
 html[data-lab-v="2"] #users .dza-who-t{min-width:0}.dza-who-t b{overflow-wrap:normal;word-break:normal}
 html[data-lab-v="2"] #users .dza-act{opacity:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px;max-width:86px}
 html[data-lab-v="2"] #users .dza-ib{width:40px;min-width:40px;height:40px}
}
/* Standard deals: client first, grouped fields and persistent actions. */
#cdModal .cd-in{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:16px}
.cd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px;border-bottom:1px solid var(--line)}
.cd-head h2{margin:0;font-size:24px;line-height:1.25}.cd-head p{margin:6px 0 0;color:var(--muted);font-size:14px}.cd-head button{min-width:44px;min-height:44px}
.cd-body{padding:0 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.cd-section{padding:22px 0;border-bottom:1px solid var(--line)}.cd-section[hidden]{display:none}.cd-section h3{font-size:16px;margin:0 0 16px}.cd-section h3 small{font-size:13px;color:var(--muted);font-weight:400}.cd-section .fm-grid{gap:14px}.cd-section .fm-fld{margin:0 0 14px}.cd-section input,.cd-section select{width:100%;min-height:44px;box-sizing:border-box}
.cd-clients{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:176px;overflow-y:auto;margin-bottom:16px}.cd-client{display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--ink);cursor:pointer;min-width:0}.cd-client:hover{background:var(--hover)}.cd-client>span:last-child{min-width:0}.cd-client b,.cd-client small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cd-client small{color:var(--muted);margin-top:3px}
.cd-foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line);background:var(--panel)}.cd-foot .btn{min-height:44px}
@media(max-width:600px){#cdModal .cd-in{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.cd-head{padding:16px}.cd-head h2{font-size:21px}.cd-body{padding:0 16px}.cd-section{padding:16px 0}.cd-section .fm-grid{grid-template-columns:1fr;gap:0}.cd-clients{grid-template-columns:1fr;max-height:160px}.cd-foot{padding:12px 16px}.cd-foot .btn:last-child{flex:1}}
#cdModal{z-index:16000}
#cdModal .cd-head,#cdModal .cd-foot{flex:0 0 auto}
#cdModal .cd-body{flex:1 1 auto}
@media(max-width:600px){#cdModal .cd-foot{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-width:600px){#partners #prScope{min-width:0}#partners .dz2p-call .w .dz-sub{display:block;max-width:100%}#partners .dz2p-call .w b{overflow-wrap:anywhere}}
#listingModal.cd-service-card :is(.lc-note,#lfSaleBox,#lfSaleToggle,#lfDraftBtn,#lfCsiAvitoLink,#lfParsedAtRow,#lfParseHead,#lfParseBox){display:none!important}
.ow-placement,.ow-activity,.ow-preparation{background:var(--panel);border:1px solid var(--line);border-radius:14px;margin-bottom:16px;padding:18px;color:var(--ink)}
.ow-placement h3,.ow-activity h3{font-size:16px;margin:0 0 14px}.ow-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px}.ow-fields label{flex:1 1 150px;min-width:0}.ow-fields label span,.ow-message>span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.ow-fields input,.ow-fields select,.ow-message textarea{font:inherit;width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:10px 12px;min-height:44px}.ow-fields .btn{min-height:44px}.ow-tabs{display:flex;gap:4px;padding:4px;background:var(--panel2);border-radius:12px;width:fit-content;margin-bottom:16px}.ow-tabs button{font:inherit;border:0;background:transparent;color:var(--muted);border-radius:9px;min-height:44px;padding:0 16px;cursor:pointer}.ow-tabs button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:var(--sh-1)}.ow-message{display:block;margin-bottom:12px}.ow-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:12px}.ow-actions p{color:var(--ink-red);font-size:13px;margin:0}.ow-actions .btn{min-height:44px;flex-shrink:0}#owActivityList h4{font-size:13px;color:var(--muted);margin:22px 0 10px}.ow-empty{color:var(--muted);font-size:13px}.ow-task,.ow-note{border-top:1px solid var(--line);padding:12px 0}.ow-task label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}.ow-task input{width:20px;height:20px;flex-shrink:0}.ow-task small,.ow-note small{display:block;color:var(--muted);font-size:12px}.ow-task b{font-size:14px;font-weight:500}.ow-task.done b{text-decoration:line-through;color:var(--muted)}.ow-note p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:8px 0}.ow-preparation summary{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:44px;cursor:pointer;list-style:none;font-weight:600}.ow-preparation summary:after{content:'⌄';font-size:22px}.ow-preparation[open] summary:after{transform:rotate(180deg)}#owTaskFields[hidden]{display:none!important}
@media(max-width:600px){.ow-placement,.ow-activity,.ow-preparation{padding:14px}.ow-fields{display:grid;grid-template-columns:minmax(0,1fr)}.ow-actions{flex-direction:column;align-items:stretch}.ow-actions .btn{width:100%}.ow-tabs{width:100%;box-sizing:border-box}.ow-tabs button{flex:1;padding:0 8px}}
.ws-objtasks{align-self:start}.ow-stage-disclosure>summary{list-style:none;cursor:pointer;min-height:52px;box-sizing:border-box}.ow-stage-disclosure>summary:after{content:'⌄';font-size:22px;margin-left:auto}.ow-stage-disclosure[open]>summary:after{transform:rotate(180deg)}
#auctionobj .ws-objtasks{height:auto;min-height:0}

/* Progressive deal creation keeps hidden steps out of layout. */
#cdModal [hidden]{display:none!important}
#cdModal textarea{width:100%;box-sizing:border-box;min-height:96px;resize:vertical;font:inherit}
#cdModal #cdClientKind{height:44px;min-height:44px;font-size:13px;font-weight:400}
@media(max-width:600px){#cdModal #cdClientKind{font-size:16px}}
.cd-buyer-note{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:12px 0}

.cd-listing-photos{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}.cd-listing-photos img{width:80px;height:64px;object-fit:cover;border-radius:8px}#cdListingActions{display:flex;gap:8px;margin:12px 0}#cdListingActions[hidden]{display:none}
.ws2-listing-description{white-space:pre-wrap;line-height:1.6}.ws2-listing-photos{display:flex;gap:12px;flex-wrap:wrap}.ws2-listing-photos img{width:160px;height:120px;object-fit:cover;border-radius:10px}

@media (max-width:700px),(pointer:coarse){html[data-lab-v="2"] :is(.view,.modal-win) details>summary{min-height:44px;padding-block:11px}}
/* Разбор дизайна 05.12.2026: строка управления раздела одной высоты 40 px на компьютере
   (Объекты, Клиенты/Партнёры, Звонки). На телефоне высоты задают правила для пальца. */
@media (min-width:701px) and (pointer:fine){
html:not(#dzh1):not(#dzh2):not(#dzh3):not(#dzh4):not(#dzh5):not(#dzh6):not(#dzh7) :is(#myobjects .oc2-dd-head>.oc2-dd-b,#myobjects .cw-object-head>.oc2l-map,#myobjects .cw-object-head details>summary,#clientbase .people-type,#clientbase #cwClientFilterSummary,#clientbase .people-heading-tools details>summary,#calls .cw-call-actions>summary,#calls .dz-seg>select,#calls .dz-mp>.dz-mp-btn){height:40px;min-height:40px;max-height:40px;box-sizing:border-box;padding-top:0;padding-bottom:0;line-height:1.2}
}
/* Разбор дизайна 05.12.2026: «•••» действий сотрудника получал вид раскрывающегося блока
   (рамка и стрелка «›» рядом с точками). Это кнопка меню: без рамки и стрелки. */
html[data-lab-v="2"] :is(.view,.modal-win) details.ws2-user-actions>summary{min-height:36px;min-width:36px;width:36px;height:36px;padding:0;justify-content:center;border-color:transparent;background:transparent;letter-spacing:1px;color:var(--muted)}
html[data-lab-v="2"] :is(.view,.modal-win) details.ws2-user-actions>summary:hover,html[data-lab-v="2"] :is(.view,.modal-win) details.ws2-user-actions[open]>summary{background:var(--hover);border-color:transparent}
html[data-lab-v="2"] :is(.view,.modal-win) details.ws2-user-actions>summary::after{content:none;display:none}
@media (max-width:700px){html[data-lab-v="2"] :is(.view,.modal-win) details.ws2-user-actions>summary{min-height:44px;min-width:44px;width:44px;height:44px}
  html:not(#dzu1):not(#dzu2):not(#dzu3):not(#dzu4) #users .dza-seg{display:flex!important;flex-flow:row nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;grid-template-columns:none!important;justify-content:flex-start;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
  html:not(#dzu1):not(#dzu2):not(#dzu3):not(#dzu4) #users .dza-seg>button{flex:none!important;width:auto!important;white-space:nowrap}}
/* Разбор дизайна 05.12.2026: три плитки сумм кабинета в ряд на телефоне ломали подписи
   по слову. На узком экране по две в ряд, третья на всю ширину. */
@media (max-width:520px){
html:not(#dzk1):not(#dzk2):not(#dzk3) .dz5c-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html:not(#dzk1):not(#dzk2):not(#dzk3) .dz5c-metrics>.dz5c-mc:nth-child(3):last-child{grid-column:1 / -1}
}
/* Клиенты на телефоне: «Сортировка» уезжала на отдельную строку. Тип контакта сжимается,
   три контрола в одну строку. */
@media (max-width:520px){
html:not(#dzk1):not(#dzk2):not(#dzk3) #clientbase .people-heading-tools{flex-wrap:nowrap!important;gap:6px}
html:not(#dzk1):not(#dzk2):not(#dzk3) #clientbase .people-heading-tools>.people-type-field{flex:1 1 auto;min-width:0}
html:not(#dzk1):not(#dzk2):not(#dzk3) #clientbase .people-heading-tools>.people-type-field select{width:100%;min-width:0}
html:not(#dzk1):not(#dzk2):not(#dzk3) #clientbase .people-heading-tools>:not(.people-type-field){flex:none}
html:not(#dzk1):not(#dzk2):not(#dzk3) #clientbase .people-heading-tools summary{padding-inline:10px!important;gap:6px}
html:not(#dzk1):not(#dzk2):not(#dzk3) #clientbase .people-heading-tools>.people-type-field select{padding-left:10px!important;padding-right:28px!important;background-position:right 8px center!important}
}

/* Разбор дизайна 05.12.2026: заголовок раздела одного размера (24 px, 600), как в Звонках, Кабинете и Доступах. */
@media (min-width:701px){html:not(#dzt1):not(#dzt2):not(#dzt3):not(#dzt4) :is(#myobjects,#clientbase,#mortgage)>:not(.modal-ov) h1:first-of-type{font-size:24px!important;font-weight:600!important;letter-spacing:-.01em}}
/* Разбор дизайна 05.12.2026: подписи столбцов и плиток обычным регистром во всех разделах
   (Клиенты, Кабинет и Звонки уже так). ЗАГЛАВНЫЕ были в Статистике, Телефонии, Доступах и калькуляторе. */
html:not(#dzc1):not(#dzc2):not(#dzc3):not(#dzc4) :is(#agency,#telephony,#users,#mortgage) :is(th,.rds-kpi>.l,.dzc-kpi>.l,.rds-fh>b,.rds-fh>span){text-transform:none!important;letter-spacing:normal!important}

/* Звонки на телефоне: окно «Все менеджеры» открывалось от левого края кнопки и уходило за экран. */
@media (max-width:700px){#calls details.dz-mp>.dz-mp-pop{left:auto;right:0}}

/* Замечание владельца 05.12.2026: «Агентство и сведения» у партнёра было широким блоком на всю колонку.
   Теперь маленькая кнопка «Сведения», по нажатию под ней короткий список. */
html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary{display:inline-block;max-width:100%}
html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary>summary{display:inline-flex;width:auto;min-height:28px;height:28px;padding:0 10px;gap:6px;border-radius:999px;font-size:12px;font-weight:500;color:var(--muted);background:transparent}
html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary>summary::after{width:6px;height:6px;margin:0 2px 2px;transform:rotate(45deg)}
html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary[open]>summary::after{transform:rotate(225deg);margin-bottom:-2px}
html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary>div{margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:12px;line-height:1.5}
html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary>div p{margin:0}
@media (max-width:700px){html[data-lab-v="2"] :is(.view,.modal-win) details.people-secondary>summary{min-height:36px;height:36px}}
/* Замечание владельца: «Сведения» у партнёра к правому краю строки, без пустого поля справа. */
html[data-lab-v="2"] #clientbase td:has(>details.people-secondary){text-align:right;width:1%;white-space:nowrap;padding-right:16px}
html[data-lab-v="2"] #clientbase td:has(>details.people-secondary) details.people-secondary>div{text-align:left;white-space:normal}
html[data-lab-v="2"] #clientbase table:has(details.people-secondary) thead th:last-child{text-align:right;padding-right:16px}
