/* Visual lead workflow. Keep the horizontal workspace inside the page. */
.customer-view-bar { display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.customer-view-bar > span { font-size:13px; color:#59667d; }
.customer-view-switch { display:inline-flex; padding:4px; border:1px solid #dce1eb; border-radius:12px; background:#e9edf5; flex:none; }
.customer-view-switch button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:9px 19px; border:0; border-radius:8px; background:transparent; font-weight:600; color:#55627a; }
.customer-view-switch button[aria-pressed=true] { color:#4435a5; background:white; box-shadow:0 1px 5px #26376418; }
.board-more-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.board-more-tools:has(details[open]) { grid-template-columns:minmax(0,1fr); }
.board-more-tools > details { margin-bottom:0; min-width:0; }
.board-more-tools > .bulk-action-bar { grid-column:1/-1; }
.customer-board-area { min-width:0; max-width:100%; }
.board-intro { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:24px 0 18px; }
.board-intro h2 { margin:0 0 5px; font-size:19px; letter-spacing:-.3px; }
.board-intro p { margin:0; font-size:14px; line-height:1.6; color:#56657d; }
.board-total { flex:none; color:#55627a; font-size:13px; }
.customer-board { display:flex; align-items:stretch; gap:16px; max-width:100%; min-width:0; overflow-x:auto; padding:3px 3px 20px; overscroll-behavior-x:contain; scrollbar-color:#acb5ca #e9edf5; scrollbar-width:auto; }
.board-stage { display:flex; flex-direction:column; height:clamp(350px,65dvh,700px); flex:1 0 282px; min-width:282px; max-width:340px; background:#e9edf4; border:1px solid #dfe5ee; border-top:4px solid var(--stage-color); border-radius:13px; padding:12px; transition:background .15s,border-color .15s; }
.board-stage-heading { display:flex; align-items:flex-start; gap:10px; padding:2px 2px 14px; }
.board-stage-heading h3 { flex:1; min-width:0; margin:0; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.board-stage-heading > span { display:inline-grid; place-items:center; min-width:28px; min-height:26px; padding:2px 8px; border-radius:8px; background:#fff; color:#485771; font-size:12px; font-weight:700; }
.board-stage-cards { display:flex; flex-direction:column; gap:12px; min-height:0; flex:1; overflow-y:auto; padding:2px; scrollbar-width:thin; scrollbar-color:#acb5ca transparent; }
.board-stage-cards > * { flex:none; }
.customer-board-card { position:relative; min-width:0; padding:15px; background:#fff; border:1px solid #dce2ed; border-radius:11px; box-shadow:0 2px 4px #14283f06; }
.customer-board-card[draggable=true] { cursor:grab; }
.customer-board-card[draggable=true]:hover { border-color:#a99ee2; box-shadow:0 4px 10px #14283f10; }
.customer-board-card.is-dragging { opacity:.45; cursor:grabbing; }
.customer-board-card.is-saving { border-color:#b8abed; }
.board-stage.is-drop-target { background:#e8e2ff; border-color:#7761d0; outline:2px dashed #7761d0; outline-offset:-7px; }
.board-card-heading { display:flex; align-items:flex-start; gap:10px; }
.board-card-heading > div { min-width:0; flex:1; }
.board-avatar { display:grid; place-items:center; width:34px; height:34px; flex:none; background:#f0edfb; color:#6350a9; border-radius:10px; font-size:12px; font-weight:700; }
.board-customer-name { display:block; max-width:100%; padding:0; text-align:left; border:0; background:transparent; font-size:15px; line-height:1.5; color:#182944; font-weight:700; overflow-wrap:anywhere; }
.board-customer-name:hover { color:#5742b3; text-decoration:underline; }
.board-phone { display:block; margin-top:4px; font-size:12px; line-height:1.5; color:#5d6c82; overflow-wrap:anywhere; }
.board-grip { color:#8590a5; font-size:20px; line-height:1; }
.customer-board-card[draggable=false] .board-grip { display:none; }
.board-owner { display:flex; align-items:center; gap:5px; margin:12px 0; font-size:12px; color:#65718a; overflow-wrap:anywhere; }
.board-next-reminder { display:block; width:100%; text-align:left; border:1px solid #e5eaf2; background:#f5f7fb; border-radius:8px; padding:10px; line-height:1.5; }
.board-next-reminder > span { display:flex; align-items:center; gap:5px; font-size:11px; color:#546780; }
.board-next-reminder strong { display:block; font-size:12px; margin:4px 0; font-weight:600; overflow-wrap:anywhere; }
.board-next-reminder small { font-size:11px; color:#596981; }
.board-next-reminder.is-overdue { background:#fff7ef; border-color:#f3ddc6; }
.board-next-reminder.is-overdue > span, .board-next-reminder.is-overdue small { color:#92511e; }
.board-no-reminder { display:flex; justify-content:center; align-items:center; gap:6px; width:100%; min-height:44px; padding:10px 8px; border:1px dashed #cdd5e4; border-radius:8px; background:#fafbfe; color:#5a4bab; font-size:12px; }
.board-card-actions { display:flex; gap:8px; align-items:center; justify-content:space-between; margin-top:12px; }
.board-card-actions > button, .board-call { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 10px; border:1px solid #dce2ed; border-radius:8px; background:#fff; font-size:12px; font-weight:600; text-decoration:none; }
.board-card-actions > button { margin-left:auto; color:#5542b0; background:#f3f0ff; border-color:#e3dcfa; }
.board-card-actions > button:disabled { opacity:.65; cursor:wait; }
.board-call { color:#21664d; }
.board-call:hover { background:#eef9f3; }
.board-readonly, .board-no-phone { font-size:12px; color:#637086; }
.board-stage-empty { display:grid; place-items:center; min-height:150px; padding:18px; text-align:center; border:1px dashed #c3ccda; border-radius:10px; color:#68758b; font-size:13px; line-height:1.6; }
.board-stage-note { margin:-8px 2px 14px; color:#617087; font-size:11px; }
.board-show-more { width:100%; min-height:44px; padding:10px; margin-top:12px; background:#fff; border:1px solid #cfd8e7; border-radius:8px; font-size:13px; }
.board-show-more span { color:#69758b; font-size:11px; }
.board-empty { padding:25px; margin-bottom:20px; text-align:center; background:white; border:1px solid #dfe5ee; border-radius:12px; }
.board-empty p { color:#596981; line-height:1.6; }
.board-mobile-stages, .board-mobile-tip { display:none; }
.board-live-status { position:fixed; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.board-move-dialog { width:min(470px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:26px; border:1px solid #dce2ed; border-radius:17px; color:#182944; background:white; box-shadow:0 24px 80px #15294440; }
.board-move-dialog::backdrop { background:#10234066; }
.board-move-dialog h2 { font-size:21px; margin:0 0 12px; overflow-wrap:anywhere; }
.board-move-dialog p { font-size:14px; color:#57677e; line-height:1.6; }
.board-move-dialog label { display:block; font-size:14px; margin:22px 0 9px; font-weight:600; }
.board-move-dialog select { width:100%; min-height:48px; padding:10px; border:1px solid #cbd4e3; border-radius:9px; background:#fff; }
.board-move-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.board-move-actions button { min-height:44px; }
.board-move-dialog :is(button,select):focus-visible { outline:3px solid #6657df; outline-offset:3px; }
@media (max-width:760px) {
  .board-more-tools > details > summary { padding-inline:12px; }
  .board-more-tools > details > summary :is(.easy-summary-hint,.ico) { display:none; }
  .customer-view-bar { justify-content:space-between; gap:10px; }
  .customer-view-bar > span { max-width:130px; font-size:12px; line-height:1.5; }
  .customer-view-switch button { padding:9px 14px; }
  .board-intro { display:block; margin-top:20px; }
  .board-intro h2 { font-size:18px; }
  .board-total { display:block; margin-top:8px; font-size:12px; }
  .board-desktop-tip { display:none; }
  .board-mobile-tip { display:inline; }
  .board-mobile-stages { display:block; margin:16px 0; }
  .board-mobile-stages > label { display:block; font-size:13px; font-weight:600; margin-bottom:7px; }
  .board-mobile-stages > div { display:flex; gap:8px; }
  .board-mobile-stages select { flex:1; min-width:0; min-height:46px; padding:10px; border:1px solid #cbd4e3; border-radius:9px; background:#fff; }
  .board-mobile-stages button { display:grid; place-items:center; width:44px; min-height:46px; border:1px solid #cbd4e3; border-radius:9px; background:#fff; flex:none; }
  .board-mobile-stages button:disabled { opacity:.4; cursor:default; }
  .customer-board { display:block; overflow:visible; padding:0 0 15px; }
  .board-stage { display:none; min-width:0; width:100%; max-width:none; height:auto; }
  .board-stage.is-mobile-stage { display:block; }
  .board-stage-cards { overflow:visible; }
  .board-customer-name { font-size:16px; min-height:30px; }
  .board-card-heading { gap:12px; }
  .board-phone, .board-owner { font-size:13px; }
  .board-next-reminder strong { font-size:14px; }
  .board-next-reminder small, .board-next-reminder > span { font-size:12px; }
  .board-card-actions > button, .board-call, .board-no-reminder { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { .board-stage { transition:none; } }
