.obie-branch-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 12px 32px #0f172a0d;
  margin-top: 16px;
  overflow: hidden;
}

.obie-branch-head {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.obie-branch-head strong {
  color: #111827;
  font-size: 16px;
}

.obie-branch-add,
.obie-branch-edit,
.obie-branch-delete,
.obie-branch-save,
.obie-branch-cancel {
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  height: 32px;
  padding: 0 12px;
}

.obie-branch-add,
.obie-branch-save {
  background: #1677ff;
  color: #fff;
}

.obie-branch-cancel,
.obie-branch-edit {
  background: #f3f7ff;
  color: #1677ff;
}

.obie-branch-delete {
  background: #fff1f0;
  color: #d92d20;
}

.obie-branch-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.obie-branch-empty {
  color: #667085;
  padding: 10px 0;
}

.obie-branch-item {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 12px;
}

.obie-branch-item-main {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.obie-branch-item-title {
  color: #111827;
  display: block;
  line-height: 1.45;
  margin-bottom: 4px;
}

.obie-branch-item-meta,
.obie-branch-item-notes {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.obie-branch-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.obie-branch-modal {
  align-items: center;
  background: #10182866;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2000;
}

.obie-branch-modal.is-open {
  display: flex;
}

.obie-branch-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px #0f172a33;
  max-width: 520px;
  width: min(520px, 100%);
}

.obie-branch-dialog-head,
.obie-branch-dialog-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.obie-branch-dialog-head {
  border-bottom: 1px solid #eef2f7;
}

.obie-branch-dialog-head strong {
  color: #111827;
  font-size: 16px;
}

.obie-branch-close {
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  font-size: 20px;
}

.obie-branch-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.obie-branch-form label {
  color: #344054;
  display: grid;
  font-weight: 700;
  gap: 6px;
}

.obie-branch-form input,
.obie-branch-form textarea {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  font: inherit;
  outline: none;
  padding: 9px 11px;
}

.obie-branch-form input:focus,
.obie-branch-form textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px #1677ff18;
}

.obie-branch-dialog-actions {
  border-top: 1px solid #eef2f7;
  gap: 10px;
  justify-content: flex-end;
}
