/* t827 operator/NIP picker. Overlay only — does not change Payments or existing page layout. */
.lbm-op-bd[hidden],.lbm-op-list[hidden],.lbm-op-form[hidden],.lbm-op-err[hidden],.lbm-op-chip[hidden]{display:none !important;}
.lbm-op-bd{position:fixed;inset:0;z-index:2147483000;pointer-events:auto !important;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:16px;}
.lbm-op-bd[hidden]{display:none;}
.lbm-op-modal{background:#fff;border-radius:16px;width:min(420px,100%);max-height:min(90vh,720px);overflow:auto;box-shadow:0 20px 50px rgba(15,23,42,.25);padding:24px;}
.lbm-op-modal h2{margin:0 0 6px;font-size:22px;line-height:1.25;font-weight:700;color:#0f172a;}
.lbm-op-sub{margin:0 0 16px;font-size:14px;color:#475569;}
.lbm-op-list{display:flex;flex-direction:column;gap:8px;margin:0 0 16px;}
.lbm-op-person{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:#0f172a;}
.lbm-op-person:hover,.lbm-op-person:focus{border-color:#2563eb;background:#eff6ff;outline:none;}
.lbm-op-person[aria-pressed="true"]{border-color:#2563eb;background:#dbeafe;box-shadow:0 0 0 2px rgba(37,99,235,.25);}
.lbm-op-av{width:36px;height:36px;border-radius:999px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0;}
.lbm-op-name{font-weight:600;font-size:15px;}
.lbm-op-role{font-size:12px;color:#64748b;}
.lbm-op-form label{display:block;font-size:13px;font-weight:600;color:#334155;margin:0 0 6px;}
.lbm-op-form input{display:block;width:100%;height:40px;border:1px solid #cbd5e1;border-radius:10px;padding:0 12px;font-size:18px;letter-spacing:.2em;text-align:center;margin:0 0 12px;}
.lbm-op-form input:focus{outline:2px solid #2563eb;outline-offset:1px;border-color:#2563eb;}
.lbm-op-actions{display:flex;gap:8px;margin-top:4px;}
.lbm-op-btn{flex:1;height:40px;border-radius:10px;border:0;font-weight:600;font-size:14px;cursor:pointer;}
.lbm-op-btn-primary{background:#2563eb;color:#fff;}
.lbm-op-btn-primary:disabled{opacity:.55;cursor:not-allowed;}
.lbm-op-btn-ghost{background:#f1f5f9;color:#0f172a;}
.lbm-op-err{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fef2f2;color:#991b1b;font-size:14px;}
.lbm-op-err[hidden]{display:none;}
.lbm-op-hint{margin:0 0 12px;font-size:13px;color:#475569;}

/* Header chip: overlays, does not push page content. Hidden while the picker is open. */
.lbm-op-chip{position:fixed;top:10px;right:16px;z-index:70;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:4px 4px 4px 10px;box-shadow:0 4px 16px rgba(15,23,42,.12);max-width:min(320px,calc(100vw - 24px));}
.lbm-op-chip[hidden]{display:none;}
.lbm-op-chip-name{font-size:13px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lbm-op-chip-btn{height:32px;padding:0 12px;border:0;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;}
.lbm-op-chip-btn:hover{background:#dbeafe;}

/* Mobile: keep the chip away from the tab bar; sit under the status area. */
@media (max-width:767px){
  .lbm-op-chip{top:8px;bottom:auto;right:8px;left:auto;}
  .lbm-op-modal{padding:20px 16px;border-radius:16px 16px 12px 12px;}
}

/* Personnel reset button (injected). */
.lbm-op-reset{display:inline-flex;align-items:center;height:32px;padding:0 10px;margin-left:8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e3a8a;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;}
.lbm-op-reset:hover{background:#eff6ff;border-color:#2563eb;}
.lbm-op-reset[data-none]{color:#64748b;font-weight:500;}

.lbm-op-switch-row{display:flex;justify-content:flex-end;padding:0 8px 8px;}
.lbm-op-switch-row button{height:36px;padding:0 12px;border:0;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:600;cursor:pointer;}

#lbm-op-side-btn{color:#1d4ed8 !important;background:transparent !important;}
#lbm-op-side-btn:hover{background:#eff6ff !important;}

/* Non-blocking notice when no one is visible in the picker. */
.lbm-op-empty{position:fixed;left:16px;right:16px;bottom:16px;z-index:70;max-width:520px;margin:0 auto;padding:12px 14px;border-radius:12px;background:#fffbeb;border:1px solid #f59e0b;color:#78350f;font-size:13px;line-height:1.4;box-shadow:0 8px 24px rgba(15,23,42,.12);}
.lbm-op-empty[hidden]{display:none !important;}
@media (max-width:767px){
  .lbm-op-empty{bottom:72px;left:12px;right:12px;}
}

/* Personnel: visibility toggle. */
.lbm-op-vis{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:12px;font-weight:600;color:#334155;white-space:nowrap;cursor:pointer;}
.lbm-op-vis input{width:16px;height:16px;accent-color:#2563eb;margin:0;}
.lbm-op-edit-vis{display:flex;align-items:center;gap:8px;margin:12px 0;}
.lbm-op-edit-vis input{width:16px;height:16px;accent-color:#2563eb;margin:0;}
.lbm-op-edit-vis label{font-size:14px;color:#334155;cursor:pointer;}

.lbm-op-poste{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:12px;font-weight:600;color:#334155;white-space:nowrap;cursor:pointer;}
.lbm-op-poste input{width:16px;height:16px;accent-color:#2563eb;margin:0;}
.lbm-op-nip-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:700;vertical-align:middle;white-space:nowrap;}
.lbm-op-add-nip{display:inline-flex;align-items:center;height:40px;padding:0 14px;margin-left:8px;border:0;border-radius:10px;background:#1d4ed8;color:#fff;font-size:14px;font-weight:600;cursor:pointer;}
.lbm-op-add-nip:hover{background:#1e40af;}
.lbm-op-created{margin:4px 0 12px;font-size:14px;color:#475569;}
@media (max-width:767px){
  .lbm-op-add-nip{height:36px;margin:8px 0 0;width:100%;justify-content:center;}
  .lbm-op-vis,.lbm-op-poste{display:flex;margin:6px 0 0;}
}

.lbm-op-flags{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:6px;}
.lbm-op-flags .lbm-op-vis,.lbm-op-flags .lbm-op-poste{margin-left:0;white-space:nowrap;}
.lbm-op-created{display:block;margin:2px 0 0;font-size:13px;font-weight:500;color:#475569;}

/* LD-51: the picker must sit above every form, edit window and sheet (edit shell is z 200,
   send-link menus 2000), and say why a submission is on hold. */
.lbm-op-bd .lbm-op-modal{pointer-events:auto;}
.lbm-op-blocked{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fb923c;color:#7c2d12;font-size:13px;line-height:1.4;}
.lbm-op-blocked[hidden]{display:none !important;}
.lbm-op-blocked-en{display:block;margin-top:4px;color:#9a3412;font-size:12px;}
.lbm-op-person:focus-visible,.lbm-op-person:focus{outline:3px solid #2563eb;outline-offset:2px;}
.lbm-op-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:2147483001;max-width:min(520px,calc(100vw - 24px));padding:10px 14px;border-radius:10px;background:#065f46;color:#fff;font-size:13px;line-height:1.4;box-shadow:0 8px 24px rgba(15,23,42,.2);}
.lbm-op-toast[hidden]{display:none !important;}
@media (max-width:767px){ .lbm-op-toast{bottom:84px;} }
