.ob-filters{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.ob-filters .search{flex:1;min-width:200px}.ob-filters select{border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:10px;max-width:100%}.ob-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px}.ob-customers{padding:16px}.ob-customer{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:9px;background:white;padding:12px;margin:9px 0;color:var(--ink);cursor:pointer}.ob-customer.active{border-color:#183a66;background:#eef3fa}.ob-customer strong,.ob-customer small{display:block}.ob-customer small{margin-top:5px;color:var(--muted);font-size:11px}.ob-detail{min-width:0}.ob-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.ob-detail-head h3{font-size:22px;margin:5px 0 12px}.ob-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.ob-facts p{margin:0;font-size:12px;overflow-wrap:anywhere}.ob-facts small{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.ob-facts .ob-full{grid-column:1/-1;white-space:pre-wrap}.ob-links{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}.ob-links a{font-size:12px;text-decoration:none;padding:9px 12px;border:1px solid var(--line);border-radius:8px;color:#183a66;background:#edf2fa}.ob-links .action-whatsapp{color:#146c37;background:#e4f7ec}.ob-log-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px;border-top:1px solid var(--line);padding-top:18px}.ob-hint{font-size:11px;color:var(--muted);line-height:1.5}.ob-history{display:grid;gap:12px;max-height:780px;overflow:auto;padding-right:3px}.ob-event{border-left:3px solid #c8d6e8;padding:10px 12px;background:#f5f7fa;border-radius:0 8px 8px 0;overflow-wrap:anywhere}.ob-event.system{border-left-color:#bbb}.ob-event small{font-size:10px;color:var(--muted)}.ob-event h4{font-size:13px;margin:7px 0}.ob-event p{font-size:12px;white-space:pre-wrap;margin:8px 0}.ob-event button{border:0;color:#183a66;background:transparent;padding:5px 0;cursor:pointer;font-size:11px}.ob-form-actions{display:flex;flex-wrap:wrap;gap:8px}.ob-error{font-size:12px;color:#a33e3b}.ob-modal{width:min(730px,100%);max-height:90vh;overflow:auto}.ob-modal textarea,#obActivityNote{box-sizing:border-box;width:100%}.ob-modal input,.ob-modal select{min-width:0}#obDetail[hidden],#obEmpty[hidden],#obFollowupField[hidden],#obCustomerBackdrop[hidden],#obCancelActivity[hidden]{display:none!important}@media(max-width:1250px){.ob-log-layout{grid-template-columns:1fr}}@media(max-width:900px){.ob-workspace{grid-template-columns:1fr}.ob-detail-head{flex-direction:column}.ob-filters select{width:100%}.ob-facts{grid-template-columns:1fr}.ob-customers{max-height:320px;overflow:auto}}
.ob-staff-section{border-top:1px solid var(--line);padding:20px 0}.ob-staff-card{border:1px solid var(--line);border-radius:10px;padding:15px;margin:12px 0;overflow-wrap:anywhere}.ob-staff-card small{display:block;color:var(--muted);margin:5px 0}.ob-staff-card .ob-links{margin:12px 0}.ob-staff-card p{white-space:pre-wrap;font-size:13px}.ob-staff-form{background:#f5f7fa;border-radius:10px;padding:18px;margin:15px 0}.ob-staff-form textarea{width:100%;box-sizing:border-box}#obStaffForm[hidden]{display:none!important}
.ob-company-checks{display:grid;gap:12px;border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:15px}.ob-company-checks legend{font-weight:600;font-size:13px}.ob-company-checks label{display:flex;align-items:center;gap:10px;font-size:13px}.ob-company-checks input[type="checkbox"]{width:18px;height:18px;min-width:18px;margin:0;accent-color:#183a66}
.ob-event .ob-edit-history{padding:9px 12px;margin-top:10px;background:#e3ebf6;border:1px solid #b6c8e0;border-radius:7px;font-size:12px;font-weight:600}.ob-event details{margin-top:10px;font-size:12px}.ob-event summary{cursor:pointer}
.ob-event .ob-delete-history{background:#fff0ee;border-color:#e9b8b2;color:#a52920}.ob-history-trash{margin-top:20px;padding-top:12px;border-top:1px solid var(--line);font-size:13px}.ob-history-trash summary{cursor:pointer;font-weight:600;margin-bottom:12px}.ob-history-trash .ob-event{margin:10px 0}

/* Oberbank opens as an overview; a company is shown only after selection. */
#oberbank .ob-workspace{grid-template-columns:minmax(0,1fr)}
#oberbank .ob-customers{max-height:none;overflow:visible;min-width:0}
#oberbank:not(.ob-focused) .ob-detail{display:none}
#oberbank.ob-focused .ob-customers,#oberbank.ob-focused>.ob-filters,#oberbank.ob-focused>#obSummary{display:none}
#obOverviewTable{min-width:850px;width:100%}
#obOverviewTable td{vertical-align:middle}
#obOverviewTable .text-button{text-align:left;white-space:normal}
#obBackToOverview{margin-bottom:20px}
