/* Voisinia admin: the client switcher and the client workspace pages. Plain CSS (Filament ships its own build). */
:root {
    --vz-card: #fff;
    --vz-soft: #f6f5fb;
    --vz-border: rgba(15, 12, 40, .09);
    --vz-text: #17142b;
    --vz-muted: #6b6880;
    --vz-accent: #6544f5;
    --vz-accent-bg: #f0edff;
    --vz-ok: #16a34a;
    --vz-warn: #d97706;
    --vz-bad: #dc2626;
    --vz-info: #2563eb;
}
.dark {
    --vz-card: #18181b;
    --vz-soft: #232329;
    --vz-border: rgba(255, 255, 255, .1);
    --vz-text: #f4f4f5;
    --vz-muted: #a1a1aa;
    --vz-accent: #9d8bff;
    --vz-accent-bg: rgba(101, 68, 245, .18);
}

/* ---- client switcher (top bar) ---- */
.vz-switcher { position: relative; margin-inline-start: 1rem; }
.vz-switcher-btn { display: inline-flex; align-items: center; gap: .55rem; max-width: 22rem; padding: .45rem .75rem; border-radius: 12px; background: var(--vz-soft); color: var(--vz-text); font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--vz-border); }
.vz-switcher-btn:hover { box-shadow: inset 0 0 0 1px var(--vz-accent); }
.vz-switcher-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-switcher-panel { position: absolute; top: calc(100% + .4rem); inset-inline-start: 0; z-index: 50; width: 23rem; max-height: 70vh; display: flex; flex-direction: column; padding: .5rem; border-radius: 14px; background: var(--vz-card); box-shadow: 0 18px 50px rgba(15, 12, 40, .18), 0 0 0 1px var(--vz-border); }
.vz-switcher-search { width: 100%; margin-bottom: .4rem; padding: .55rem .7rem; border: 0; border-radius: 10px; font-size: .88rem; background: var(--vz-soft); color: var(--vz-text); box-shadow: inset 0 0 0 1px var(--vz-border); }
.vz-switcher-search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--vz-accent); }
.vz-switcher-list { overflow-y: auto; }
.vz-switcher-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border-radius: 10px; color: var(--vz-text); }
.vz-switcher-item:hover { background: var(--vz-soft); }
.vz-switcher-item.is-current { background: var(--vz-accent-bg); }
.vz-switcher-text { min-width: 0; flex: 1; }
.vz-switcher-item-name { display: block; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-switcher-item-sub { display: block; font-size: .74rem; color: var(--vz-muted); }
.vz-switcher-link { display: block; padding: .5rem .6rem; border-radius: 10px; font-size: .86rem; font-weight: 600; color: var(--vz-accent); }
.vz-switcher-link:hover { background: var(--vz-soft); }
.vz-count { min-width: 1.4rem; padding: .05rem .4rem; border-radius: 99px; background: var(--vz-accent); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }
.vz-check { color: var(--vz-accent); font-weight: 700; }
.vz-sep { height: 1px; margin: .4rem .2rem; background: var(--vz-border); }
.vz-dot { width: .55rem; height: .55rem; flex: none; border-radius: 99px; background: #a1a1aa; }
.vz-dot-active { background: var(--vz-ok); }
.vz-dot-onboarding, .vz-dot-listing_only { background: var(--vz-info); }
.vz-dot-awaiting_payment { background: var(--vz-warn); }
.vz-dot-cancelled { background: var(--vz-bad); }
@media (max-width: 720px) {
    .vz-switcher { position: static; margin-inline-start: .4rem; }
    .vz-switcher-btn { max-width: 11rem; }
    .vz-switcher-panel { position: fixed; top: 3.8rem; inset-inline: .5rem; width: auto; }
}

/* ---- workspace pages ---- */
.vz-card { padding: 1.25rem 1.4rem; border-radius: 16px; background: var(--vz-card); color: var(--vz-text); box-shadow: 0 1px 2px rgba(15, 12, 40, .04), 0 0 0 1px var(--vz-border); }
.vz-h2 { margin-bottom: .8rem; font-size: 1.05rem; font-weight: 700; }
.vz-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.vz-row .vz-h2 { margin-bottom: .8rem; }
.vz-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .vz-grid-2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.vz-strong { display: block; font-weight: 600; }
.vz-muted { color: var(--vz-muted); }
.vz-small { font-size: .8rem; }
.vz-link { color: var(--vz-accent); font-weight: 600; font-size: .88rem; }
.vz-link:hover { text-decoration: underline; }
.vz-empty { padding: 1rem; border-radius: 12px; background: var(--vz-soft); color: var(--vz-muted); }
.vz-error { margin-top: .4rem; color: var(--vz-bad); font-size: .85rem; }
.vz-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; }

.vz-id { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.vz-id-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.vz-id-line { margin-top: .6rem; color: var(--vz-muted); }
.vz-id-contact { text-align: end; font-size: .9rem; line-height: 1.5; }
@media (max-width: 720px) { .vz-id-contact { text-align: start; } }

.vz-todo { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; padding: .7rem .9rem .7rem 0; border-radius: 12px; background: var(--vz-soft); color: var(--vz-text); transition: transform .12s, box-shadow .12s; }
.vz-todo:hover { box-shadow: 0 0 0 1px var(--vz-accent); }
.vz-todo-bar { align-self: stretch; width: 4px; flex: none; border-radius: 0 4px 4px 0; background: #a1a1aa; }
.vz-todo-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; font-size: .9rem; }
.vz-arrow { color: var(--vz-muted); }
.vz-tone-warning .vz-todo-bar { background: var(--vz-warn); }
.vz-tone-danger .vz-todo-bar { background: var(--vz-bad); }
.vz-tone-primary .vz-todo-bar { background: var(--vz-accent); }
.vz-tone-info .vz-todo-bar { background: var(--vz-info); }

.vz-facts { display: grid; gap: .55rem; font-size: .9rem; }
.vz-facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .8rem; }
.vz-facts dt { color: var(--vz-muted); }
@media (max-width: 640px) { .vz-facts > div { grid-template-columns: 1fr; gap: 0; } }
.vz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: 1.2rem; }
.vz-stats > div { padding: .7rem; border-radius: 12px; background: var(--vz-soft); font-size: .78rem; }
.vz-stat { display: block; font-size: 1.4rem; font-weight: 700; color: var(--vz-text); }
@media (max-width: 640px) { .vz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vz-post { display: flex; align-items: center; gap: .9rem; padding: .65rem 0; border-top: 1px solid var(--vz-border); }
.vz-post:first-of-type { border-top: 0; }
.vz-thumb { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; background: var(--vz-soft); }
.vz-post-when { width: 6.5rem; flex: none; font-size: .88rem; }
.vz-post-text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .88rem; }
.vz-post-text .vz-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .vz-post { flex-wrap: wrap; } .vz-post-text { flex-basis: 100%; } }
.vz-event { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .8rem; padding: .45rem 0; border-top: 1px solid var(--vz-border); font-size: .88rem; }
.vz-event:first-of-type { border-top: 0; }
.vz-note { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: #fff8e6; color: #5c4400; font-size: .9rem; white-space: pre-line; }
.dark .vz-note { background: rgba(245, 158, 11, .12); color: #fcd34d; }

.vz-steps { display: grid; gap: .5rem; }
.vz-steps li, .vz-check-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 12px; background: var(--vz-soft); font-size: .9rem; }
.vz-step-dot { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--vz-border); color: var(--vz-muted); font-size: .8rem; font-weight: 700; }
.is-done .vz-step-dot { background: var(--vz-ok); color: #fff; box-shadow: none; }
.vz-checklist { display: grid; gap: .5rem; margin: 1rem 0; }
.vz-check-item { width: 100%; text-align: start; color: var(--vz-text); }
.vz-check-item:hover { box-shadow: inset 0 0 0 1px var(--vz-accent); }
.vz-access { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--vz-soft); }
.vz-access-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.vz-access-head .vz-strong { display: inline; }
.vz-access-buttons { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }

