/* ==== Add Branch Form Section (aligned to same theme) ==== */

.add-branch-form-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-sizing: border-box;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.add-branch-form-section-header {
  margin-bottom: 24px;
}

.add-branch-form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.add-branch-form-section-description {
  margin-top: 4px;
  font-size: 14px;
  color: #4b5563;
}

/* ==== TAG INPUT AUTOCOMPLETE ==== */

.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  background-color: #ffffff;
  min-height: 42px;
  cursor: text;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tag-input-container:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 13px;
  border-radius: 9999px;
  padding: 4px 10px;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #dbeafe;
}

.tag-remove {
  margin-left: 6px;
  font-weight: bold;
  color: #2563eb;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tag-remove:hover {
  color: #dc2626;
}

.tag-input-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 4px;
  color: #1f2937;
  min-width: 120px;
}

.tag-input-field::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* ==== DROPDOWN ==== */

.tag-dropdown {
  position: absolute;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
}

.tag-dropdown-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.tag-dropdown-option:hover {
  background-color: #f3f4f6;
  transform: translateX(4px);
}

.tag-dropdown-option.highlighted {
  background: #f0f0f0;
}
.tag-dropdown-option:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* ==== RESPONSIVE ==== */

@media (max-width: 480px) {
  .tag-input-container {
    padding: 4px 8px;
  }

  .tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .tag-input-field {
    font-size: 13px;
  }
}

/* ==== CONFLICT WARNING ==== */

.conflicts-warning {
  font-size: 14px;
  margin: 1rem 0;
  padding: 10px 14px;
  border-left: 5px solid #ffa40d;
  border-radius: 6px;
  background-color: #fff4e1;
  color: #000000;
  opacity: 0.9;
  line-height: 1.5;
}

.global-warning-box {
  background-color: #fff8e1; /* soft yellow tone */
  border: 1px solid #ffecb3;
  border-radius: 5px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13.5px;
  color: #8a6d3b;
  font-weight: 500;
}
