/* 15.10: «Drugi telefon» в карточке визита + выбор номера в «Wyślij klientowi» + «Przenieś do innego zlecenia».
   Токены — из :root (index.html / tokens.css), без своих цветов. */

/* второй номер клиента */
.cp-box { margin: -2px 0 10px; }
.cp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; margin: 0 0 6px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.cp-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-a { display: flex; gap: 6px; flex-shrink: 0; }
.cp-a .btn { width: auto; margin: 0; text-decoration: none; }
.cp-add { margin: 0 0 4px; }
.cp-form { grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin: 6px 0 4px; }
.cp-form input[type=tel], .cp-form input[type=text] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--panel); color: var(--text); }
.cp-form .cp-wa { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--text); }
.cp-form .btn { width: auto; margin: 0; }

/* «Wyślij klientowi»: на какой номер */
.op-to { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 8px; padding-bottom: 2px; }
.op-num { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--panel); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.op-num small { font-size: 12px; color: var(--text-dim); }
.op-num.on { border-color: var(--accent-dim); background: var(--ok-bg); }

/* выбор фото для переноса */
.pm-bar { margin: 6px 0 0; }
.pm-sticky { position: sticky; bottom: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.pm-sticky span { flex: 1; font-size: 14px; font-weight: 700; }
.pm-sticky .btn { width: auto; margin: 0; }
.thumbs.pm-mode .thumb .del { display: none; }
.thumbs.pm-mode .thumb { opacity: .72; }
.thumbs.pm-mode .thumb.pm-sel { opacity: 1; outline: 3px solid var(--accent-dim); outline-offset: -3px; }
.thumbs.pm-mode .thumb.pm-sel::after { content: ""; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-dim); box-shadow: inset 0 0 0 3px var(--panel); }
.pm-note { margin: 8px 0 0; }

/* окно «куда перенести» */
.pm-ov { position: fixed; inset: 0; z-index: 9998; background: rgba(20,14,6,.55); display: flex; align-items: flex-end; justify-content: center; }
.pm-sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.pm-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.pm-h .btn { width: auto; margin: 0; }
.pm-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 6px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--panel); color: var(--text); font-size: 14px; font-weight: 400; cursor: pointer; }
.pm-opt span { display: flex; flex-direction: column; gap: 2px; }
.pm-opt small { color: var(--text-dim); font-size: 12px; }
.pm-opt input { width: 20px; height: 20px; flex-shrink: 0; }
.pm-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px 32px; }
.pm-month select { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--panel); color: var(--text); }

/* 15.10: «Główny raport jeszcze otwarty — zakończyć?» в карточке основного визита */
.xm-hint { flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.xm-hint p { flex: 1; min-width: 0; font-weight: 600; }
.xm-hint .btn { width: auto; margin: 0; }