.vz-bar { height: .55rem; margin-top: .6rem; overflow: hidden; border-radius: 99px; background: var(--vz-soft); }
.vz-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5232d9, #9b3ff0, #f7487b, #ff8a3d); }
.vz-warn { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: #fff8e6; color: #5c4400; font-size: .88rem; }
.dark .vz-warn { background: rgba(245, 158, 11, .12); color: #fcd34d; }
.vz-journey { display: grid; gap: .7rem; }
.vz-jstep { padding: 1rem 1.2rem; }
.vz-jstep.is-mine { box-shadow: 0 0 0 2px var(--vz-accent); }
.vz-jstep.is-waiting { box-shadow: 0 0 0 1px var(--vz-warn); }
.vz-jstep.is-skipped, .vz-jstep.is-todo { opacity: .85; }
.vz-jhead { display: flex; gap: .8rem; align-items: flex-start; }
.vz-jstep.is-done .vz-step-dot { background: var(--vz-ok); color: #fff; box-shadow: none; }
.vz-jstep.is-doing .vz-step-dot { background: var(--vz-info); color: #fff; box-shadow: none; }
.vz-jstep.is-waiting .vz-step-dot { background: var(--vz-warn); color: #fff; box-shadow: none; }
.vz-owner { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 99px; background: var(--vz-soft); color: var(--vz-muted); font-size: .72rem; font-weight: 600; }
.vz-owner.is-mine { background: var(--vz-accent); color: #fff; }
.vz-note-inline { margin-top: .3rem; font-size: .82rem; color: var(--vz-accent); }
.vz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .8rem; padding-left: 2.4rem; }
.vz-jform { display: grid; gap: .45rem; margin-top: .8rem; margin-left: 2.4rem; padding: .9rem; border-radius: 12px; background: var(--vz-soft); }
.vz-jform .vz-actions { padding-left: 0; margin-top: .2rem; }
/* Messages: inbox (list + conversation) and the conversation itself */
.vz-inbox { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .vz-inbox { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; } .vz-back { display: none; } }
@media (max-width: 1023px) { .vz-inbox.has-current .vz-threads { display: none; } .vz-inbox:not(.has-current) .vz-current { display: none; } }
.vz-threads { padding: .7rem; max-height: 78vh; overflow-y: auto; }
.vz-thread { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem; border-radius: 12px; text-align: start; color: var(--vz-text); }
.vz-thread:hover { background: var(--vz-soft); }
.vz-thread.is-current { background: var(--vz-accent-bg); }
.vz-thread.is-unread .vz-thread-preview { color: var(--vz-text); font-weight: 600; }
.vz-thread-text { min-width: 0; flex: 1; }
.vz-thread-top { display: flex; justify-content: space-between; gap: .5rem; }
.vz-thread-top .vz-strong { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-thread-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-convo .vz-chat { min-height: 18rem; }
.vz-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; margin: .3rem 0; }
.vz-files img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.vz-file { display: block; padding: .4rem .6rem; border-radius: 8px; background: var(--vz-card); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.vz-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 99px; background: var(--vz-soft); font-size: .8rem; }
.vz-chat { display: flex; flex-direction: column; gap: .7rem; max-height: 60vh; overflow-y: auto; padding: .2rem; }
.vz-bubble { max-width: 80%; align-self: flex-start; padding: .7rem .9rem; border-radius: 14px 14px 14px 4px; background: var(--vz-soft); font-size: .92rem; }
.vz-bubble.is-staff { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--vz-accent-bg); }
.vz-bubble p { margin-bottom: .3rem; }
.vz-reply { margin-top: 1rem; display: grid; gap: .6rem; }
.vz-textarea, .vz-caption { width: 100%; padding: .65rem .8rem; border: 0; border-radius: 10px; background: var(--vz-soft); color: var(--vz-text); font-size: .92rem; box-shadow: inset 0 0 0 1px var(--vz-border); }
.vz-textarea:focus, .vz-caption:focus { outline: none; box-shadow: inset 0 0 0 2px var(--vz-accent); }

.vz-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.6rem; border: 2px dashed var(--vz-border); border-radius: 14px; cursor: pointer; text-align: center; }
.vz-drop:hover { border-color: var(--vz-accent); background: var(--vz-accent-bg); }
.vz-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-top: .8rem; }
.vz-photo { position: relative; overflow: hidden; border-radius: 12px; background: var(--vz-soft); }
.vz-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vz-photo figcaption { display: grid; gap: .25rem; padding: .5rem; }
.vz-caption { padding: .35rem .5rem; font-size: .8rem; }
.vz-photo-btn { position: absolute; top: .4rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 99px; background: rgba(255, 255, 255, .95); color: #17142b; font-size: .9rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.vz-photo-btn.vz-left { left: .4rem; color: #a1a1aa; }
.vz-photo-btn.vz-left.is-on { color: #f59e0b; }
.vz-photo-btn.vz-right { right: .4rem; }
