/* Sprzedaż — kolejka w jednej linii + płatna konsultacja (21.09.2026) */
html:root body .sales-queue-panel>.sd-kolejka{order:1;display:grid;grid-template-columns:repeat(4,max-content);justify-content:space-between;gap:1px;padding:6px 5px 4px;min-width:0}
html:root body .sd-kolejka>#queueTabs,html:root body .sd-kolejka>.sales-queue-sources{display:contents!important}
html:root body .sd-kolejka :is(#queueTabs .queue-tab,#ownLeadQueueTab){--crm-type-body:var(--fs-xs,11.5px);width:auto!important;max-width:none!important;min-width:0!important;flex:none!important;display:flex!important;align-items:center;justify-content:center!important;gap:3px!important;height:30px!important;min-height:30px!important;padding:0 4px!important;margin:0!important;font-size:var(--fs-xs,11.5px)!important;overflow:hidden;letter-spacing:0!important;white-space:nowrap;border-radius:var(--nl-radius-xs,7px)}
html:root body .sd-kolejka :is(#queueTabs .queue-tab,#ownLeadQueueTab) span{--crm-type-body:var(--fs-xs,11.5px);display:inline!important;margin:0!important;font-size:var(--fs-xs,11.5px)!important;opacity:.75}
html:root body .sd-kolejka #queueTabs [data-queue="today"]{order:1}
html:root body .sd-kolejka #queueTabs [data-queue="missed"]{order:2}
html:root body .sd-kolejka #ownLeadQueueTab{order:3}
html:root body .sd-kolejka #queueTabs [data-queue="cold"]{order:4}
/* 07.10.2026 (Dawid): „0 Lead” — belka z dwoma kaflami pod „Pierwszym kontaktem” (wymiary i kolory jak belka toru sprzedaży) */
#ownLeadView .pc-belka{margin:10px 0 12px;padding:12px 14px;border:1px solid var(--border,#272B33);border-radius:12px;background:var(--surface,#14161A)}
#ownLeadView .pc-wyb{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body #ownLeadView .pc-kafel{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0;min-height:0;width:auto;margin:0;box-sizing:border-box;text-align:left;padding:6px 8px 6px 12px;border:1.5px solid var(--border,#272B33)!important;border-radius:10px;background:var(--surface-2,#1A1D23)!important;color:var(--text,#E8EAEE)!important;font:inherit;box-shadow:none!important}
#ownLeadView button.pc-kafel,#ownLeadView button.pc-kafel-t{cursor:pointer}
html body #ownLeadView .pc-kafel-t{flex:1 1 180px;min-width:0;min-height:30px;height:auto;display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;text-align:left;background:none!important;border:0!important;border-radius:0;padding:0;margin:0;color:inherit!important;font:inherit;box-shadow:none!important;outline-offset:3px}
#ownLeadView button.pc-kafel-t:disabled{cursor:not-allowed}
#ownLeadView .pc-kafel-t strong{font-size:var(--fs-lg,14px);font-weight:var(--fw-b,700)}
#ownLeadView .pc-kafel .pc-ik{flex:0 0 18px;color:var(--muted,#8B929E)}
#ownLeadView .pc-kafel-ok .pc-ik{color:var(--green,#2FBF87)}
#ownLeadView .pc-kafel-czeka .pc-ik{color:var(--orange,#E5A83D)}
#ownLeadView .pc-kafel-t small{font-size:var(--fs-sm,12.5px);font-weight:var(--fw-n,400);color:var(--muted,#8B929E)}
#ownLeadView .pc-kafel>.pc-kopiuj{flex:0 0 30px;width:30px;height:30px;min-height:30px;padding:0;display:inline-grid;place-items:center;border-radius:8px}
#ownLeadView .pc-kafel>.pc-test{flex:0 0 auto;min-height:28px;padding:0 10px}
html body #ownLeadView .pc-kafel-ok{border-color:color-mix(in srgb,var(--green,#2FBF87) 55%,transparent)!important;background:color-mix(in srgb,var(--green,#2FBF87) 10%,var(--surface-2,#1A1D23))!important}
#ownLeadView .pc-kafel-ok strong{color:var(--green,#2FBF87)}
html body #ownLeadView .pc-kafel-czeka{border-color:color-mix(in srgb,var(--orange,#E5A83D) 60%,transparent)!important;background:color-mix(in srgb,var(--orange,#E5A83D) 8%,var(--surface-2,#1A1D23))!important}
#ownLeadView .pc-kafel-czeka .pc-kafel-t small{color:var(--orange,#E5A83D)}
#ownLeadView .pc-kafel-t small.pc-brak{color:var(--orange,#E5A83D)}
@media(max-width:700px){#ownLeadView .pc-wyb{grid-template-columns:1fr}}
#ownLeadView .pc-test,#ownLeadView .pc-brak{font-size:var(--fs-xs,11.5px);color:var(--muted)}
#ownLeadView .pc-brak{color:var(--orange,#E5A83D)}
#ownLeadView .pc-instr{margin:12px 0;padding:14px 16px;border-radius:10px;border:2px solid var(--green,#2FBF87);background:color-mix(in srgb,var(--green,#2FBF87) 8%,transparent)}
#ownLeadView .pc-instr h3{margin:0 0 4px}
#ownLeadView .pc-instr ol{margin:8px 0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:var(--fs-lg,14px);line-height:1.5}
#ownLeadView .pc-instr .pc-sub{margin:0;font-size:var(--fs-sm,12.5px);color:var(--muted)}
html:root body .sales-queue-panel>.sd-kolejka #queueTabs button.queue-tab[data-queue="callback"],html:root body .sales-queue-panel>.sd-kolejka .sales-queue-sources button#batchMode{display:none!important}
html:root body .sales-queue-panel>.sd-kolejka #ownLeadQueueTab:not(.active){border-color:transparent!important;background:transparent!important;font-weight:inherit}
#ownLeadView .pc-z-x,#ownLeadView .pc-instr{position:relative}
#ownLeadView .pc-z-x>h3,#ownLeadView .pc-instr>h3{padding-right:34px}
#ownLeadView .pc-x{position:absolute;top:8px;right:8px;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;--crm-type-body:var(--fs-2xl,22px);color:var(--text);opacity:.7;font-size:var(--fs-2xl,22px)!important;line-height:1;cursor:pointer;padding:0}
#ownLeadView .pc-x:hover{background:color-mix(in srgb,var(--text) 10%,transparent);color:var(--text)}

/* 26.09 (Dawid): większy „Zadzwoń” na dole leada (Wiadomości są w górnym menu) */
#ownLeadView .own-callbar #ownDial:not(.own-hangup){min-height:46px!important;padding:0 26px!important;font-size:var(--fs-lg,14px)!important;font-weight:var(--fw-b,700)!important;min-width:200px}
html body .mc-call-dock [data-mc="quick-start"]{min-height:46px!important;padding:0 26px!important;font-size:var(--fs-lg,14px)!important;font-weight:var(--fw-b,700)!important;min-width:180px}
/* 26.09 (Dawid): ZĘBATKA W ROGU RAMKI — jeden standard (biuro, handlowiec, Opieka): ramka wiersza na całą szerokość listy,
   zębatka w prawym górnym rogu ramki na wysokości imienia i nazwiska; pod nią normalnie tekst (bez osobnej kolumny od góry do dołu). */
html body #newFirmWorkspace :is(.fr-crow,.fr-qrow){display:block!important;position:relative!important}
html body #newFirmWorkspace :is(.fr-crow,.fr-qrow)>:is(.nf-client-row,.queue-item){width:100%!important;max-width:none!important}
html body #newFirmWorkspace .fr-qrow>.crm-task-gear{position:absolute!important;top:7px!important;right:7px!important;z-index:2;margin:0!important}
/* 01.11 (Dawid: „słuchawka nachodzi na ustawienia klienta”): w wierszu klienta zębatka w linii 2 po prawej — ta sama reguła, rozdzielona */
html body #newFirmWorkspace .fr-crow>.crm-task-gear{position:absolute!important;top:auto!important;bottom:7px!important;right:7px!important;z-index:2;margin:0!important}
html body #newFirmWorkspace .fr-qrow>.queue-item .queue-name{padding-right:24px}/* 01.11: imię w wierszu klienta bez rezerwy na zębatkę (zębatka w linii 2) */
html body .queue-item.szk-z-gear{position:relative!important}
html body .queue-item.szk-z-gear>.szk-gear{position:absolute!important;top:6px!important;right:6px!important;grid-column:auto!important;grid-row:auto!important;margin:0!important;z-index:2}
html body .queue-item.szk-z-gear .queue-name{padding-right:24px}
html body #myClients tbody tr:has(.szk-gear){position:relative}
html body #myClients tbody td:has(>.szk-gear){padding-right:30px!important}
html body #myClients tbody td>.szk-gear{position:absolute!important;top:6px!important;right:6px!important;margin:0!important}
html body #aftercareWorkspace .oc-ql .queue-item{position:relative!important}
html body #aftercareWorkspace .oc-ql .queue-item .oc-akcje>.crm-task-gear{position:absolute!important;top:6px!important;right:6px!important;margin:0!important;z-index:2}
html body #aftercareWorkspace .oc-ql .queue-item .oc-akcje{align-self:end!important}
html body #aftercareWorkspace .oc-ql .queue-item:has(.crm-task-gear) .queue-name{padding-right:24px}
html body #aftercareWorkspace .mc-table tbody tr{position:relative}
html body #aftercareWorkspace :is(td.oc-td-gear,th.oc-th-gear){width:0!important;padding:0!important;border:0!important}
html body #aftercareWorkspace td.oc-td-gear>.crm-task-gear{position:absolute!important;top:6px!important;right:6px!important;margin:0!important}
html body #aftercareWorkspace .mc-table tbody tr:has(.oc-td-gear .crm-task-gear) td.mc-compact-next{padding-right:30px!important}

/* 07.10.2026 10:30 (Dawid — REGUŁA): „Poprowadź klienta” wszędzie w jednym wyglądzie (jak w rozmowie sprzedażowej): cienka ramka, fioletowy pasek, bez kolorowego tła */
#ownLeadView .pc-instr{padding:10px 14px;border:1px solid var(--border,#272B33);border-left:3px solid #A78BFA;background:none}
#ownLeadView .pc-instr h3{font-size:var(--fs-lg,14px);font-weight:var(--fw-b,700)}
#ownLeadView .pc-instr ol{gap:3px;font-size:var(--fs-md,13.5px);line-height:1.45;margin:4px 0}
#ownLeadView .pc-instr{border-left-color:#2FBF87}
/* 08.10 (audyt r4): „Wyślij link płatnej konsultacji” w jednej linii jak „Wyślij wizytówkę” — kafel wizytówki tak szeroki jak treść, reszta dla linku */
html body #ownLeadView .pc-belka .pc-wyb{grid-template-columns:auto minmax(0,1fr)!important}
html body #ownLeadView .pc-kafel:not(.pc-kafel-ok):not(.pc-kafel-czeka) .pc-kafel-t{flex-wrap:nowrap}
html body #ownLeadView .pc-kafel:not(.pc-kafel-ok):not(.pc-kafel-czeka) .pc-kafel-t :is(strong,small){white-space:nowrap}
html body #ownLeadView .pc-kafel:not(.pc-kafel-ok):not(.pc-kafel-czeka) .pc-kafel-t strong{overflow:hidden;text-overflow:ellipsis;min-width:0}
html body #ownLeadView .pc-kafel:not(.pc-kafel-ok):not(.pc-kafel-czeka){flex-wrap:nowrap}
html body #ownLeadView .pc-kafel:not(.pc-kafel-ok):not(.pc-kafel-czeka) .pc-kafel-t{flex:1 1 auto}
/* 15.10.2026 (Dawid, makieta C): belka wysyłki stoi w prawej kolumnie nad „Umów audyt” — dwie osobne, duże belki jedna pod drugą, bez ramki sekcji */
html body #ownLeadView .own-audit-planner>.pc-belka{margin:0 0 12px;padding:0;border:0;background:none}
html body #ownLeadView .own-audit-planner>.pc-belka .pc-wyb{grid-template-columns:minmax(0,1fr)!important;gap:8px}
html body #ownLeadView .own-audit-planner>.pc-belka .pc-kafel{min-height:52px;padding:8px 10px 8px 14px}
html body #ownLeadView .own-audit-planner>.pc-belka .pc-kafel .pc-ik{width:20px;height:20px;flex-basis:20px}
