/* =====================================================================
   Sprout partner app - new UI (v2)
   Loaded only by resources/views/v2/layouts/app.php (switch: app_ui_v2 / ?ui=v2)
   1) Restyles AdminLTE so every existing screen matches the new look
   2) Components for the rebuilt screens (prefix .v-)
   ===================================================================== */
:root {
  --v-green: #28a745;
  --v-green-d: #1e8a39;
  --v-forest: #0f3d22;
  --v-leaf: #a9cdb3;
  --v-mint: #e3f1e5;
  --v-bg: #f4f7f2;
  --v-card: #ffffff;
  --v-ink: #13261a;
  --v-muted: #5f7064;
  --v-line: #e1e8de;
  --v-amber: #b07400;
  --v-amber-bg: #fff3d6;
  --v-red: #c8352a;
  --v-red-bg: #fdecea;
  --v-radius: 14px;
  --v-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --v-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --v-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------- 1. Global restyle of existing screens ---------- */
body.ui-v2 { font-family: var(--v-body); color: var(--v-ink); -webkit-font-smoothing: antialiased; }
.ui-v2 .content-wrapper { background: var(--v-bg); }
.ui-v2 h1, .ui-v2 h2, .ui-v2 h3, .ui-v2 h4, .ui-v2 h5, .ui-v2 .card-title { font-family: var(--v-display); letter-spacing: -0.01em; }
.ui-v2 .content-header h1, .ui-v2 .card-title, .ui-v2 .card-header h3, .ui-v2 .card-header h5 { color: var(--v-forest); }
.ui-v2 .content-header { padding: 16px 16px 4px; }
.ui-v2 .content-header .col-12.text-center { text-align: left !important; }
.ui-v2 .content-header h1 { font-size: 1.6rem; font-weight: 800; }
.ui-v2 a { color: var(--v-green-d); }

/* header */
.ui-v2 .main-header { border-bottom: 1px solid var(--v-line); box-shadow: none; }
.ui-v2 #navbarVoiceBtn { display: none !important; } /* voice lives in search + Tasks */

/* cards */
.ui-v2 .card { border: 1px solid var(--v-line); border-radius: var(--v-radius); box-shadow: none; overflow: hidden; }
.ui-v2 .card.card-outline { border-top-width: 1px !important; border-top-color: var(--v-line) !important; }
.ui-v2 .card-header { background: transparent; border-bottom: 1px solid var(--v-line); padding: 12px 16px; }
.ui-v2 .card-title { font-size: 1.05rem; font-weight: 700; }
.ui-v2 .card-footer { background: transparent; border-top: 1px solid var(--v-line); }

/* buttons */
.ui-v2 .btn { border-radius: 10px; font-weight: 600; }
.ui-v2 .btn-success, .ui-v2 .btn-primary { background: var(--v-green); border-color: var(--v-green); color: #fff; }
.ui-v2 .btn-success:hover, .ui-v2 .btn-primary:hover { background: var(--v-green-d); border-color: var(--v-green-d); }
.ui-v2 .btn-outline-success, .ui-v2 .btn-outline-primary { color: var(--v-forest); border-color: var(--v-line); background: #fff; }
.ui-v2 .btn-outline-success:hover, .ui-v2 .btn-outline-primary:hover { background: var(--v-mint); color: var(--v-forest); border-color: var(--v-mint); }
.ui-v2 .btn-warning { background: #fff; border-color: var(--v-line); color: var(--v-forest); }
.ui-v2 .btn-info { background: var(--v-forest); border-color: var(--v-forest); color: #fff; }

/* forms */
.ui-v2 .form-control, .ui-v2 .custom-select { border-radius: 10px; border: 1.5px solid var(--v-line); min-height: 44px; }
.ui-v2 .form-control:focus { border-color: var(--v-green); box-shadow: 0 0 0 3px rgba(40,167,69,.15); }
.ui-v2 label { font-weight: 600; font-size: .9rem; }

/* AdminLTE small-boxes become quiet stat cards */
.ui-v2 .small-box { background: var(--v-card) !important; color: var(--v-ink) !important; border: 1px solid var(--v-line); border-radius: var(--v-radius); box-shadow: none; }
.ui-v2 .small-box .inner h3 { font-family: var(--v-display); color: var(--v-forest); font-size: 1.8rem; }
.ui-v2 .small-box .inner p { color: var(--v-muted); }
.ui-v2 .small-box .icon { color: var(--v-mint); }
.ui-v2 .small-box .icon > i { color: rgba(40,167,69,.18); }
.ui-v2 .small-box-footer { background: var(--v-mint) !important; color: var(--v-green-d) !important; }

/* tables, badges, modals */
.ui-v2 .table thead th { font-family: var(--v-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--v-muted); border-top: 0; font-weight: 500; }
.ui-v2 .badge { border-radius: 999px; font-weight: 600; padding: .3em .65em; }
.ui-v2 .badge-success { background: var(--v-mint); color: var(--v-green-d); }
.ui-v2 .modal-content { border: 0; border-radius: 18px; }
@media (max-width: 767px) {
  .ui-v2 .modal-dialog:not(.modal-dialog-centered) { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .ui-v2 .modal.fade .modal-dialog:not(.modal-dialog-centered) { transform: translateY(40px); }
  .ui-v2 .modal.show .modal-dialog:not(.modal-dialog-centered) { transform: none; }
  .ui-v2 .modal-dialog:not(.modal-dialog-centered) .modal-content { border-radius: 20px 20px 0 0; max-height: 88vh; overflow-y: auto; }
}

/* side menu (desktop): light, not dark */
.ui-v2 .main-sidebar { background: #fff !important; border-right: 1px solid var(--v-line); box-shadow: none !important; }
.ui-v2 .main-sidebar .user-panel { display: none !important; }
.ui-v2 .nav-sidebar .nav-link { color: var(--v-ink) !important; border-radius: 10px; font-weight: 500; }
.ui-v2 .nav-sidebar .nav-link .nav-icon { color: var(--v-muted); }
.ui-v2 .nav-sidebar .nav-link:hover { background: var(--v-mint); }
.ui-v2 .nav-sidebar .nav-link.active { background: var(--v-mint) !important; color: var(--v-forest) !important; box-shadow: none !important; font-weight: 700; }
.ui-v2 .nav-sidebar .nav-link.active .nav-icon { color: var(--v-green-d); }

/* floating help button: removed (How it works lives on the You screen) */
.ui-v2 #floatingHelpBtn { display: none !important; }

/* bottom bar: Scan raised in the centre */
.ui-v2 .bottom-nav { border-top: 1px solid var(--v-line); box-shadow: none; }
.ui-v2 .bottom-nav-item { color: var(--v-muted); font-family: var(--v-body); font-weight: 600; }
.ui-v2 .bottom-nav-item.active { color: var(--v-green-d); }
.ui-v2 .bottom-nav-item.scan-btn .scan-btn-icon { background: var(--v-green); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(40,167,69,.35); }

/* ---------- 2. Components for rebuilt screens ---------- */
.v-page { max-width: 760px; margin: 0 auto; padding: 14px 6px 96px; display: grid; gap: 16px; }
.v-wide { max-width: 1100px; }
.v-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v-title { font-family: var(--v-display); font-weight: 800; font-size: 1.65rem; line-height: 1.1; color: var(--v-forest); margin: 0; }
.v-sub { color: var(--v-muted); font-size: .9rem; margin: 2px 0 0; }
.v-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 4px 2px -6px; }
.v-section-head h2 { font-family: var(--v-body); font-size: .95rem; font-weight: 700; color: var(--v-ink); margin: 0; letter-spacing: 0; }
.v-section-head a { font-size: .85rem; font-weight: 600; }
.v-card { background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 16px; display: grid; gap: 10px; }
.v-hero { background: var(--v-forest); color: #e8f3ea; border-radius: 18px; padding: 18px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.v-hero .v-eyebrow { color: var(--v-leaf); }
.v-hero h2 { color: #fff; font-family: var(--v-display); font-weight: 800; font-size: 1.35rem; margin: 0; }
.v-eyebrow { font-family: var(--v-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--v-muted); }
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 16px; min-height: 46px; font-weight: 700; font-size: .95rem; background: var(--v-green); color: #fff !important; border: 0; text-decoration: none !important; cursor: pointer; }
.v-btn:hover { background: var(--v-green-d); }
.v-btn.light { background: #fff; color: var(--v-forest) !important; }
.v-btn.light:hover { background: var(--v-mint); }
.v-btn.ghost { background: transparent; color: var(--v-forest) !important; border: 1.5px solid var(--v-line); }
.v-btn.ghost:hover { background: var(--v-mint); }
.v-btn.sm { min-height: 34px; padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.v-btn.block { width: 100%; }
.v-btn.danger { background: transparent; color: var(--v-red) !important; border: 1.5px solid var(--v-red-bg); }
.v-btn:focus-visible { outline: 3px solid rgba(40,167,69,.35); outline-offset: 2px; }
.v-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.v-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.v-chips.scroll::-webkit-scrollbar { display: none; }
.v-chip { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--v-line); color: var(--v-ink) !important; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.v-chip.on { background: var(--v-forest); color: #fff !important; border-color: var(--v-forest); }
.v-chip.dark { background: rgba(255,255,255,.12); border-color: transparent; color: #e8f3ea !important; }
.v-chip.dark:hover { background: rgba(255,255,255,.2); }
.v-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--v-line); border-radius: 12px; padding: 0 12px; position: relative; }
.v-search:focus-within { border-color: var(--v-green); box-shadow: 0 0 0 3px rgba(40,167,69,.15); }
.v-search i { color: var(--v-muted); }
.v-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 12px 0; font-size: 1rem; background: transparent; }
.v-search .v-mic { border: 0; background: none; color: var(--v-green-d); padding: 8px; }
.v-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--v-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15,61,34,.12); z-index: 30; overflow: hidden; }
.v-list { background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--v-radius); overflow: hidden; }
.v-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--v-line); color: var(--v-ink) !important; text-decoration: none !important; }
.v-row:last-child { border-bottom: 0; }
a.v-row:hover { background: #f7faf6; }
.v-row .grow { flex: 1; min-width: 0; }
.v-row b { display: block; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-row small { display: block; color: var(--v-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-row small.wrap, .v-card small { white-space: normal; }
@media (max-width: 767px) { .ui-v2 .content-wrapper > .content { padding-left: 6px; padding-right: 6px; } }
.v-row .chev { color: #b7c3ba; }
.v-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; background: #c9e7cf; color: var(--v-forest); }
.v-av.c1 { background: #fde3b3; color: #6b4600; }
.v-av.c2 { background: #d6e4f7; color: #1f4b80; }
.v-av.c3 { background: #f3d6e6; color: #7a2453; }
.v-av.lg { width: 60px; height: 60px; font-size: 1.2rem; background: var(--v-forest); color: #fff; }
.v-leaf { color: var(--v-green); flex: none; }
.v-leaf.off { color: #c9d3cb; }
.v-due { font-size: .75rem; font-weight: 700; color: var(--v-amber); white-space: nowrap; }
.v-due.late { color: var(--v-red); }
.v-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b9c7bc; background: #fff; flex: none; cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0; }
.v-check:hover { border-color: var(--v-green); }
.v-check.done { background: var(--v-green); border-color: var(--v-green); color: #fff; }
.v-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--v-radius); }
.v-stats a, .v-stats div { padding: 12px 8px; text-align: center; border-right: 1px solid var(--v-line); color: var(--v-ink) !important; text-decoration: none !important; }
.v-stats > :last-child { border-right: 0; }
.v-stats strong { display: block; font-family: var(--v-display); font-size: 1.5rem; line-height: 1; color: var(--v-forest); font-variant-numeric: tabular-nums; }
.v-stats strong.low { color: var(--v-amber); }
.v-stats span { font-size: .75rem; color: var(--v-muted); }
.v-nudge { background: var(--v-mint); border-radius: var(--v-radius); padding: 14px; display: flex; gap: 12px; align-items: center; }
.v-nudge b { display: block; color: var(--v-forest); }
.v-nudge small { color: var(--v-muted); }
.v-warn { background: var(--v-amber-bg); color: #6b4a00; border-radius: var(--v-radius); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.v-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #e9efe7; border-radius: 12px; padding: 4px; }
.v-seg button, .v-seg a { text-align: center; font-size: .85rem; font-weight: 700; padding: 8px 4px; border-radius: 9px; color: var(--v-muted) !important; border: 0; background: transparent; text-decoration: none !important; cursor: pointer; }
.v-seg .on { background: #fff; color: var(--v-forest) !important; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.v-empty { text-align: center; color: var(--v-muted); padding: 28px 16px; display: grid; gap: 10px; justify-items: center; }
.v-empty i { font-size: 1.8rem; color: var(--v-leaf); }
.v-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.v-actions a, .v-actions button { display: grid; justify-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--v-forest) !important; background: none; border: 0; text-decoration: none !important; padding: 0; cursor: pointer; }
.v-actions i.box { width: 48px; height: 48px; border-radius: 14px; background: var(--v-mint); color: var(--v-green-d); display: grid; place-items: center; font-size: 1.1rem; }
.v-actions .disabled { opacity: .4; pointer-events: none; }
.v-badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--v-mint); color: var(--v-green-d); white-space: nowrap; }
.v-badge.amber { background: var(--v-amber-bg); color: var(--v-amber); }
.v-progress { height: 6px; border-radius: 3px; background: #e3ebe1; overflow: hidden; }
.v-progress i { display: block; height: 100%; background: var(--v-green); }
.v-menu .v-row i.fa-fw { color: var(--v-green-d); width: 22px; text-align: center; }
.v-forest-hero { position: relative; border-radius: 18px; overflow: hidden; color: #fff; background: var(--v-forest); }
.v-forest-hero img { display: block; width: 100%; height: 190px; object-fit: cover; opacity: .9; }
.v-forest-hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(8,30,16,.92)); }
.v-forest-hero strong { font-family: var(--v-display); font-size: 2rem; line-height: 1; display: block; }
.v-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 90px; }
.v-bars i { display: block; background: var(--v-green); border-radius: 5px 5px 0 0; min-height: 3px; }
.v-bars i.zero { background: #dfeae1; }
.v-months { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; font-size: .7rem; color: var(--v-muted); text-align: center; }
.v-mono { font-family: var(--v-mono); font-size: .85em; }

/* Plant & share bottom sheet */
.v-sheet-backdrop { position: fixed; inset: 0; background: rgba(15,30,20,.5); z-index: 1060; display: none; }
.v-sheet-backdrop.open { display: block; }
.v-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1061; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 90vh; overflow-y: auto; transform: translateY(105%); transition: transform .25s ease; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.v-sheet.open { transform: none; }
.v-sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d3dcd0; justify-self: center; }
.v-sheet h3 { font-family: var(--v-display); font-weight: 800; font-size: 1.25rem; margin: 0; color: var(--v-forest); }
.v-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.v-share a, .v-share button { display: grid; justify-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--v-ink) !important; border: 0; background: none; text-decoration: none !important; cursor: pointer; padding: 0; }
.v-share i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.v-cert { border-radius: 14px; overflow: hidden; border: 1px solid var(--v-line); }
.v-cert img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; background: #f7faf6; }
.v-cert .top { background: var(--v-forest); color: #e8f3ea; padding: 10px 14px; }
.v-cert .top .v-mono { color: #9fe0b0; font-size: .72rem; }

@media (min-width: 768px) {
  .v-page { padding-bottom: 32px; }
  .v-sheet { bottom: 50%; transform: translateY(150%); border-radius: 22px; }
  .v-sheet.open { transform: translateY(50%); }
}
@media (prefers-reduced-motion: reduce) { .v-sheet { transition: none; } }

/* ---------- Contacts list (v2/clients/index.php) ---------- */
.v-contacts-more { min-width: 40px; }
.v-contacts-clear { color: var(--v-muted) !important; padding: 6px; }
.v-search .v-mic.v-contacts-mic-on { color: var(--v-red); }
.v-contacts-row { gap: 10px; }
.v-contacts-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit !important; text-decoration: none !important; }
a.v-contacts-link:hover b { color: var(--v-green-d); }
.v-contacts-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-amber); flex: none; }
.v-contacts-dot.late { background: var(--v-red); }
.v-contacts-star { border: 0; background: none; padding: 6px 2px 6px 4px; line-height: 1; flex: none; cursor: pointer; }
.v-contacts-star .text-muted { color: #c9d3cb !important; }
.v-contacts-chip-clear { color: var(--v-red) !important; }
.v-contacts-tagdot { width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; flex: none; }
.v-contacts-pager, .v-tasks-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- Tasks (v2/tasks/index.php) ---------- */
.v-tasks-pane { display: grid; gap: 16px; }
.v-tasks-late h2 { color: var(--v-red) !important; }
.v-tasks-row { cursor: pointer; }
.v-tasks-row:hover { background: #f7faf6; }
.v-tasks-row:focus-visible { outline: 3px solid rgba(40,167,69,.35); outline-offset: -3px; }
.v-tasks-row.is-done .v-tasks-title { text-decoration: line-through; color: var(--v-muted); }
.v-tasks-contact { color: var(--v-green-d) !important; font-weight: 600; }
.v-tasks-add { position: sticky; bottom: 12px; z-index: 20; margin-top: 4px; }
.v-tasks-add .v-search { box-shadow: 0 8px 24px rgba(15,61,34,.12); }
.v-tasks-plus { border: 0; background: var(--v-mint); color: var(--v-green-d); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding: 0; flex: none; }
.v-tasks-plus i { color: var(--v-green-d); }
@media (max-width: 768px) {
  .v-tasks-add { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Add contact (scan), My card, Team screens: .v-scan- / .v-card- / .v-team- ---------- */
.v-scan-home, .v-scan-review { display: grid; gap: 14px; }
.v-scan-event { display: grid; gap: 8px; justify-items: start; }
.v-scan-event-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.v-scan-event-chip span { overflow: hidden; text-overflow: ellipsis; }
.v-scan-event-chip .v-scan-caret { font-size: .7rem; opacity: .7; }
.v-scan-event-chip:not(.on) i.fa-calendar-alt { color: var(--v-green-d); }
.v-scan-event-box { width: 100%; gap: 8px; }
.v-scan-event-actions { display: flex; gap: 8px; justify-content: flex-end; }
.v-scan-hero { gap: 14px; }
.v-scan-mode { background: rgba(255,255,255,.1); }
.v-scan-mode button { color: #cfe6d5 !important; }
.v-scan-mode .on { background: #fff; color: var(--v-forest) !important; }
.v-scan-big { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; color: var(--v-forest); border: 0; border-radius: 16px; padding: 16px; cursor: pointer; }
.v-scan-big:hover { background: var(--v-mint); }
.v-scan-big:focus-visible { outline: 3px solid var(--v-leaf); outline-offset: 2px; }
.v-scan-big-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--v-green); color: #fff; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.v-scan-big-txt { flex: 1; min-width: 0; }
.v-scan-big-txt b { display: block; font-family: var(--v-display); font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.v-scan-big-txt small { display: block; color: var(--v-muted); font-size: .82rem; margin-top: 2px; }
.v-scan-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-scan-tile { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--v-radius); color: var(--v-forest) !important; font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.2; cursor: pointer; text-decoration: none !important; }
.v-scan-tile i { width: 36px; height: 36px; border-radius: 11px; background: var(--v-mint); color: var(--v-green-d); display: grid; place-items: center; font-size: 1rem; }
.v-scan-tile:hover { border-color: var(--v-green); background: #f7faf6; }
.v-scan-tile:focus-visible { outline: 3px solid rgba(40,167,69,.35); outline-offset: 2px; }
.v-scan-tile.v-scan-tile-hint { border-color: var(--v-green); box-shadow: 0 0 0 3px rgba(40,167,69,.25); }
@media (min-width: 768px) { .v-scan-ways { grid-template-columns: repeat(5, 1fr); } }
.v-scan-photo { border-radius: var(--v-radius); overflow: hidden; border: 1px solid var(--v-line); background: #fff; }
.v-scan-photo img { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #f7faf6; }
.v-scan-form { gap: 4px; }
.v-scan-form .form-group { margin-bottom: 10px; }
.v-scan-form label { font-size: .78rem; color: var(--v-muted); margin-bottom: 4px; }
.v-scan-fields { display: grid; grid-template-columns: 1fr; column-gap: 12px; }
@media (min-width: 768px) { .v-scan-fields { grid-template-columns: 1fr 1fr; } }
.v-scan-fix { flex-wrap: nowrap; overflow-x: auto; gap: 6px; align-items: center; padding: 2px 0 10px; scrollbar-width: none; }
.v-scan-fix::-webkit-scrollbar { display: none; }
.v-scan-fix-label { font-size: .75rem; font-weight: 700; color: var(--v-amber); white-space: nowrap; }
.v-scan-fix .v-chip { font-size: .75rem; padding: 4px 10px; }
.v-scan-group { display: grid; gap: 8px; padding: 6px 0 10px; }
.v-scan-group > label { margin-bottom: 0; }
.v-scan-event-field { position: relative; }
.v-scan-event-field i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--v-green-d); pointer-events: none; }
.v-scan-event-field .form-control { padding-left: 36px; }
.v-scan-tags { gap: 6px; }
.v-scan-tag-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.v-scan-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem !important; color: var(--v-ink) !important; }
.v-scan-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.v-scan-tag-input:checked + .v-scan-tag { background: var(--v-forest); border-color: var(--v-forest); color: #fff !important; }
.v-scan-tag-input:focus-visible + .v-scan-tag { outline: 3px solid rgba(40,167,69,.35); outline-offset: 2px; }
.v-scan-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--v-line); border-bottom: 1px solid var(--v-line); color: var(--v-ink) !important; text-decoration: none !important; margin-bottom: 8px; }
.v-scan-more b { display: block; font-size: .92rem; }
.v-scan-more small { display: block; color: var(--v-muted); font-size: .78rem; }
.v-scan-more i { color: #b7c3ba; }
.v-scan-save { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 6px; }

/* My card */
.v-card-live { background: var(--v-forest); color: #e8f3ea; border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.v-card-live-top { display: flex; align-items: center; gap: 12px; }
.v-card-live .v-av.lg { background: var(--v-green); }
.v-card-live-id { flex: 1; min-width: 0; }
.v-card-live-id b { display: block; font-family: var(--v-display); font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
.v-card-live-id small { display: block; color: var(--v-leaf); font-size: .85rem; margin-top: 2px; }
.v-card-mini-qr { flex: none; width: 72px; height: 72px; padding: 5px; background: #fff; border: 0; border-radius: 10px; cursor: pointer; }
.v-card-mini-qr img, .v-card-mini-qr canvas { width: 62px !important; height: 62px !important; display: block; }
.v-card-live-lines { display: grid; gap: 6px; font-size: .88rem; }
.v-card-live-lines span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.v-card-live-lines i { color: var(--v-leaf); width: 16px; text-align: center; flex: none; }
.v-card-trees { color: #bff0cc; font-weight: 600; }
.v-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-card-share { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--v-line); }
.v-card-url .form-control { font-family: var(--v-mono); font-size: .8rem; background: #f7faf6; }
.v-card-share-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.v-card-expired b, .v-card-expired small { color: #9aa79d; }
.v-card-preview-link { border-bottom: 1px solid var(--v-line) !important; }
.v-card-edit { gap: 12px; }
.v-card-edit-title { font-family: var(--v-display); font-weight: 800; font-size: 1.15rem; margin: 0; color: var(--v-forest); }
.v-card-slug { display: flex; align-items: center; border: 1.5px solid var(--v-line); border-radius: 10px; overflow: hidden; background: #fff; }
.v-card-slug:focus-within { border-color: var(--v-green); box-shadow: 0 0 0 3px rgba(40,167,69,.15); }
.v-card-slug span { padding: 0 4px 0 10px; color: var(--v-muted); font-size: .72rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.v-card-slug .form-control { border: 0 !important; box-shadow: none !important; padding-left: 2px; min-width: 0; }
.v-card-social .form-group { margin-bottom: 10px; }
.v-card-social label i { width: 18px; color: var(--v-green-d); }
.v-card-profile-link { font-size: .85rem; font-weight: 600; }
.v-card-qr-body { padding: 22px 18px; }
.v-card-qr-big { display: inline-block; padding: 10px; border: 1px solid var(--v-line); border-radius: 14px; background: #fff; }
.v-card-qr-big img, .v-card-qr-big canvas { width: 220px !important; height: 220px !important; display: block; }

/* Team */
.v-team-hero-text { color: #cfe6d5; font-size: .92rem; }
.v-team-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--v-mint); color: var(--v-green-d); display: grid; place-items: center; flex: none; }
.v-team-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.v-team-count { font-size: .68rem; background: var(--v-mint); color: var(--v-green-d); border-radius: 999px; padding: 1px 6px; }
@media (max-width: 380px) { .v-team-count { display: none; } }
.v-team-all b { color: var(--v-green-d); font-size: .9rem; }
.v-team-act { align-items: flex-start; }
.v-team-act > i { margin-top: 3px; }
.v-team-act-text { display: block; font-size: .88rem; white-space: normal; }
.v-team-invite .form-control { font-size: .78rem; background: #f7faf6; }
.v-team-invite-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-team-invite-more { display: flex; gap: 16px; font-size: .85rem; }
.v-team-invite-more a, .v-team-invite-more button { font-weight: 600; color: var(--v-green-d); background: none; border: 0; padding: 0; cursor: pointer; }
.v-card-page .v-head .v-btn, .v-team .v-head .v-btn { white-space: nowrap; flex: none; }
.v-team .v-row small { white-space: normal; }

/* ---------- Contact page (resources/views/v2/clients/show.php) ---------- */
.v-contact-hero { gap: 14px; }
.v-contact-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -6px 0; }
.v-contact-back { font-weight: 700; font-size: .95rem; color: var(--v-forest) !important; text-decoration: none !important; padding: 6px; }
.v-contact-icon { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--v-forest); display: inline-grid; place-items: center; font-size: 1.1rem; cursor: pointer; padding: 0; }
.v-contact-icon:hover { background: var(--v-mint); }
.v-contact-icon.sm { width: 32px; height: 32px; font-size: .85rem; border-radius: 9px; color: var(--v-muted); }
.v-contact-icon.sm.text-danger { color: var(--v-red) !important; }
.v-contact-id { display: flex; gap: 14px; align-items: center; }
.v-contact-id .grow { flex: 1; min-width: 0; }
.v-contact-name { font-family: var(--v-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: var(--v-forest); margin: 0; overflow-wrap: anywhere; }
.v-contact-role { color: var(--v-muted); font-size: .9rem; margin-top: 2px; }
.v-contact-event { background: var(--v-mint); border-color: var(--v-mint); color: var(--v-green-d) !important; font-size: .75rem; padding: 4px 10px; cursor: default; }
.v-contact-tree, .v-contact-next { display: flex; align-items: center; gap: 12px; }
.v-contact-tree .v-leaf { font-size: 1.5rem; }
.v-contact-tree .grow, .v-contact-next .grow { flex: 1; min-width: 0; }
.v-contact-tree b, .v-contact-next b { display: block; font-size: .95rem; color: var(--v-ink); }
.v-contact-tree small, .v-contact-next small { display: block; color: var(--v-muted); font-size: .8rem; }
.v-contact-late { color: var(--v-red) !important; font-weight: 700; }
.v-contact-pbmeta { display: flex; justify-content: space-between; align-items: center; margin-top: -4px; }
.v-contact-pbmeta small { color: var(--v-muted); font-size: .78rem; }
.v-contact-link { background: none; border: 0; padding: 0; color: var(--v-green-d); font-weight: 600; font-size: .85rem; cursor: pointer; }
.v-contact-apply { display: flex; gap: 8px; align-items: center; }
.v-contact-apply select { flex: 1; min-width: 0; }
.v-contact-muted { color: var(--v-muted); }
.v-contact-pane { display: none; }
.v-contact-pane.on { display: grid; gap: 12px; }
.v-contact-pane .v-section-head { margin: 0 2px; align-items: center; }
.v-contact-pane .v-section-head span { display: flex; gap: 6px; }
.v-contact-tl > div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.v-contact-tl > div::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--v-line); }
.v-contact-tl > div:last-child { padding-bottom: 0; }
.v-contact-tl > div:last-child::after { display: none; }
.v-contact-tl .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--v-mint); color: var(--v-green-d); display: grid; place-items: center; font-size: .78rem; }
.v-contact-tl b { display: block; font-size: .9rem; font-weight: 700; }
.v-contact-tl small { display: block; color: var(--v-muted); font-size: .8rem; overflow-wrap: anywhere; }
.v-contact-mom { padding: 12px 14px; border-bottom: 1px solid var(--v-line); }
.v-contact-mom:last-child { border-bottom: 0; }
.v-contact-mom .mom-body { overflow-wrap: anywhere; }
.v-contact-dl .v-row small { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.v-contact-val { display: block; color: var(--v-ink); font-weight: 600; overflow-wrap: anywhere; }
a.v-contact-val { color: var(--v-green-d) !important; }
.v-contact-tag { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 6px 4px 12px; border-radius: 999px; }
.v-contact-tag button { border: 0; background: rgba(255,255,255,.25); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; padding: 0; cursor: pointer; }
.v-contact-cardimg { width: 120px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--v-line); }
.v-contact-step { display: grid; gap: 14px; }
.v-contact-sheethead { display: flex; align-items: flex-start; gap: 10px; }
.v-contact-sheethead .grow { flex: 1; min-width: 0; }
.v-contact-certload { padding: 24px; text-align: center; color: var(--v-muted); background: #f7faf6; font-size: .85rem; }
.v-sheet .v-list.v-menu { border: 0; border-radius: 0; margin: 0 -18px; }
.v-contact-rowbtn { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--v-line); text-align: left; cursor: pointer; }
.v-contact-rowbtn:hover { background: #f7faf6; }
.v-contact-rec { background: var(--v-red-bg) !important; color: var(--v-red) !important; border-color: var(--v-red-bg) !important; }
.v-contact-sheet-open .swal2-container { z-index: 1080 !important; }
.v-contact .v-btn[disabled], .v-contact-sheet-open .v-sheet .v-btn[disabled] { opacity: .5; cursor: not-allowed; }
.v-contact-sheet-open .v-sheet:focus { outline: none; }

/* Secondary buttons on classic screens (e.g. "Back to Contacts"): readable ghost style */
.ui-v2 .btn-secondary { background: #fff; border-color: var(--v-line); color: var(--v-forest) !important; }
.ui-v2 .btn-secondary:hover { background: var(--v-mint); border-color: var(--v-mint); }
.ui-v2 .btn-secondary .text-success, .ui-v2 .btn-secondary i { color: var(--v-green-d) !important; }

/* ---------- Tags, Playbooks, Team sub-pages (v2/tags, v2/playbooks, v2/team/_tabs + sub-pages): .v-tags- / .v-playbooks- / .v-teamtabs- ---------- */
.v-tags-row, .v-playbooks-row { gap: 10px; }
.v-tags-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.v-tags-count { color: var(--v-green-d) !important; font-weight: 600; }
.v-tags-acts { display: flex; gap: 2px; flex: none; }
.v-tags-act { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--v-muted) !important; display: inline-grid; place-items: center; padding: 0; cursor: pointer; font-size: .85rem; text-decoration: none !important; flex: none; }
.v-tags-act:hover { background: var(--v-mint); color: var(--v-green-d) !important; }
.v-tags-act.danger:hover { background: var(--v-red-bg); color: var(--v-red) !important; }
.v-tags-act:focus-visible { outline: 3px solid rgba(40,167,69,.35); outline-offset: 1px; }
.v-tags-act[disabled] { opacity: .5; cursor: not-allowed; }
.v-tags-foot { display: flex; justify-content: flex-end; margin-top: -8px; }
.v-tags-link { background: none; border: 0; padding: 4px 2px; color: var(--v-muted); font-size: .82rem; font-weight: 600; cursor: pointer; }
.v-tags-link:hover { color: var(--v-red); }
.v-tags-help { background: var(--v-card); border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 10px 14px; font-size: .85rem; color: var(--v-muted); }
.v-tags-help summary { cursor: pointer; font-weight: 700; color: var(--v-forest); font-size: .85rem; }
.v-tags-help summary i { color: var(--v-green-d); width: 16px; }
.v-tags-help ul { margin: 8px 0 2px; padding-left: 18px; }
.v-tags-help li { margin-bottom: 4px; }
.v-tags-help strong { color: var(--v-ink); }

.v-playbooks-link { display: block; color: inherit !important; text-decoration: none !important; }
a.v-playbooks-link:hover b { color: var(--v-green-d); }
.v-playbooks-back { justify-self: start; font-weight: 700; font-size: .9rem; color: var(--v-forest) !important; text-decoration: none !important; margin-bottom: -10px; }
.v-playbooks-back i { font-size: .75rem; margin-right: 2px; }
.v-playbooks-headtext { min-width: 0; }
.v-playbooks-headtext .v-title { overflow-wrap: anywhere; }
.v-playbooks-page .v-head .v-btn { white-space: nowrap; flex: none; }
.v-playbooks-desc { margin: -8px 2px 0; color: var(--v-muted); font-size: .88rem; }
.v-playbooks-step { align-items: flex-start; gap: 10px; padding-left: 8px; }
.v-playbooks-drag { color: #b7c3ba; cursor: grab; padding: 6px 2px; touch-action: none; flex: none; }
.v-playbooks-num { width: 28px; height: 28px; border-radius: 50%; background: var(--v-mint); color: var(--v-green-d); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.v-row b.v-playbooks-steptitle { white-space: normal; }
.v-playbooks-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; }
.v-playbooks-day { font-size: .75rem; font-weight: 600; color: var(--v-muted); white-space: nowrap; }
.v-playbooks-type-email, .v-playbooks-type-call { background: #e3ecf8; color: #1f4b80; }
.v-playbooks-type-share_certificate { background: var(--v-amber-bg); color: var(--v-amber); }
.v-playbooks-type-manual { background: #eceff0; color: #4d5a52; }
.v-playbooks-step.sortable-ghost { opacity: .4; background: var(--v-mint); }
.v-playbooks-vars { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 2px; align-items: center; }
.v-playbooks-vars dt { font-weight: 400; }
.v-playbooks-vars dd { margin: 0; }
.v-playbooks-vars code { color: var(--v-green-d); background: var(--v-mint); padding: 1px 6px; border-radius: 6px; font-size: .78rem; }

.v-seg.v-teamtabs-bar { grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; scrollbar-width: none; }
.v-seg.v-teamtabs-bar::-webkit-scrollbar { display: none; }
.v-seg.v-teamtabs-bar a { padding: 8px 10px; white-space: nowrap; }
.v-teamtabs-member { gap: 10px; }
.v-teamtabs-filter { display: grid; gap: 8px; }
.v-teamtabs-filter2 { grid-template-columns: 1fr 1fr; }
.v-teamtabs-filter .form-control { border-radius: 10px; }
.v-stats.v-teamtabs-stats4 { grid-template-columns: repeat(4, 1fr); }
.v-stats strong.v-teamtabs-late { color: var(--v-red); }
.v-badge.v-teamtabs-high { background: var(--v-red-bg); color: var(--v-red); }
.v-teamtabs-task { gap: 8px; }
.v-teamtabs-task.is-done b { text-decoration: line-through; color: var(--v-muted); }
.v-teamtabs-task.is-late { box-shadow: inset 3px 0 0 var(--v-red); }
.v-teamtabs-form .form-group { margin-bottom: 10px; }
.v-teamtabs-form label { font-size: .78rem; color: var(--v-muted); margin-bottom: 4px; }
.v-teamtabs-chart { position: relative; height: 200px; }
.v-teamtabs-chart .v-empty { padding: 60px 16px; }
.v-teamtabs-trees { font-weight: 700; color: var(--v-green-d); white-space: nowrap; }
.v-teamtabs-feed { display: grid; gap: 16px; }
/* Team contacts DataTable: controls stay put, the table scrolls sideways on phones */
.v-teamtabs-dt { overflow: hidden; }
.v-teamtabs-dtop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--v-line); }
.v-teamtabs-dtop .dataTables_filter { flex: 1; min-width: 160px; text-align: left; }
.v-teamtabs-dtop .dataTables_filter label, .v-teamtabs-dtop .dataTables_length label { margin: 0; width: 100%; font-size: .8rem; color: var(--v-muted); }
.v-teamtabs-dtop .dataTables_filter input { margin-left: 0 !important; width: 100% !important; border-radius: 10px; }
.v-teamtabs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v-teamtabs-scroll table.dataTable { min-width: 680px; margin: 0 !important; border-collapse: collapse !important; }
.v-teamtabs-scroll table.dataTable th, .v-teamtabs-scroll table.dataTable td { white-space: nowrap; font-size: .85rem; vertical-align: middle; }
.v-teamtabs-scroll table.dataTable thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--v-muted); border-top: 0; }
.v-teamtabs-dbot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--v-line); font-size: .8rem; color: var(--v-muted); }
.v-teamtabs-dbot .dataTables_info { padding-top: 0 !important; }
.v-teamtabs-dbot .pagination { margin: 0 !important; flex-wrap: wrap; }
.v-teamtabs-dbot .page-link { padding: 4px 9px; font-size: .8rem; color: var(--v-forest); }
.v-teamtabs-dbot .page-item.active .page-link { background: var(--v-green); border-color: var(--v-green); color: #fff; }
.v-teamtabs-page > * { min-width: 0; }
.v-teamtabs-chart canvas { max-width: 100%; }
.v-seg.v-teamtabs-bar { position: relative; }
.v-seg.v-teamtabs-bar a { padding: 8px 7px; font-size: .8rem; }
.v-tags-default { display: inline-block; margin-left: 4px; vertical-align: 1px; font-size: .68rem; padding: 2px 8px; }
.v-playbooks-link .v-tags-default { margin: 0 4px 0 0; }
.v-tags-page .v-empty .v-btn i, .v-playbooks-page .v-empty .v-btn i { font-size: 1em; color: inherit; }

/* Several trees per contact (cnm_client_trees) */
.v-leaf-count { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.v-leaf-count b { font-size: .78rem; font-weight: 700; color: var(--v-green); line-height: 1; }
.v-contact-trees { display: block; }
.v-contact-trees .v-contact-treeshead { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.v-contact-trees .v-contact-treeshead .grow { flex: 1; min-width: 0; }
.v-contact-trees .v-contact-treeshead b { display: block; font-size: .95rem; color: var(--v-ink); }
.v-contact-trees .v-contact-treeshead small { display: block; color: var(--v-muted); font-size: .8rem; }
.v-contact-treerow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--v-line, #e6ece7); }
.v-contact-treerow .grow { flex: 1; min-width: 0; }
.v-contact-treerow b { display: block; font-size: .9rem; color: var(--v-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-contact-treerow small { display: block; color: var(--v-muted); font-size: .75rem; }
.v-contact-trees .v-contact-addtree { margin-top: 8px; }

/* ---------- Spacing: tighter phone gutters, wider desktop content ----------
   Phone: one 12px gutter (was content-wrapper 10 + .content 6 + container 7.5 + .v-page 6 ≈ 30px).
   Desktop: content up to 1120px wide (was 760px, leaving big empty bands left and right). */
.v-page { max-width: 1120px; }
@media (max-width: 767px) {
  .ui-v2 .content-wrapper { padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  .ui-v2 .content-wrapper > .content { padding: 0 !important; }
  .ui-v2 .content-wrapper > .content > .container-fluid,
  .ui-v2 .content-header > .container-fluid { padding-left: 12px; padding-right: 12px; }
  .ui-v2 .content-header { padding: 12px 0 0; }
  .v-page { padding: 12px 0 16px; gap: 14px; }
  .ui-v2 .card-body { padding: 14px; }
}
@media (min-width: 768px) {
  .ui-v2 .content-wrapper > .content > .container-fluid { padding-left: 24px; padding-right: 24px; }
  .ui-v2 .content-header { padding-left: .5rem; padding-right: .5rem; }
  .ui-v2 .content-header > .container-fluid { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Lists + select mode on Contacts (v2/lists/*, v2/clients/index) : .v-lists- / .v-sel ---------- */
.v-contacts-sel { display: none; flex: none; align-items: center; justify-content: center; width: 28px; margin: 0 -2px 0 -4px; cursor: pointer; }
.v-contacts-sel input { width: 20px; height: 20px; accent-color: var(--v-green); cursor: pointer; }
body.v-selecting .v-contacts-sel { display: flex; }
body.v-selecting .v-contacts-row { cursor: pointer; }
body.v-selecting .v-contacts-row.picked { background: var(--v-mint); }
body.v-selecting .v-page { padding-bottom: 170px; }
#selToggle.on { background: var(--v-forest); color: #fff !important; border-color: var(--v-forest); }

.v-selbar { position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 1040; padding: 0 10px; pointer-events: none; }
.v-selbar[hidden] { display: none; }
.v-selbar-in { pointer-events: auto; max-width: 1120px; margin: 0 auto; background: var(--v-forest); color: #fff; border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(8,30,16,.3); }
.v-selbar-info { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.v-selbar-info b { font-size: .95rem; }
.v-selbar-all { background: none; border: 0; padding: 0; color: #9fe0b0; font-weight: 600; font-size: .8rem; text-align: left; cursor: pointer; text-decoration: underline; }
.v-selbar-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.v-selbar .v-btn.ghost { background: rgba(255,255,255,.12); color: #fff !important; border-color: transparent; }
.v-selbar .v-btn[disabled] { opacity: .5; }
@media (min-width: 769px) { .v-selbar { bottom: 18px; left: 250px; } body.sidebar-collapse .v-selbar { left: 0; } }

.v-lists-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit !important; text-decoration: none !important; }
.v-lists-link:hover b { color: var(--v-green-d); }
.v-lists-link .v-badge { display: inline-block; margin-top: 4px; }
.v-lists-back { font-weight: 700; font-size: .9rem; color: var(--v-forest) !important; text-decoration: none !important; margin-bottom: -6px; }
.v-lists-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v-lists-actions .v-btn { flex: 1 1 auto; }
@media (min-width: 768px) { .v-lists-actions .v-btn { flex: 0 0 auto; } }
.v-lists-reach { display: flex; gap: 8px; color: #c6d1c8; font-size: .85rem; flex: none; }
.v-lists-reach .on { color: var(--v-green-d); }
.v-lists-picker { display: grid; }
.v-lists-pick { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--v-line); margin: 0; cursor: pointer; font-weight: 400; }
.v-lists-pick:hover { background: var(--v-field, #f7faf6); }
.v-lists-pick input { width: 18px; height: 18px; accent-color: var(--v-green); flex: none; }
.v-lists-pick .grow { flex: 1; min-width: 0; }
.v-lists-pick b { display: block; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-lists-pick small { display: block; color: var(--v-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-lists-choose { border: 1px solid var(--v-line); border-radius: 12px; overflow: hidden; max-height: 280px; overflow-y: auto; }
.v-lists-choose .v-lists-pick { padding: 10px 12px; }
.v-lists-choose .v-lists-pick:last-child { border-bottom: 0; }
.v-lists-or { display: flex; align-items: center; gap: 10px; color: var(--v-muted); font-size: .8rem; margin: 12px 0 8px; }
.v-lists-or::before, .v-lists-or::after { content: ""; flex: 1; height: 1px; background: var(--v-line); }
.v-list-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.v-list-color { margin: 0; cursor: pointer; }
.v-list-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v-list-color span:not(.sr-only) { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.v-list-color input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--v-forest); }
.v-list-color input:focus-visible + span { outline: 3px solid rgba(40,167,69,.4); outline-offset: 3px; }

/* Share sheet: message library picker (v2/clients/show) */
.v-share-pick { display: grid; gap: 8px; }
.v-share-pick .custom-select { border-radius: 10px; font-weight: 600; color: var(--v-forest); font-size: .9rem; height: 38px; }
.v-share-pick .v-chips[hidden] { display: none; }
.v-share-more { color: var(--v-green-d) !important; border-style: dashed; }
