/*
 * Własne nadpisania ponad Velzon. Trzymaj krótko — jeśli coś rośnie, to znak, że walczymy z szablonem.
 */

/* Tekstowe logo w menu bocznym (do czasu własnego logo produktu). */
.navbar-brand-box .logo { line-height: 70px; }

/* Velzon 4.4.4 (bootstrap.min.css) ustawia direction: rtl dla tel/email/url/number w wersji LTR —
   „600 100 200” wyświetla się jako „200 100 600”. Przywracamy LTR. */
[type=email], [type=number], [type=tel], [type=url] { direction: ltr; }

/* Flex-dziecko z text-truncate (karty list na telefonie). */
.min-w-0 { min-width: 0; }

/* S8d: kalendarz CRM — wydarzenia z Google studia (blokady) i rezerwacje z propozycją terminu z Google */
.fc .booking-block { background: var(--vz-light, #f3f6f9); border-color: var(--vz-border-color, #e9ebec); color: var(--vz-secondary-color, #878a99); }
.fc .booking-block .fc-event-main { color: inherit; }
.fc .booking-proposal { outline: 2px dashed var(--vz-warning, #f7b84b); outline-offset: -2px; }

/* S9b: logo studia w menu bocznym — mieści się w 70 px wysokości paska; na ciemnym / kolorowym tle jasna plakietka. */
.brand-logo { max-height: 44px; max-width: 190px; object-fit: contain; vertical-align: middle; }
.brand-logo-plate { background: #fff; border-radius: 6px; padding: 3px 6px; }
.brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--vz-primary); font-weight: 600; font-size: 13px; }

/* Zachęta do instalacji PWA (layout/_install_banner.html.twig) — kolory Detailist niezależnie od brandingu studia. */
.pwa-install {
    display: flex; align-items: center; gap: .875rem;
    background: #0b1220; color: #c9d1dc; border-radius: 1rem; padding: .875rem 1rem; margin-bottom: 1.5rem;
    font-size: .9375rem; line-height: 1.4;
}
.pwa-install[hidden] { display: none; }
.pwa-install-icon { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: .625rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.pwa-install-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.pwa-install-text strong { color: #fff; font-weight: 600; }
.pwa-install-share { width: 1.125em; height: 1.125em; vertical-align: -.2em; color: #22b8e6; }
.pwa-install-button {
    flex: 0 0 auto; border: 0; border-radius: .75rem; padding: .625rem 1rem;
    background: #22b8e6; color: #0b1220; font-weight: 600; white-space: nowrap;
}
.pwa-install-button:hover { background: #1ca6d1; }
.pwa-install-close {
    flex: 0 0 auto; align-self: flex-start; border: 0; background: none; color: #9aa4b2;
    width: 2rem; height: 2rem; margin: -.375rem -.5rem 0 0; border-radius: .5rem; font-size: 1.25rem; line-height: 1;
}
.pwa-install-close:hover { color: #fff; }
.pwa-install-button:focus-visible, .pwa-install-close:focus-visible { outline: 2px solid #22b8e6; outline-offset: 2px; }
@media (max-width: 575.98px) {
    .pwa-install { flex-wrap: wrap; }
    .pwa-install-text { flex-basis: calc(100% - 6rem); }
    .pwa-install-button { order: 3; width: 100%; padding: .5rem 1rem; }
}
/* Logowanie: pod formularzem, nad „Nie masz konta?” — formularz zostaje na górze arkusza. */
.auth-form .pwa-install { order: 1; margin: 2rem 0 0; }
.auth-form .auth-switch { order: 2; }
@media print { .pwa-install { display: none !important; } }

/* Leady — tablica Kanban: kolumny obok siebie, na telefonie przewijane w poziomie (po jednej na ekran). */
.lead-board { display: grid; grid-template-columns: repeat(4, minmax(15rem, 1fr)); gap: 1rem; align-items: start; overflow-x: auto; padding-bottom: .5rem; }
.lead-board-column { background: var(--vz-light, #f3f6f9); border-radius: .5rem; padding: .75rem; min-height: 12rem; border: 2px dashed transparent; transition: border-color .15s, background-color .15s; }
.lead-board-column.is-over { border-color: var(--vz-primary, #405189); background: rgba(64, 81, 137, .06); }
.lead-board-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.lead-board-dot { width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0; }
.lead-board-cards { display: flex; flex-direction: column; gap: .5rem; min-height: 3rem; }
.lead-card { position: relative; background: var(--vz-secondary-bg, #fff); border-radius: .375rem; padding: .625rem .75rem; box-shadow: 0 1px 2px rgba(56, 65, 74, .15); cursor: grab; }
.lead-card:hover { box-shadow: 0 2px 6px rgba(56, 65, 74, .2); }
.lead-card[draggable="false"], .lead-card:not([draggable]) { cursor: default; }
.lead-card.is-dragging { opacity: .5; }
.lead-card .lead-card-link { color: inherit; }
.lead-card-menu { position: relative; z-index: 2; margin: -.25rem -.375rem 0 0; }
.lead-board-empty { padding: .75rem; text-align: center; border: 1px dashed var(--vz-border-color, #e9ebec); border-radius: .375rem; }
.lead-board-more { display: block; margin-top: .75rem; text-align: center; }
/* Panel operatora (ADR-044): leady platformy — 6 etapów lejka, karty tylko do odczytu; lejek jako paski. */
.lead-board.lead-board-stages { grid-template-columns: repeat(6, minmax(11rem, 1fr)); }
.funnel-bar { height: .5rem; border-radius: .25rem; background: var(--vz-primary, #405189); min-width: 2px; }
.funnel-track { background: var(--vz-light, #f3f6f9); border-radius: .25rem; }
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list > li { position: relative; padding: 0 0 1rem 2.25rem; }
.timeline-list > li::before { content: ""; position: absolute; left: .8rem; top: 1.75rem; bottom: 0; width: 1px; background: var(--vz-border-color, #e9ebec); }
.timeline-list > li:last-child::before { display: none; }
.timeline-icon { position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
@media (max-width: 991.98px) {
    /* 85% obszaru treści (nie ekranu): obok menu kolumna 85vw wychodziła poza widok */
    .lead-board { grid-template-columns: repeat(4, 85%); scroll-snap-type: x mandatory; }
    .lead-board.lead-board-stages { grid-template-columns: repeat(6, 85%); }
    .lead-board-column { scroll-snap-align: start; }
}
